← スキル一覧に戻る

tool-calling
by pluginagentmarketplace
AI Agents Plugin Development
⭐ 1🍴 0📅 2026年1月5日
SKILL.md
name: tool-calling description: Implement tool calling - function schemas, API integration, validation, and error handling sasmp_version: "1.3.0" bonded_agent: 04-tool-calling bond_type: PRIMARY_BOND version: "2.0.0"
Tool Calling
Enable LLMs to call functions and interact with external systems.
When to Use This Skill
Invoke this skill when:
- Adding function calling to agents
- Designing tool schemas
- Integrating external APIs
- Implementing validation and error handling
Parameter Schema
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
task | string | Yes | Tool calling goal | - |
provider | enum | No | anthropic, openai, langchain | anthropic |
strict_mode | bool | No | Enable strict validation | true |
Quick Start
Claude Tool Use
from anthropic import Anthropic
tools = [{
"name": "get_weather",
"description": "Get weather for a location",
"input_schema": {
"type": "object",
"properties": {
"location": {"type": "string"}
},
"required": ["location"]
}
}]
response = client.messages.create(
model="claude-sonnet-4-20250514",
tools=tools,
messages=[{"role": "user", "content": "Weather in Tokyo?"}]
)
LangChain Tools
from langchain_core.tools import tool
@tool
def search(query: str) -> str:
"""Search the web for information."""
return web_search(query)
Schema Best Practices
# Good: verb_noun, clear description
{
"name": "search_products",
"description": """Search product database.
USE WHEN: User asks about products.
DO NOT USE: For order status (use get_order instead)."""
}
# Bad: vague
{"name": "helper", "description": "Helps with stuff"}
Troubleshooting
| Issue | Solution |
|---|---|
| Tool not called | Improve description |
| Wrong tool selected | Add "DO NOT USE" conditions |
| Invalid arguments | Enable strict mode |
| Execution timeout | Add timeout, retry logic |
Best Practices
- Use verb_noun naming convention
- Keep tool count under 20
- Include usage examples in descriptions
- Return errors as tool results
Related Skills
ai-agent-basics- Agent loopsllm-integration- API setupagent-safety- Input validation
References
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です