Skip to main content
Glama
GDM-Pixel

Stellaris MCP

by GDM-Pixel

db_snapshot

Introspect a database and save a local schema snapshot to .vectors/db-schema.json, supporting connection strings and local ORM file parsing.

Instructions

Introspect a database and save a local schema snapshot to .vectors/db-schema.json. Connects to the DB via a connection string (PostgreSQL supported), or falls back to parsing local schema files (prisma/schema.prisma, database.types.ts). Run this once before using db_schema or db_search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connection_stringNoDatabase connection URL (e.g., postgresql://user:pass@host:5432/db). If omitted, reads DB_CONNECTION_STRING or DATABASE_URL env vars, or falls back to local ORM file parsing.
providerNoDatabase provider. Default: auto (detected from connection string).
schemasNoDB schemas to introspect (default: ["public"]). Supabase users may want ["public", "auth"].
save_connectionNoSave the connection string to .stellarisrc for future startup auto-snapshot (default: false). The .stellarisrc file is gitignored.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden. It discloses output file path, connection mechanism, supported DB, fallback, and optional save flag. Does not explicitly state read-only nature, but 'introspect' implies no mutation. Good but could be more explicit.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with purpose, no redundant information. Every sentence contributes useful detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 4 parameters, no output schema, and no annotations, the description covers purpose, parameters (with context), usage, output file path, and relationship to sibling tools. It is fully adequate for an agent to select and invoke the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, baseline 3. Description adds meaning: connection_string has env var fallback; provider is an enum with auto-detect; schemas has default and Supabase hint; save_connection explains its purpose. Adds value beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: introspect a database and save a local schema snapshot to a specific file. It also distinguishes it from sibling tools by noting it should be run once before using db_schema or db_search.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides clear context: run this once before using related tools. Describes fallback behavior (connection string or local files). Lacks explicit exclusions or alternatives, but the context is adequate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GDM-Pixel/stellaris-code-search'

If you have feedback or need assistance with the MCP directory API, please join our Discord server