# What is Tool calling?

Markdown version of https://kymaapi.com/glossary/tool-calling, for agents and crawlers. Same content as the HTML page.

- Generated: 2026-10-28T21:43:30.490Z
- HTML page: https://kymaapi.com/glossary/tool-calling
- Model catalog: https://kymaapi.com/models.md
- Pricing: https://kymaapi.com/pricing.md

Tool calling (also called function calling) lets a model request that your code run a named function with arguments, then continue with the result. This is the foundation of AI agents.

With tool calling, you describe the functions your app exposes (name, description, JSON schema for arguments). The model can then return a structured request to call one of them instead of answering directly. Your code runs the function, returns the output, and the model uses it to produce the final answer.

This is what turns a chat model into an agent: it can look up data, call APIs, run code, or take actions, deciding on its own which tools to use and when. Most modern instruction-tuned models support it; some smaller or specialized models do not.

## How Kyma does it

Kyma exposes a supportsTools flag per model and, for tool-using requests, routes only to tool-capable models, including in the fallback chain, so an agent request never lands on a model that can't call functions.

- [Structured outputs](https://kymaapi.com/glossary/structured-outputs)
- [For coding agents](https://kymaapi.com/for/coding-agents)
- [Tool calling guide →](https://docs.kymaapi.com/guides/tool-calling)

Try it with $0.50 free credit on the free tier. No card required. · [Get API key →](https://kymaapi.com/signup)

More terms

- [LLM gateway](https://kymaapi.com/glossary/llm-gateway)
- [LLM router](https://kymaapi.com/glossary/llm-router)
- [Prompt caching](https://kymaapi.com/glossary/prompt-caching)
- [Model aliases](https://kymaapi.com/glossary/model-aliases)
- [LLM failover](https://kymaapi.com/glossary/llm-failover)
- [Structured outputs](https://kymaapi.com/glossary/structured-outputs)
- [Pay-per-token pricing](https://kymaapi.com/glossary/pay-per-token)
