tool-integration-protocol

tool-integration-protocol is a skill for Claude Code, Codex from humanerd-drew/opencode-drewgent. It costs 0 tokens per session (666 once invoked), scanned A, original, MIT.

A step-by-step guide for adding a new external tool to an AI agent's tool registry. It covers the handler, the model's tool list, and the toolset assignment.

In plain words
What is it for?
Use it when creating a tool handler, declaring its inputs and requirements, importing it into the agent, and assigning it to a toolset.
Why use it?
It reduces the chance of missing one of the required integration points when connecting a tool to the agent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating a tool handler, declaring its inputs and requirements, importing it into the agent, and assigning it to a toolset.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/humanerd-drew/opencode-drewgent/tool-integration-protocol
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add humanerd-drew/opencode-drewgent --skill tool-integration-protocol
Clone the repo
git clone --depth 1 https://github.com/humanerd-drew/opencode-drewgent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tool-integration-protocol

README.md
[![agentmods](https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/tool-integration-protocol/github.svg)](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/tool-integration-protocol)
Your own site
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/tool-integration-protocol"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/tool-integration-protocol/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tool-integration-protocol

Your own site · 80×15
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/tool-integration-protocol"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/tool-integration-protocol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 666 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00666
Opus 5.5 $0.00000 $0.00266
Sonnet 5.5 $0.00000 $0.00133
Haiku 4.5 $0.00000 $0.00067

Measured 3mo ago against content hash d68019d4b731, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tool-integration-protocol scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

@action/skills/devops/tool-integration-protocol/SKILL.md · 101 lines

What it actually says

space: outcome type: document links:

  • "[[@action/skills/devops/DESCRIPTION]]"
  • "[[@action/skills/SKILL-INDEX]]"

Tool Integration Protocol

{{AGENT_NAME}}에 새로운 도구를 추가할 때 사용하는 표준 절차.

3단계 통합 패턴

Step 1: 도구 핸들러 파일

파일: tools/<name>_tool.py

import json, os
from tools.registry import registry

def check_requirements() -> bool:
    return bool(os.getenv("YOUR_API_KEY"))  #또는 True

def your_tool(param: str, task_id: str = None) -> str:
    return json.dumps({"success": True, "data": "..."})

registry.register(
    name="your_tool",
    toolset="your_toolset",
    schema={
        "name": "your_tool",
        "description": "...",
        "parameters": {
            "type": "object",
            "properties": {
                "param": {"type": "string", "description": "..."}
            },
            "required": ["param"]
        }
    },
    handler=lambda args, **kw: your_tool(
        param=args.get("param", ""),
        task_id=kw.get("task_id")
    ),
    check_fn=check_requirements,
    requires_env=["YOUR_API_KEY"],  #또는 []
)

Step 2: model_tools.py import 추가

파일: model_tools.py, _discover_tools() 함수의 _modules 리스트

"tools.your_tool",  # 알파벳 순서로 추가

Step 3: toolsets.py에 toolset 배정

파일: toolsets.py

_HERMES_CORE_TOOLS에 추가:

"your_tool",

필수 검증 체크리스트

  • registry.register() 호출됨
  • schema["parameters"]["type"] = "object" 확인
  • model_tools.py import 추가됨
  • toolsets.py toolset 배정됨
  • P0 禁tool_integration_3file 위반 없음

Workflow 추적

IntegrationWorkflow가 signal_processor에서 자동 추적됨. 완료 시 brain.awareness.integration_complete 시그널 발생.

Pitfalls

  1. import 안 함 → 도구 레지스트리에 안 올라감
  2. toolset 안 배정 → tool_schemas에 안 포함됨
  3. check_fn이 False → availability check 실패
  4. handler가 JSON string 안 반환 → tool result 파싱 에러
  5. requires_env 빈 배열 → API 키 없어도 등록됨 (의도한 경우 제외)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 101 lines · 0 tokens per session scan A d68019d4b731

Subscribe to this mod's changes

tool-integration-protocol is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (3 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 666 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

tool-integration-protocol compared with skills from other repositories

tool-integration-protocol next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tool-integration-protocolhumanerd-drew/opencode-drewgentSkill34mo agoMITA0Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code