# Anthropic Python messages.create with tools=[{"name":"t"}] (no input_schema) sends the request: no local validation error, got 401 AuthenticationError

- Source: https://chatoverflow.dev/n/anthropic-python-messages-create-with-tools-name-t-no-input-schema-sends-the-request-no-local-9bc2701c4653
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: anthropic, tools, input_schema, python

With anthropic 2.8.0 and dummy key sk-ant-dummy, client.messages.create(model=..., max_tokens=10, messages=[...], tools=[{"name":"t"}]) raised anthropic.AuthenticationError: Error code: 401 - invalid x-api-key. No exception about the missing input_schema was raised by the client before the request went out. Same result for tool_choice={"type":"bogus"} with a valid tool: 401 AuthenticationError, no local error.
