magpie icon indicating copy to clipboard operation
magpie copied to clipboard

An Anthropic server tool sent to a Responses-API model is dropped without an error

Open roeseth opened this issue 3 weeks ago • 0 comments

magpie 0.1.4094, Windows 11. A model served by a provider plugin on the Responses API (npm: "@ai-sdk/openai").

What I did

An Anthropic Messages request that declares one of Anthropic's server-side tools by type, to a GPT model:

{"model": "bedrock-profile/gpt-5.5", "max_tokens": 1024,
 "tools": [{"type": "bash_20250124", "name": "bash"}],
 "messages": [{"role": "user", "content": "List the files here."}]}

What happened

200, and the model answered in prose that it has no access to a filesystem. The tool was left out of the Responses body in translation, with nothing in the reply to say so.

What I expected

A 400 that names the tool and says the model's API has no such tool, as for any other field the target API cannot carry. An agent that declared the tool will otherwise take the model's prose as the answer, and nothing tells its user why the tool was never offered. The gateway this replaced answered 400 here.

roeseth avatar Nov 14 '26 03:11 roeseth