Skip to main content
Glama
sqlite-mcp-server

sqlite-mcp-server

by mismi

Describe Table

sqlite_describe_table
Read-onlyIdempotent

Describe a table or view to retrieve columns, types, primary and foreign keys, indexes, and CREATE SQL. Use before writing queries or inserts to confirm correct schema references.

Instructions

Describe one table or view: columns and types, primary key, foreign keys, indexes, and the CREATE statement.

Use this before writing a query or an insert so column names, types and keys are correct. To find table names, call sqlite_list_tables. Example: {"table": "books"} -> every column of books plus its foreign keys.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table": "<table>"
    },
    "name": "sqlite_describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTable or view name, e.g. 'books'
response_formatNo'markdown' for readable text, 'json' for structured datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered by structured data. The description adds genuine value beyond that by enumerating the returned metadata (including the CREATE statement) and giving a concrete input/output example. It does not say what happens for a nonexistent table or view, which is the main remaining gap.

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?

Three short sentences: what it returns, when to use it, and a concrete example. The content is front-loaded and no sentence is redundant, with the sibling pointer kept brief.

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?

There is no output schema, so the description carries the burden of explaining return values — and it does so by listing every category of metadata returned. Combined with 100% schema coverage for the two parameters, an agent has everything needed to invoke this correctly.

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?

Schema coverage is 100%, with both the table name and the response_format enum documented in the schema, so the baseline is 3. The description's example {"table": "books"} illustrates the required parameter but adds no new meaning, and response_format is not mentioned in the description at all.

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 opens with a specific verb and resource ("Describe one table or view") and enumerates exactly what is returned: columns and types, primary key, foreign keys, indexes, and the CREATE statement. This clearly separates it from sqlite_list_tables, sqlite_query, and sqlite_insert_row without requiring the agent to open a schema.

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

Usage Guidelines5/5

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

It states the exact situation to use it ("before writing a query or an insert so column names, types and keys are correct") and routes the agent to the correct alternative for discovery ("To find table names, call sqlite_list_tables"). Both the when-to-use and the sibling handoff are explicit.

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