Skip to main content
Glama

db_schema

Read-onlyIdempotent

Introspect database schemas for SQLite or MySQL databases. Specify a database profile and optionally filter by table names to retrieve schema details.

Instructions

Schema introspection for a configured sqlite or mysql database. Optional comma-separated table filter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNoRepository name
formatNotoon (default) | json
tablesNoComma-separated table names (default: all, max 50)
connectionYesDatabase profile name
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the description adds limited behavioral context beyond confirming it is introspection. It mentions supported database types and a table filter, but does not detail the schema output structure or behavior on invalid connections.

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?

Single sentence, front-loaded with the core purpose. No extraneous words. Every part is essential.

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

Completeness3/5

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

The description is adequate for a read-only introspection tool but lacks details about the return value (e.g., tables, columns, types) which could help the agent anticipate results. No output schema is provided, so the description could compensate.

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

Parameters3/5

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

All 4 parameters have schema descriptions (100% coverage). The description adds 'comma-separated table filter' which mirrors the schema, and 'sqlite or mysql' for connection context, but does not significantly augment the schema's own descriptions.

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 'Schema introspection for a configured sqlite or mysql database' with an optional table filter. It distinguishes from sibling tool db_query by focusing on schema rather than data querying.

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

Usage Guidelines3/5

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

The description implies usage for retrieving database schema but does not explicitly state when to use this tool versus alternatives like db_query or other data access tools. No exclusions or prerequisites are mentioned.

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/VeyrForge/codehelper'

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