tool-calling
Define tools as structured interfaces the model can call, then implement a loop that executes those calls and returns results. Treat tool calls as suggestions that must be validated before execution.
npx skills add majiayu000/claude-skill-registry --skill tool-calling --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
--- name: tool-calling description: Define and run tool-calling patterns for LLMs (schema design, call loops, validation, parallel calls). Use when building function/tool calling workflows or debugging tool selection and arguments; triggers: tool-calling, function-calling, tool schema, tool declaration, parallel function calling. --- # Tool Calling ## Overview Define tools as structured interfaces the model can call, then implement a loop that executes those calls and returns results. Treat tool calls as suggestions that must be validated before execution. ## When to Use - Use this skill when the frontmatter triggers apply; otherwise start with a simple prompt or deterministic workflow. ## Decision Tree 1. Does the model need access to external data or actions? - Yes: define tools and a call loop. 2. Are calls independent and can be executed in parallel? - Yes: allow parallel calls and aggregate results. 3. Do arguments frequently fail validation? - Yes: tighten schemas and add a validation gate. ## Workflows ### 1. Tool Schema Definition 1. Choose a single, concrete action per tool (fetch, mutate, or transform). 2. Write a JSON schema with `name`, `description`, and `parameters`.
- Overview
- When to Use
- Decision Tree
- Workflows
- 1. Tool Schema Definition
- 2. Tool Call Execution Loop
- 3. Validation Gate for Arguments
- Non-Obvious Insights
- Evidence
- Scripts
- Dependencies
- References
What does the tool-calling skill do?
Define tools as structured interfaces the model can call, then implement a loop that executes those calls and returns results. Treat tool calls as suggestions that must be validated before execution.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill tool-calling --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
