Skip to main content
Glama
ny-data-registry-mcp

ny-data-registry-mcp

get_dataset_columns

Read-only

Get column names, field types, descriptions, distributions, licensing, publisher, and provenance for a dataset, or return its metadata as Croissant or DCAT-US.

Instructions

Column names, field names, types and descriptions for one dataset from the index, plus every distribution (format + URL), license, publisher, extent and per-field provenance (from the portal vs derived here). With standard 'croissant' (read by AI and ML tools) or 'dcat-us' (DCAT-US 3.0, read by government catalogs and data.gov), returns the dataset's description in that standard instead, with which required fields the portal did not give. A license is never inferred: where the portal gives none, a terms page may be linked, labeled 'terms page, not a license'.

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": {
      "dataset": "<dataset>"
    },
    "name": "get_dataset_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost columns to list. Default 100
offsetNoSkip this many columns (columns_shown.next_offset)
datasetYesdataset_id from search_datasets, a Socrata 4x4, an ArcGIS item id, or the dataset URL
standardNoReturn the description as Croissant 1.1 ('croissant') or DCAT-US 3.0 ('dcat-us') instead of the column list

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Most columns to list. Default 100",
      +  "maximum": 500,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many columns (columns_shown.next_offset)",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / standard
      Added value: +{
      +  "description": "Return the description as Croissant 1.1 ('croissant') or DCAT-US 3.0 ('dcat-us') instead of the column list",
      +  "enum": [
      +    "croissant",
      +    "dcat-us"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description still adds substantive behavior: provenance is labeled per field as portal-supplied vs derived here, missing required fields are reported, and licenses are never inferred—a terms page is explicitly labeled 'terms page, not a license'. That is meaningful disclosure beyond the annotations.

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

Conciseness3/5

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

Sentences are heavily overloaded—the first lists eight distinct returned artifacts in one breath—and the second packs the standards mode and missing-field reporting together. Nothing is strictly redundant, but the dense packing hurts scanability and front-loading.

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?

With no output schema, the description carries the burden of describing returns and does so thoroughly, including the alternate standard-mode output. Minor gaps remain: response structure for the column list (beyond pagination cursor) and behavior on an unresolvable dataset identifier are unstated.

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 adds real meaning for the 'standard' parameter by explaining what each enum value produces and who consumes it (Croissant for AI/ML tools, DCAT-US 3.0 for government catalogs and data.gov) and that it replaces the column list. It also confirms offset is driven by columns_shown.next_offset.

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 concrete resource (columns of one dataset from the index) and enumerates the returned content: names, types, descriptions, distributions, license, publisher, extent, provenance. It also describes a second mode (croissant/dcat-us standard output). It stops short of differentiating itself verbosely from siblings such as find_joinable or check_source, though it implies the search_datasets handoff.

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 implied rather than stated: dataset_id comes 'from search_datasets', pagination follows 'columns_shown.next_offset', and the standard mode is for AI/ML or government catalog consumers. There is no explicit when-to-use / when-not-to-use guidance or named alternative for schema inspection versus join-finding.

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