本文へスキップ
Skillpedia
エージェント48k · #3697

ai-agent-tool-routing

できること

このツールは、AIエージェントがほかのツールをどのように使えるかを整理し、文書にまとめるのに役立ちます。エージェントが呼び出せるツール、その動作方法、そして守るべきセキュリティとパフォーマンスの制限を定義します。

使う場面

  • ✓AIエージェントが使えるツールを計画するとき。
  • ✓ツールをエージェントに公開する前に、そのセキュリティと制限を確認するとき。
  • ✓エージェントがツールの使用中にエラーや失敗をどう扱うかを文書化するとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ai-agent-tool-routing/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ai-agent-tool-routing/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“'read_document' ツールを、ドキュメントIDだけを受け付け、タイムアウトを5秒に設定するように文書化してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントが使える各ツールについて、受け取るデータ、利用できるユーザー、時間やセキュリティの制限などの技術的な詳細を記述します。これにより、エージェントがツールを正しく使うための記録が作られます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

AI Agent Tool Routing Register

When to Use

  • Define which tools an agent may call, their parameter schemas and runtime limits.
  • Review a proposed tool registration before connecting it to an agent runtime.
  • Document timeout, retry and authorization contracts for an existing router.

Scope and prerequisites

This skill produces a register and a verification plan. A register does not implement a router or establish that a tool is safe. Read the actual server/tool schema and the application's identity and permission model. Record observed configuration separately from proposed policy. Do not invoke registered tools, read credentials or enable a production registration merely to fill the table.

Workflow

  1. Identify a task, the calling principal/tenant, the intended tool and its read or write effect. Tool names, model output and descriptions are not authorization.
  2. Read the advertised schema and implementation boundaries. Define required fields, additional-field rejection, length/range limits and schema version. Prefer rejection to guessed or lossy coercion. Schema validation does not enforce row-level authorization, path containment or network restrictions.
  3. Describe identity propagation and server-side resource checks. Bind a request to the verified principal; never let a tool argument select an arbitrary tenant.
  4. Set measured/project-approved timeout, rate, concurrency, response-size and cost limits. Cancellation must propagate to downstream work where supported; returning a timeout alone does not prove a write did not finish.
  5. Classify retries by effect. Retry only classified transient failures within a bounded budget. A write requires a verified server-side deduplication contract and reconciliation for ambiguous completion; a random key alone is insufficient.
  6. Define adversarial and failure cases: missing/unknown arguments, wrong tenant, denied resources, unavailable tool, oversized response and late completion.
  7. Record actual test evidence and unresolved gaps. Keep status Draft until the required checks ran against the exact runtime and schema revision. A register label never grants execution permission.

Field reference

Field Type Example / interpretation
tool_id string, primary key TOOL-001; use TEXT/VARCHAR, not a SERIAL integer
canonical_name string read_document; match the advertised tool exactly
server string project-docs local MCP; identify the actual installation
invocation_mode enum synchronous / asynchronous / scheduled
effect enum read / write; unknown effects stay unresolved
parameter_schema object or immutable reference required document_id, unknown fields rejected
authorization_policy immutable reference verified caller plus document ownership check
runtime_limits object illustrative timeout 5000 ms, response 65536 bytes
retry_contract object maximum attempts, transient classes, deduplication evidence
status enum draft / tested / deprecated / blocked
evidence array of references exact implementation revision, case IDs and observed results

For SQL or Notion exports, retain these distinctions: textual IDs stay strings; objects/arrays need a deliberate JSON representation or related tables; dates must use actual date values. Do not treat a checklist boolean as a proved control. Escape spreadsheet formula-like text as text when exporting user-supplied fields.

Worked example

An agent needs a document summary. The proposed tool accepts only a document ID; the server obtains the caller from verified session context, not from arguments.

{
  "tool_id": "TOOL-001",
  "canonical_name": "read_document",
  "server": "project-docs",
  "effect": "read",
  "parameter_schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {"document_id": {"type": "string", "minLength": 1, "maxLength": 80}},
    "required": ["document_id"],
    "additionalProperties": false
  },
  "runtime_limits": {"timeout_ms": 5000, "max_response_bytes": 65536},
  "retry_contract": {"max_attempts": 2, "retry_on": ["transient_unavailable"]},
  "status": "draft",
  "evidence": []
}

These limits are illustrative requirements, not measured service capabilities. The local schema can reject an added tenant_id, but an existing document ID still

…

よくある質問

「パラメータスキーマ」とは何ですか?

ツールが受け取るデータの書式を定めた申込書のようなものです。どの項目が必須か、どの種類の情報が許可されるかを示します。

「実行時の制限」とは何ですか?

ツールが応答するまでの最大時間(タイムアウト)や、一定期間内に呼び出せる回数(レート制限)を定めたルールです。

この文脈での「証拠(エビデンス)」とは何ですか?

ツールが期待どおりに動作し、制限やセキュリティルールが正しく適用されていることを示すテストの結果です。

詳細

作者による元の説明

Use when designing or reviewing an AI agent tool registry or MCP router: document parameter schemas, caller authorization, execution limits, replay-safe retries and verification evidence.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#3697
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル