Skip to main content
Glama
MCP Database Server

MCP Database Server

by saadrupai

describe_table

Inspect a table's columns, data types, nullability, primary and foreign keys, plus three sample rows to understand its database schema.

Instructions

Show columns (name, type, nullable, primary key) and foreign keys for one table, plus 3 sample rows.

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": "describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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 burden, and it does disclose the return contents (columns, foreign keys, three sample rows), which is useful given there is no output schema. However, it says nothing about read-only nature, cost of sampling rows on large tables, or behavior when the table does not exist.

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?

One front-loaded sentence with no filler; the enumerated column attributes are the useful part. Slightly dense but every clause earns its place.

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?

Because there is no output schema, the description's summary of returned data is the main completeness win. It still leaves the sole parameter's format and error behavior unspecified for a tool that would commonly be called with an unqualified name.

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 0% and the single `table` parameter is undocumented, but the description's phrase "for one table" implies the parameter takes a table identifier. It does not specify whether a fully qualified name or schema prefix is expected, so it only partially compensates for the coverage gap.

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?

States a specific verb and resource: "Show columns (name, type, nullable, primary key) and foreign keys for one table, plus 3 sample rows." The scope of a single table clearly separates it from list_tables, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

No when-to-use guidance, no exclusions, and no pointer to alternatives such as run_query for actual data retrieval. The agent must infer that this is an inspection tool used before querying.

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

Deploy Server

Other Tools