{
  "data": null,
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/niches/frameworks.tool-calling-agent/",
    "json": "https://www.anchorterminal.com/niches/frameworks.tool-calling-agent/index.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/niches/frameworks.tool-calling-agent/index.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/niches/frameworks.tool-calling-agent/index.min.md"
  },
  "markdown": "One company's docs show a full fit.\n\n| Companies, full fit | With a limit | Carry the tag | Share of the category's work | First-hand accounts |\n| --- | --- | --- | --- | --- |\n| 1 | 16 | 52 | 13 | 9 |\n\n## What counts as done\n\nFunctions become tools with schemas generated from code, the agent calls them and answers, the run stops on its own at a documented turn, tool-call or spend cap with a typed reason, and the same code runs against a second provider or a local endpoint. A test model or mock lets the wiring be tested with no key.\n\nMeasured, for our own tests: tool-call success on a fixed set of 20 tasks and the number of model calls per task.\n\nHow agents ask for it: build an agent that can call our API; make a chatbot that looks things up in our database; turn these functions into tools for an agent; add an assistant to my app\n\n## Does the job\n\nThe docs show it meets the test above, and nothing we read says otherwise.\n\n- **AI SDK (Vercel Inc.)**: ToolLoopAgent runs Zod-typed tools, stops after 20 steps by default or on a stopWhen condition, reports finishReason per step, runs on many providers including OpenAI-compatible local endpoints, and ai/test ships mock models for keyless tests. Measured success is the suite's.\n\n## Does the job, with a limit\n\nIt does the job, but something in the docs or a user's account will get in an agent's way. The limit is named in each row.\n\n- **AgentOS (Framers Lab, Inc.)**: Tools run in a loop on 13 providers including Ollama, and a budget refuses calls past maxCostUSD with CostCapExceededError. No turn or tool-call cap and no test or mock model found in the docs read.\n- **Agno (Agno Inc.)**: Functions become tools and tool_call_limit caps calls per loop, but the default is None and an open issue says the cap blocks tools while the model keeps looping. No typed stop reason or test model found.\n- **BoxLang AI (Ortus Solutions, Corp.)**: Tools come from annotated functions and MaxToolCallsMiddleware enforces a per-run cap, per the docs index. I found no typed stop reason, and didn't confirm the listing's mock provider; BoxLang runs only on the JVM.\n- **Claude Agent SDK (Anthropic, PBC)**: Custom tools run through an in-process MCP server; maxTurns and maxBudgetUsd end the run with a result subtype. Claude only (API, Bedrock, Google Cloud, Foundry), so no local OpenAI-compatible endpoint, and no mock model is documented.\n- **CrewAI (CrewAI, Inc.)**: Tools attach per agent or task and models route through many providers including local ones; I found no documented typed stop reason when an iteration cap is hit, and no test model.\n- **Cursor Agent SDK (Anysphere, Inc.)**: Tools take Zod input schemas, an effect class for dry runs and retries for idempotent calls. Models are Cursor's catalogue only, with no local endpoint, and the config reference shows a concurrency cap but no turn or spend cap.\n- **Docker Agent (Docker, Inc.)**: Tools come from toolsets, OpenAPI and scripts rather than functions in host code, and budgets stop a run naming the limit that tripped. Every limit is unset by default, so a run is unbudgeted unless the config declares one.\n- **Agent Development Kit (ADK) (Google LLC)**: Functions become tools with schemas from code, and LiteLLM and Ollama pages cover other providers. An account saw every Ollama model loop on tool calls without answering (adk-python #81); no turn cap with a typed stop reason was found in the pages read.\n- **LangGraph (LangChain, Inc.)**: create_agent builds a tool loop on any LangChain chat model including local ones. An account found the graph DSL too much for simple agents (HN 48661127); I didn't confirm a typed stop reason for the recursion limit this run.\n- **LlamaIndex Framework (LlamaIndex, Inc.)**: FunctionAgent turns Python functions into tools on any provider with tool calling, ReActAgent covers others. A typed stop on a turn or tool-call cap and a mock LLM weren't found in the pages read.\n- **Mastra (Kepler Software, Inc.)**: createTool takes Zod schemas and the agent loop runs on any AI SDK provider including local ones. I didn't confirm a typed stop reason on a step cap or a mock model this run; an account found the basics work for a local coding agent (HN 48530462).\n- **Microsoft Agent Framework (Microsoft Corporation)**: @tool functions become tools on several chat clients, and termination middleware can end runs. Tools run without approval unless set, and the docs read didn't show a typed stop reason on a turn cap or a mock client.\n- **OpenAI Agents SDK (OpenAI OpCo, LLC)**: function_tool builds schemas from code, max_turns raises MaxTurnsExceeded or routes to an error_handlers entry, and an account ran local models through LM Studio (HN 48326951). The testing page doesn't name a fake model for keyless wiring tests.\n- **Pydantic AI (Pydantic Services Inc.)**: Tools come from typed functions on many providers, and TestModel or FunctionModel swap in via Agent.override for keyless tests. An account saw the model search more than 10 times a run (HN 45798996); the run caps and their stop type weren't re-read.\n- **smolagents (Hugging Face, Inc.)**: ToolCallingAgent emits JSON tool calls on any model including Ollama through LiteLLM, and final_answer_checks control termination. An account found tool calling beat code actions on current models (HN 46675615); no mock model or typed stop reason was found in the pages read.\n- **Strands Agents (Amazon Web Services, Inc.)**: Model-driven loop with decorated tools and many providers. An account's NBA agent made unasked calls, cost about 10 times the estimate and hit a Lambda timeout (AWS builder article); a turn cap with a typed stop reason wasn't found in the pages read.\n\n- not this job: guilds.run (Cigale AI): Tools come from native tools and catalog connectors configured in the app, not from functions in the developer's own code; runs do stop on max steps, max tool calls and max input tokens.\n- not this job: NitroStack (Nitrostack Inc.): It defines tools with input schemas for MCP clients to call but runs no model or agent loop itself.\n- not this job: TradingAgents (Tauric Research): The agents call its own market-data tools; the README has no way to turn an app's functions into tools for a general agent.\n\n## What stops agents finishing\n\n- a tool-call cap that blocks tools but leaves the loop running\n- local models looping on tool calls with no stop\n- a tool with no parameters sent in a shape strict servers reject\n- breaking changes in minor releases of a 0.x package\n\n## Around it\n\nBefore: inference.tool-loop. After: agent-observability.instrument-app, frameworks.multi-agent-handoff.\n\n## Where this comes from\n\nWeight 13 of 100 in Agent frameworks \u0026 SDKs: 8 of 61 accounts have this as their main job (share 13.1, rounded by largest remainder to sum 100)\n\nAs data: https://www.anchorterminal.com/api/v1/use-cases/frameworks.tool-calling-agent.json, or the MCP tool get_use_case with id frameworks.tool-calling-agent. Draft, read 2026-11-15 from public docs and first-hand accounts, not yet reviewed by a person.\n",
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "attributionRequired": true,
    "credit": "CC BY 4.0, credit Anchor Terminal and link the page or API address you took it from (https://www.anchorterminal.com/terms/#data)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-11-16",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "0.8",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run",
    "terms": "https://www.anchorterminal.com/terms/#data"
  },
  "page": {
    "breadcrumbs": [
      {
        "name": "Home",
        "url": "https://www.anchorterminal.com/"
      },
      {
        "name": "For agents",
        "url": "https://www.anchorterminal.com/agents/"
      },
      {
        "name": "Niches",
        "url": "https://www.anchorterminal.com/niches/"
      },
      {
        "name": "Build an agent that calls the app's own functions and APIs",
        "url": ""
      }
    ],
    "description": "Build an agent that calls the app's own functions and APIs: 1 companies fully do it, 16 with a limit, 52 carry the tag. Every listing in Agent frameworks \u0026 SDKs with the reason and a source.",
    "facts": null,
    "h1": "Build an agent that calls the app's own functions and APIs",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/niches/frameworks.tool-calling-agent/",
    "published": "",
    "section": "agents",
    "title": "Build an agent that calls the app's own functions and APIs | Anchor…",
    "toc": null,
    "updated": "2026-11-15",
    "url": "https://www.anchorterminal.com/niches/frameworks.tool-calling-agent/"
  },
  "tokens": {
    "markdown": 1950,
    "slim": 380
  },
  "version": 1
}
