Borrowing it
Nothing to install: this file belongs to astronomer/astro-airflow-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/astronomer/astro-airflow-mcp/main/.claude/commands/add-tool.mdgit clone --depth 1 https://github.com/astronomer/astro-airflow-mcpWrote 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.
[](https://agentmods.dev/commands/astronomer/astro-airflow-mcp/add-tool)<a href="https://agentmods.dev/commands/astronomer/astro-airflow-mcp/add-tool"><img src="https://agentmods.dev/badge/commands/astronomer/astro-airflow-mcp/add-tool/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.
<a href="https://agentmods.dev/commands/astronomer/astro-airflow-mcp/add-tool"><img src="https://agentmods.dev/badge/commands/astronomer/astro-airflow-mcp/add-tool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00008 | $0.00243 |
| Opus 5 | $0.00004 | $0.00121 |
| Sonnet 5 | $0.00002 | $0.00049 |
| Haiku 4.5 | $0.00001 | $0.00024 |
Grade A, and why
add-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 11d 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.
This is a copy
100% identical to add-tool — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
Add a new MCP tool named $ARGUMENTS to src/astro_airflow_mcp/server.py.
Steps
-
If the tool needs a new adapter method, run
/add-adapter-methodfirst. -
Create internal
_implfunction that calls the adapter:
def _tool_name_impl(param: str) -> str:
"""Internal implementation."""
try:
adapter = _get_adapter()
data = adapter.method_name(param)
return json.dumps(data, indent=2)
except Exception as e:
return str(e)
- Create the MCP tool with descriptive docstring:
@mcp.tool()
def tool_name(param: str) -> str:
"""One-line description.
Use this tool when the user asks about:
- "Example query 1"
- "Example query 2"
Args:
param: Description
Returns:
JSON with response data
"""
return _tool_name_impl(param=param)
- Add the tool to README.md tools table.
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.
- 11d ago First seen · 46 lines · 8 tokens per session scan A b92b02edc9a8
add-tool is a command published in the GitHub repository astronomer/astro-airflow-mcp (13 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 8 tokens to every session and 243 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to add-tool, differing in 0 lines, and is treated as a copy.
Other commands, from other repositories
add-tool
Add a new MCP tool to server.py.
add-adapter-method
Add a new method to both Airflow adapters.
check-airflow-compat
Verify code works with both Airflow 2.x and 3.x.
defer
Defer a task to the cleanest grid-energy window inside a deadline. Invoke this command automatically whenever the user signals a task is not time-critical — phrases like "do this later", "by tomorrow", "tonight", "overnight", "by EOD", "sometime this week", "when you have a moment", "remind me to", "queue this up"…
check
Check status of deferred ebb-ai tasks.
grid
Show current and 24-hour carbon intensity for a grid region.