agent-tool

agent-tool is a skill for Claude Code, Codex from vstorm-co/full-stack-ai-agent-template. It costs 66 tokens per session (776 once invoked), scanned A, original, MIT.

A guide for adding a function that an AI assistant can call during a conversation, such as looking up information or using an external service. It covers the function, its export, and its registration on the assistant.

In plain words
What is it for?
Use it when adding a typed agent tool, exposing it to the model, handling hard and soft errors, or wiring it into the project's supported AI framework.
Why use it?
It removes the guesswork around connecting a new action to the assistant while keeping inputs, outputs, errors, and secrets organized.

Skill for Claude CodeCodex

About the project

Full-Stack AI Agent Template generates full-stack AI applications with a FastAPI backend and Next.js frontend, including agents, retrieval-augmented generation, streaming, authentication, and integrations. It is for building AI products with features such as chat, conversation sharing, administration, and multiple agent or vector-database choices. Catalogue add-ons support the generated applications and their agent workflows.

vstorm-co/full-stack-ai-agent-template · 1,878 stars · on GitHub

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.

agentmods
npx agentmods add skills/vstorm-co/full-stack-ai-agent-template/agent-tool
Any agent
npx skills add vstorm-co/full-stack-ai-agent-template --skill agent-tool
Clone the repo
git clone --depth 1 https://github.com/vstorm-co/full-stack-ai-agent-template

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 agent-tool

README.md
[![agentmods](https://agentmods.dev/badge/skills/vstorm-co/full-stack-ai-agent-template/agent-tool.svg)](https://agentmods.dev/skills/vstorm-co/full-stack-ai-agent-template/agent-tool)
Your own site
<a href="https://agentmods.dev/skills/vstorm-co/full-stack-ai-agent-template/agent-tool"><img src="https://agentmods.dev/badge/skills/vstorm-co/full-stack-ai-agent-template/agent-tool.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 776 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00066 $0.00776
Opus 5 $0.00033 $0.00388
Sonnet 5 $0.00013 $0.00155
Haiku 4.5 $0.00007 $0.00078

Measured 5d ago against content hash 1f0db50318bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-tool 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 5d 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.

template/{{cookiecutter.project_slug}}/.claude/skills/agent-tool/SKILL.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add an Agent Tool ({{ cookiecutter.ai_framework }})

Agent tools live in backend/app/agents/tools/ and are surfaced to the model so it can call them mid-conversation. The assistant is defined in backend/app/agents/.

Steps

  1. Write the tool function in backend/app/agents/tools/<tool_name>.py:

    • Async, fully type-hinted, with a clear docstring — the docstring and signature are what the model sees, so make them precise.
    • Pure logic: take typed args, return a JSON-serializable result. Raise on hard errors; return a structured {"error": ...} for soft failures the model should reason about.
    • Keep secrets/IO behind settings and the service layer; don't inline credentials.
  2. Export it from backend/app/agents/tools/__init__.py (add the import and append to __all__, matching the existing feature-gated blocks).

  3. Register it on the agent in the assistant for the active framework: {%- if cookiecutter.use_pydantic_ai %}

    • app/agents/assistant.py — decorate with @agent.tool (needs RunContext[Deps]) or @agent.tool_plain (no context):
      @agent.tool
      async def my_tool(ctx: RunContext[Deps], query: str) -> dict:
          """One-line description the model reads to decide when to call this."""
          ...
      

{%- elif cookiecutter.use_pydantic_deep %}

  • app/agents/pydantic_deep_assistant.py — add the function to the agent's tool list. {%- elif cookiecutter.use_langchain %}
  • app/agents/langchain_assistant.py — wrap with @tool and add it to the tools=[...] passed to the agent. {%- elif cookiecutter.use_langgraph %}
  • app/agents/langgraph_assistant.py — wrap with @tool and include it in the tools list bound to the graph. {%- elif cookiecutter.use_deepagents %}
  • app/agents/deepagents_assistant.py — add the function to the agent's tool list. {%- endif %}
  1. Prompt guidance (optional but recommended): if the tool should only be used in specific situations, add a sentence to the system prompt in app/agents/prompts.py so the model knows when to reach for it.

Read the full file on GitHub · 50 lines

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. 5d ago First seen · 50 lines · 66 tokens per session scan A 1f0db50318bf

Subscribe to this mod's changes

agent-tool is a skill published in the GitHub repository vstorm-co/full-stack-ai-agent-template (1,878 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 776 once invoked, about $0.0003 per session on Opus 5. 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-30.