mssql-query

mssql-query is a skill for Claude Code, Codex from Elumenotion/GuideAnts. It costs 73 tokens per session (1,566 once invoked), scanned A, original, Apache-2.0.

A tool for inspecting and querying a SQL Server database, including its databases, tables, schema, and sample rows. SQL Server is a relational database system that stores structured data in tables.

In plain words
What is it for?
Exploring schemas, checking sample data, reading related records, and performing approved data-definition or data-change operations.
Why use it?
It gives you a documented way to understand the database and run read-only SQL, with changes requiring explicit opt-in.

Skill for Claude CodeCodex

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

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/elumenotion/guideants/mssql-query
Any agent
npx skills add Elumenotion/GuideAnts --skill mssql-query
Clone the repo
git clone --depth 1 https://github.com/Elumenotion/GuideAnts

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 mssql-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/elumenotion/guideants/mssql-query.svg)](https://agentmods.dev/skills/elumenotion/guideants/mssql-query)
Your own site
<a href="https://agentmods.dev/skills/elumenotion/guideants/mssql-query"><img src="https://agentmods.dev/badge/skills/elumenotion/guideants/mssql-query.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,566 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.1 $0.00073 $0.01566
Opus 5 $0.00036 $0.00783
Sonnet 5 $0.00015 $0.00313
Haiku 4.5 $0.00007 $0.00157

Measured 2d ago against content hash 49ca906aa294, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mssql-query 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/mssql_tool.py, scripts/test_mssql_query.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

samples/skills/mssql-query/SKILL.md · 121 lines

How it starts

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

Queries the stack's SQL Server (mssql-express container) from the sandbox, using the connection string supplied through the environment (GA_DB_CONNECTION_STRING — set on the Guide, marked secret). The tool self-bootstraps pymssql on first use (one pip install), then everything is local Python.

Database at a glance

Read references/database.md first — it is the persistent understanding of this database (table names, column gotchas, feature areas, how the tables join, the enum dictionary, a reading a conversation recipe, usage, performance, and undone turns, guides, projects, and environments, and a verified core-query library), so you do not re-derive the schema each session.

The short version: GuideAnts is a Projects > Notebooks workspace. Each notebook has files (NotebookFiles, versioned ContentFiles) and conversations (NotebookConversations -> NotebookConversationMessages

  • ConversationTurns). Guides/Assistants (Assistants, Kind 1=Guide) package the way of working; execution is AgentInvocations (-> AgentInvocationMessages for detail) + JobQueue; cost/telemetry is UsageEvents; file provenance is FileLineageEvents. UsageEvents has a nullable FK to nearly every other table, so it is the key for "what/who/cost" questions. SQL table names are plural (the doc uses singular entity names); verify column details with schema <Table>.

How the instance is wired

The skill runs inside the guideants-ai container, inside the running compose stack; mssql-express is a sibling service (stock compose: service mssql-express, image mssql2025-express-fts, publishes 1434:1433 on the host). The connection string is the ADO.NET one the webapi carries as ConnectionStrings__DefaultConnection — here it arrives as GA_DB_CONNECTION_STRING (Guide Environment variable, secret).

Endpoint resolution in the tool: --endpointGA_DB_ENDPOINT → the Server= field of the connection string (only when that host is an IP literal or localhost; the compose service name mssql-express does not resolve from the ai container) → default host.docker.internal:1434.

Read the full file on GitHub · 121 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 121 lines · 73 tokens per session scan A 49ca906aa294

Subscribe to this mod's changes

mssql-query is a skill published in the GitHub repository Elumenotion/GuideAnts (57 stars, last pushed 2d ago), licensed Apache-2.0. It adds 73 tokens to every session and 1,566 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories

db-migration-helper

Use when generating database migration SQL from model or schema changes — compares current vs desired schema, detects diffs, outputs reversible safe migrations.

wu529778790/shenzjd-skills · 32 tokens

redteam-sqli-detail-pack

Domain routing and boundary guidance for authorized SQL injection testing, including union-based, blind, error-based, stacked query, and second-order SQL injection variants. Use when a task belongs to the SQL injection domain and needs scope, evidence, pivot, or exit criteria.

Netw0rkNoob/VulnClaw · 59 tokens

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/obsidian-mcp-server · 85 tokens

api-mirror

Stand up a persistent, self-refreshing local mirror of a bulk upstream dataset with the MirrorService (@cyanheads/mcp-ts-core/mirror). Use when a server wraps a large or slow API and should query a synced local index (embedded SQLite + FTS5) instead of paginating the live API per request.

cyanheads/obsidian-mcp-server · 68 tokens

multitenant

Architecture multitenant avec approche tiered (Shared/Dedicated Schema/DB), RBAC/ABAC, field-level encryption. Use when working with multitenant applications, tenant isolation, data segregation.

TheBeardedBearSAS/claude-craft · 46 tokens

graphql

GraphQL API design, Apollo Federation, schema stitching, resolvers, N+1 query problem. Use when implementing GraphQL API, federation, or optimizing queries.

TheBeardedBearSAS/claude-craft · 35 tokens