Skip to main content
Glama
SQL MCP Server

SQL MCP Server

by kK-2004

db_describe_schema

Displays the schema of allowed tables in the current database; specify a table to inspect its columns or omit it to list all permitted tables.

Instructions

Show table schema in current database (allowed tables only).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "db_describe_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNoOptional table name (must be allowed). If omitted, returns all allowed tables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose that only allowed tables are visible, which is useful permission context, and 'Show' implies a read-only operation. It does not state what happens when a disallowed or nonexistent table is passed, nor what the returned schema consists of, leaving meaningful gaps for an unannotated tool.

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

Conciseness4/5

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

A single short sentence with the resource and scope front-loaded and no wasted wording. The trailing parenthetical is slightly clipped/ambiguous but far from verbose.

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?

For a simple one-optional-parameter read tool with no output schema, the definition covers what the tool does but not the shape of the returned schema information or the failure mode for a rejected table. Adequate, but thin given zero annotation coverage.

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 description coverage is 100%, and the single optional 'table' parameter is already documented including the omit-to-list-all behavior, so the description adds no syntax, format, or naming detail beyond it. A baseline 3 is appropriate when the schema does the heavy lifting.

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

Purpose4/5

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

Names a specific verb and resource: 'Show table schema in current database'. The parenthetical '(allowed tables only)' adds a scope qualifier that separates it from a general query tool such as db_query, though it never names that sibling explicitly.

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?

Usage is only implied: an agent can infer this is an introspection call to run before construction of a query, and the '(allowed tables only)' note hints at permission constraints. There is no explicit when-to-use versus db_query, db_connect, or the write siblings, and no stated precondition such as requiring a connection first.

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