Skip to main content
Glama

Describe a Dataset

describe_dataset
Read-onlyIdempotent

The full schema of one dataset: every column (type, role, unit, value range, what a NULL means), the exact filters with their valid values (the keys query_dataset and aggregate accept), how the code columns join to the lookup tables (foreign_keys), example queries, usage notes, limitations, and null semantics. key_metric names the headline figure most answers want. Per column, key_metric_grain_contributor marks a category the headline figure is only comparable within (pin it or group by it) and metric_component marks the numerator and denominator of a rate. recommended_query is a safe default query (headline figure, the filters to pin, required single-value choices) plus a ranking recipe for top or bottom N. filter_hints lists paired filters. non_additive lists columns whose rows overlap, so summing across them double counts; partitions lists columns with no total whose values partition the whole (each value's share adds up to 1 across them), so they are read side by side and never pinned by default; value_implications lists values that imply another column's value. year_meaning, when set, says what year labels when it is not when the figures were measured. pooled_rates lists rates whose figure for several rows is scale * SUM(numerator) / SUM(denominator), scale the rate's per-N factor (1,000 for a rate per 1,000) (aggregate with agg='weighted_rate'), not an average of the rows' rates. series_breaks lists years from which figures are not comparable with earlier years (each with its reason; metrics, when present, limits it to those columns), so the step into such a year is not a trend. year_window, when set, says every figure pools years years named by the window's last year, and overlapping whether consecutive windows share years (then they are not an annual series). Each category filter carries has_total and requires_single_value. verbosity='schema' drops the prose (descriptions, usage, limitations, examples) for a much smaller payload that still has everything needed to build a query; the limitations prose in the default 'full' carries the caveats. An unknown dataset returns an error listing the available ones with a 'did you mean'.

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": {
      "topic": "<topic>"
    },
    "name": "describe_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicYesDataset name, e.g. 'act_scores' (the `name` from list_datasets or search_datasets). Names are unique across subject areas.
verbosityNo'full' (default) or 'schema' (drops the prose; keeps columns, filters and valid values, key_metric, and recommended_query).full

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / main_topic
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Optional subject-area consistency check. Omit: globally unique topic names and full keys identify the dataset on their own.",
      -  "enum": [
      -    "census",
      -    "education",
      -    "health",
      -    "immigration",
      -    null
      -  ],
      -  "title": "Main Topic"
      -}
    • changedInput schema / properties / topic / description
      Previous value: -"Dataset name, e.g. 'act_scores' (the last part of a key from list_datasets or search_datasets). The full key, e.g. 'education/gosa/act_scores', also works. main_topic is optional."New value: +"Dataset name, e.g. 'act_scores' (the `name` from list_datasets or search_datasets). Names are unique across subject areas."
  2. Changed6 schema fields changed
    • addedInput schema / properties / main_topic / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / main_topic / default
      Previous value: -"education"New value: +null
    • changedInput schema / properties / main_topic / description
      Previous value: -"Subject area: 'education' (the default), 'census', or 'immigration'. A dataset's key starts with it."New value: +"Optional subject-area consistency check. Omit: globally unique topic names and full keys identify the dataset on their own."
    • changedInput schema / properties / main_topic / enum
      Previous value: -[
      -  "census",
      -  "education",
      -  "immigration"
      -]New value: +[
      +  "census",
      +  "education",
      +  "health",
      +  "immigration",
      +  null
      +]
    • removedInput schema / properties / main_topic / type
      Removed value: -"string"
    • changedInput schema / properties / topic / description
      Previous value: -"Dataset name, e.g. 'act_scores' (the last part of a key from list_datasets or search_datasets). The full key, e.g. 'education/gosa/act_scores', also works and sets main_topic."New value: +"Dataset name, e.g. 'act_scores' (the last part of a key from list_datasets or search_datasets). The full key, e.g. 'education/gosa/act_scores', also works. main_topic is optional."
  3. Changed1 schema field changed
    • changedInput schema / properties / topic / description
      Previous value: -"Dataset name, e.g. 'act_scores' (the last part of a key from list_datasets or search_datasets)."New value: +"Dataset name, e.g. 'act_scores' (the last part of a key from list_datasets or search_datasets). The full key, e.g. 'education/gosa/act_scores', also works and sets main_topic."
  4. Changed5 schema fields changed
    • addedInput schema / properties / main_topic / description
      Added value: +"Subject area: 'education' (the default), 'census', or 'immigration'. A dataset's key starts with it."
    • addedInput schema / properties / main_topic / enum
      Added value: +[
      +  "census",
      +  "education",
      +  "immigration"
      +]
    • addedInput schema / properties / topic / description
      Added value: +"Dataset name, e.g. 'act_scores' (the last part of a key from list_datasets or search_datasets)."
    • changedInput schema / properties / verbosity / description
      Previous value: -"'full' (default) or 'schema' (drops prose; keeps columns/filters/enums/key_metric/recommended_query)."New value: +"'full' (default) or 'schema' (drops the prose; keeps columns, filters and valid values, key_metric, and recommended_query)."
    • addedInput schema / properties / verbosity / enum
      Added value: +[
      +  "full",
      +  "schema"
      +]
  5. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the burden is lower, and the description adds genuinely non-obvious behavior: unknown datasets return an error listing alternatives with a 'did you mean', and verbosity='schema' strips prose while remaining query-sufficient. It does not state payload size or latency implications of the 'full' mode beyond 'much smaller', leaving a small gap.

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

Conciseness2/5

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

It is one undifferentiated block of roughly a dozen dense clauses, each explaining an output field (`non_additive`, `partitions`, `pooled_rates`, `series_breaks`, `year_window`) that an output schema already covers — and this tool does have one. The front-loaded purpose is good, but the back half is a field glossary that should have been structured or omitted.

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 two-parameter read tool with full annotations, a complete output schema, and 100% schema coverage, this is more than sufficient: naming source, error behavior, and verbosity effects are all covered. The one missing piece is how this tool relates to describe_dimension and the sequencing against query_dataset/aggregate.

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 coverage is 100%, so baseline is 3, but the description materially enriches both parameters: it credits `topic` to the `name` field from list_datasets/search_datasets and clarifies that names are unique across subject areas, and it spells out exactly what `verbosity='schema'` preserves versus drops rather than just repeating the enum.

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?

The opening clause ('The full schema of one dataset') names a specific verb+resource and then enumerates what that schema contains — columns, filters with valid values, foreign_keys, examples, limitations. It also points to list_datasets/search_datasets as the source of valid names. It never mentions the sibling describe_dimension, so the agent must still infer how the two differ, which keeps it below a 5.

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?

The filters are described as 'the keys query_dataset and aggregate accept', which implies this is the reference to consult before building a query, and the verbosity sentence states a real tradeoff (smaller payload vs. prose caveats). But there is no explicit 'call this before query_dataset, use describe_dimension instead when X' routing statement, so the workflow is only implied.

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.

Resources