Skip to main content
Glama

Describe callable data tables

describe_data
Read-onlyIdempotent

Describe the tables Mdexa can return rows from for one dataset: tables, columns (type, unit, codes, Refused / Don't know codes, lineage), keys and joinable tables. Call it before query_data or aggregate_data. Most datasets forbid passing their data on: then the answer is data_available: false with the quoted terms, the field dictionary and where the recipe for your own machine is. A refusal is an answer, not an error; relay it.

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": {
      "slug": "<slug>"
    },
    "name": "describe_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFind columns by name, source variable name or label: across the tables, or in table only. Not with columns, stats or cursor.
langNoen
slugYes
hintsNo
statsNoWith table only: per-column statistics (n, n_null, n_distinct, min, max, top_values, by_cycle).
tableNoOmit to list the tables of this version.
cursorNonext_cursor from the previous response.
columnsNoWith table only: describe these columns only.
versionNoOmit for the current version.
max_tokensNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / q
      Added value: +{
      +  "description": "Find columns by name, source variable name or label: across the tables, or in table only. Not with columns, stats or cursor.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / stats
      Added value: +{
      +  "description": "With table only: per-column statistics (n, n_null, n_distinct, min, max, top_values, by_cycle).",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already establish the read-only, idempotent, non-destructive profile, and the description goes well beyond them by disclosing the refusal outcome: data_available: false, quoted terms, field dictionary, and where the local recipe lives. The instruction 'A refusal is an answer, not an error; relay it' is exactly the kind of non-obvious behavior an agent would otherwise mishandle.

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?

Three tight sentences ordered from purpose to sequencing to edge-case handling, with no filler. The parenthetical field list is dense but functional; it is the load-bearing part of the definition.

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?

A 10-parameter tool with an output schema, so return-value documentation is rightly omitted and the description focuses on purpose, ordering and refusal semantics. The remaining gap is parameter behavior for the discovery modifiers (`q`, `stats`, `columns`, `version`), which an agent would have to infer from the schema alone.

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

Parameters2/5

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

Nine of ten parameters are never mentioned; `q`, `lang`, `hints`, `stats`, `columns`, `version` and `max_tokens` carry partial or no schema descriptions (60% coverage), and `slug` has a pattern but no schema description at all. The description's word 'tables, columns' loosely gestures at `table`/`columns` but adds no meaning about filtering, pagination, or token budgeting.

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 the tables Mdexa can return rows from for one dataset') and enumerates what the answer contains: tables, columns with type/unit/codes/refusal codes/lineage, keys, joinable tables. It is clearly distinct from query_data and aggregate_data, which it positions itself ahead of.

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 it before query_data or aggregate_data' gives explicit sequencing guidance for the primary workflow, and the refusal paragraph tells the agent how to treat a negative answer. It does not cover when to skip this call (e.g. when data is already known) or mention other discovery siblings, so it stops short of full when/when-not coverage.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.