Skip to main content
Glama

fetch_dataset_schema

Retrieves the column names and data types for a specified Socrata dataset so you can inspect its structure before querying records.

Instructions

Get the schema (columns, types) for a specific dataset.

Args: resource_id: 4x4 dataset identifier (e.g., "erm2-nwe9") domain: Socrata portal domain

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": {
      "resource_id": "<resource_id>"
    },
    "name": "fetch_dataset_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNodata.cityofnewyork.us
resource_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; "Get" signals a read-only operation and it discloses the return contents (columns, types). It says nothing about authentication, Socrata app tokens, rate limits, or what happens with an invalid or missing resource_id.

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?

The purpose sentence is front-loaded and the Args block is tight and scannable, with no redundant wording. Slight deduction for the double-quote/whitespace framing in the raw description, which adds no content.

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 simple two-parameter read tool with no output schema; the description adequately covers what is returned (columns and types) and what each parameter means. Remaining omissions — auth requirements and error behavior — are minor for a schema-lookup call.

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%, so the description must compensate, and it largely does: resource_id is documented as a 4x4 identifier with a concrete example ("erm2-nwe9"), and domain is identified as the Socrata portal domain. It does not restate the schema default (data.cityofnewyork.us) or give a domain example, which is a small 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?

"Get the schema (columns, types) for a specific dataset" states a concrete verb and resource and clarifies the payload (columns and types), which separates it from siblings like query_dataset_records that return data rows. It stops short of naming those siblings explicitly, so the differentiation is inferable rather than stated.

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?

There is no when-to-use or when-not-to-use guidance and no reference to alternatives; an agent must infer that this is a discovery step to run before querying records. Only the implicit constraint "for a specific dataset" hints at prerequisites.

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