Skip to main content
Glama
Analytics MCP server

Analytics MCP server

by aby3941

describe_table

Read-onlyIdempotent

Describes a specified analytics table’s columns, PostgreSQL types, and meanings to help you inspect its schema before writing SQL.

Instructions

Describe one table: its columns with their PostgreSQL types and meanings. table is one of: plans, customers, subscriptions, invoices, payments, support_tickets. Call this before writing SQL.

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

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered. The description adds that the output is column-level type and meaning metadata, but that is also captured by the existing output schema, so the marginal behavioral content is thin.

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, zero filler. Purpose comes first, then the constrained value set, then the workflow directive — a clean front-loaded structure.

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

Completeness4/5

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

For a one-parameter, closed-domain metadata tool with an output schema, this covers what an agent needs to call it correctly. A note on error behavior for an invalid table name and an explicit pointer away from list_tables are the only missing pieces.

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 description coverage is 0% and the single `table` property carries no documentation, so the description must compensate — and it does by enumerating the complete closed set of valid values. Only the edge details (case sensitivity, behavior on an unrecognized name) are left unstated.

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?

States a specific verb and resource ("Describe one table") and immediately defines the payload: columns with PostgreSQL types and meanings. The exhaustive enumeration of valid tables makes its scope unambiguous next to list_tables and run_sql.

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?

"Call this before writing SQL" gives a concrete when-to-use trigger tied to the run_sql workflow. It stops short of naming an alternative for cases where the schema is already known, so the exclusion side is only implied.

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