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.
npx agentmods add instructions/takuyaw-w/a5sql-mcp/agents-mdgit clone --depth 1 https://github.com/takuyaw-w/a5sql-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/instructions/takuyaw-w/a5sql-mcp/agents-md)<a href="https://agentmods.dev/instructions/takuyaw-w/a5sql-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/takuyaw-w/a5sql-mcp/agents-md.svg" alt="Measured on agentmods" 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.05003 | $0.05003 |
| Opus 5 | $0.02501 | $0.02501 |
| Sonnet 5 | $0.01001 | $0.01001 |
| Haiku 4.5 | $0.00500 | $0.00500 |
Grade A, and why
a5sql-mcp AGENTS.md 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.
How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
このリポジトリは、ローカルに存在する A5:SQL Mk-2 の設定・メタデータ・SQL 資産を読み取り、AI エージェントが安全に扱いやすい形で配信する MCP サーバーを開発するためのものです。
開発の目的
- A5:SQL のローカル資産を、AI が検索・要約・参照しやすい構造化データとして提供する。
- データベース接続情報、ER 図、テーブル定義、SQL 履歴、SQL ファイルなどを段階的に扱えるようにする。
- まずは読み取り専用を基本とし、ローカル環境や接続先 DB を壊さない。
- 秘密情報を不用意にログ、レスポンス、テストスナップショット、コミットに含めない。
基本方針
- 実装より前に、A5:SQL がローカルに保存するファイル形式・保存場所・文字コードを確認する。
- 保存場所や形式はユーザー環境・A5:SQL のバージョン・Windows/Wine/Linux などの実行形態で変わり得るため、ハードコードを避ける。
- デフォルト動作は読み取り専用にする。
- 書き込み、削除、接続先 DB へのクエリ実行、資格情報の復号・表示は、明示的に実装範囲へ入るまで扱わない。
- AI 向けの配信では「生データをそのまま渡す」のではなく、識別子、要約、参照パス、必要最小限の抜粋に整形する。
- 例外や解析失敗時は、ファイルパスや秘密情報を含みすぎないエラーにする。
想定する公開面
現在の MCP サーバーは、起動時に指定された .a5er / .sql / text ファイルを読み取る stdio サーバーです。独立した packages/mcp-server は持たず、packages/cli の --mcp モードで提供します。
現時点で公開している tool は次のとおりです。
describe_a5sql_file: 起動時に指定されたファイルのパス、種別、サイズ、更新日時を返す。parse_a5sql_file: 起動時に指定された.a5er/.sqlファイルを AI 向けの構造に変換する。デフォルトは summary。mode: "full"でもmaxTables/maxRelationships/maxColumnsPerTableによる上限つきで返す。read_a5sql_file: 起動時に指定されたファイル本文を、最大文字数つきで返す。offsetChars、またはstartLine/maxLinesで読み取り範囲を絞れる。detect_a5sql_locations: A5:SQL の設定ディレクトリ候補を、存在有無、読み取り可否、検出理由つきで返す。DB には接続しない。read_a5sql_asset:assetIdで指定された asset 本文を、サイズ制限と秘密情報マスクつきで返す。バイナリや未対応ファイルは本文を返さず warning を返す。list_a5sql_connections: A5:SQL 設定 root 配下から接続候補を抽出し、秘密情報を返さない形で一覧する。非秘密項目もデフォルトではマスクする。search_a5sql_assets:rootsまたはA5SQL_MCP_ROOTSで指定された root 配下から A5:SQL 関連 asset を検索し、parse_a5sql_assetに渡せるassetIdとマスク済み抜粋を返す。DB には接続しない。parse_a5sql_asset:assetIdで指定された.a5er/.sql/ text asset を AI 向けの構造に変換する。rootsまたはA5SQL_MCP_ROOTSで探索対象を明示する。DB には接続しない。list_a5sql_tables:.a5erファイル内のテーブル/ビュー一覧を返す。offset/limitによるページングに対応し、デフォルトは 100 件。describe_a5sql_table:.a5erファイル内の特定テーブル/ビュー定義を返す。explain_a5sql_table:.a5erファイル内の特定テーブルを、役割・主キー・関連テーブル・注意点つきで要約する。list_a5sql_relationships:.a5erファイル内のリレーション一覧を返す。find_a5sql_tables:.a5erファイル内のテーブルを、テーブル名・論理名・コメント・カラム名から検索する。find_a5sql_columns:.a5erファイル内のカラムを、カラム名・論理名・コメント・型・テーブル名から検索する。generate_sql_select:.a5erファイル内の定義から SELECT SQL のたたき台を生成する。DB には接続しない。maxRelatedTablesで JOIN 対象の上限を指定できる。generate_mermaid_er_diagram:.a5erファイル内のテーブルとリレーションから Mermaid ER diagram を生成する。maxTablesで出力対象テーブル数を制限できる。generate_model_files:.a5erファイル内のテーブル定義から Laravel Eloquent または SQLAlchemy のモデルファイル案を生成する。ファイルシステムには書き込まない。maxTablesで生成対象テーブル数を制限できる。generate_schema_markdown:.a5erファイル内のテーブル定義とリレーションから Markdown の定義書案を生成する。ファイルシステムには書き込まない。review_a5sql_schema:.a5erファイル内のスキーマ品質を、主キー・型・コメント・リレーション整合性の観点でレビューする。suggest_schema_changes:.a5erファイル内のスキーマ品質レビュー結果から、主キー・型・リレーション・コメントの改善提案を返す。compare_a5er_with_live_schema:.a5erファイル内の定義と、外部 DB MCP などから渡された live schema JSON を比較する。DB には接続せず、テーブル/カラム欠落、余剰、型、NULL 許容、主キー差分を返す。generate_migration_plan:.a5erファイル内の定義と live schema JSON の差分から migration 案を生成する。DB には接続せず、実行しない。
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.
- 5d ago First seen · 129 lines · 5,003 tokens per session scan A 83a02d526148
a5sql-mcp AGENTS.md is an instructions file published in the GitHub repository takuyaw-w/a5sql-mcp (1 stars, last pushed 1mo ago), licensed MIT. It adds 5,003 tokens to every session, about $0.0250 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-31.
Other instructions, from other repositories
lms-front CLAUDE.md
Claude Code instructions for guillermoscript/lms-front, covering claude.md, project overview, commands, architecture and multi-tenancy.
vespertide AGENTS.md
AGENTS.md instructions for dev-five-git/vespertide, covering vespertide knowledge base, structure, where to look, data flow and conventions.
seekstone CLAUDE.md
Claude Code instructions for shaqmughal/seekstone, covering claude.md, what this repo is, commands, the harness itself (run after npm install) and architecture.
rails_ai_agents AGENTS.md
AGENTS.md instructions for ThibautBaissac/rails_ai_agents, covering project configuration, tech stack, architecture, key commands and tests.
pg-dash CLAUDE.md
Claude Code instructions for indiekitai/pg-dash, covering pg-dash claude.md, 项目结构, 构建与测试, 发版纪律(强制) and 发版检查清单(每次 npm publish 前必须按序执行).
MCP-SqlServer CLAUDE.md
Claude Code instructions for Aron-Valenzuela/MCP-SqlServer, covering claude.md, project overview, setup (for each user), 1. install dependencies and 2. configure claude desktop.