Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill tool-calling --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/agent/tool-calling/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

--- 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`.

What's inside
Steps it walks through
  1. Overview
  2. When to Use
  3. Decision Tree
  4. Workflows
  5. 1. Tool Schema Definition
  6. 2. Tool Call Execution Loop
  7. 3. Validation Gate for Arguments
  8. Non-Obvious Insights
  9. Evidence
  10. Scripts
  11. Dependencies
  12. References
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going