Agent skill · AI & Agents

Claude Tool Calling Patterns

Comprehensive guide for AI agents on proper Claude-style tool calling with correct syntax, patterns, and examples

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill claude-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: 8 KB
Bundled scripts: none
Version: 1.1
Declared author: Main Agent
Path: skills/ai-llm/claude-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

# Claude Tool Calling Patterns ## Overview This skill provides comprehensive guidance on proper Claude-style tool calling syntax for AI agents building systems that interact with Claude's API. Claude uses a unique XML-based tool calling format that differs from other LLM APIs. **Key Insight**: Claude's tool calling uses XML-style function_calls blocks with nested invoke and parameter tags. Understanding this structure is critical for building reliable agent systems. ## When to Use This Skill - **Building AI agent systems** that need to call tools via Claude API - **Implementing function calling** in Claude-powered applications - **Debugging tool calling issues** in existing Claude integrations - **Training other AI agents** to properly format tool calls - **Migrating from OpenAI function calling** to Claude tool use ## Prerequisites - **Claude API access**: Anthropic API key - **XML/HTML familiarity**: Understanding of tag structure - **JSON knowledge**: Tool parameters use JSON format - **Programming basics**: Calling APIs from your language of choice ## Skill Usage Type **EDUCATIONAL** - Study the patterns and examples, implement in your Claude API integration. The examples are r

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Prerequisites
  4. Skill Usage Type
  5. Core Concepts
  6. Tool Calling Structure
  7. Key Differences from OpenAI
  8. Critical Rules
  9. Rule 1: Always Use functioncalls Block
  10. Rule 2: One invoke Per Tool
  11. Rule 3: Individual parameter Tags
  12. Rule 4: JSON for Complex Types
  13. Rule 5: Parallel Tool Calls
  14. Rule 6: Sequential Tool Calls
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the Claude Tool Calling Patterns skill do?

Comprehensive guide for AI agents on proper Claude-style tool calling with correct syntax, patterns, and examples

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill claude-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