call_tool / callTool for each tool call and sends the result back until Claude answers.
Install
partfinder_tools.py or partfinder-tools.mjs
next to your code. It builds the tools from the OpenAPI document
and makes each call with the key from PARTFINDER_API_KEY.
Give the model the tools
beta_tool (Python) and betaTool (JavaScript) take each operation’s JSON Schema as input_schema / inputSchema. The tool runner is in beta in the Anthropic SDK. Save it as agent.py or agent.mjs next to the tools file.
Jobs and refusals
searchParts, compareParts and analyzeBom start a job. call_tool (callTool) waits for the job and returns the
finished result, so the model does not need to poll. A refused call returns the API’s JSON with its error code and
summary, and the model reads it like any other result. See AI agent integration
for the rest of the rules.