Skip to main content
Glama
Skeego

opendata-mcp

by Skeego

compose_preview_v1_datasets__provider___dataset__compose_preview

Preview a single-join composition on a dataset without saving. Validates join cardinality and warns if results exceed limits.

Instructions

POST /v1/datasets/{provider}/{dataset}/compose/preview (auth: Bearer OPENDATA_API_KEY) — Preview a compose/join without saving it — Execute a single-join preview against provider/dataset.

Kept narrow: exactly one join spec per request. Multi-join composition would compound cardinality risk during preview — we want users to vet each join in isolation before they chain them.

Preflight: when the base dataset has more than CARDINALITY_PREFLIGHT_BASE_ROW_THRESHOLD rows, we run a COUNT(*) on the joined query first. If the count exceeds CARDINALITY_PREFLIGHT_HARD_LIMIT we refuse with 400. If it's above the dynamic warning threshold we still run the preview but emit a cardinality_warning and cap rows at CARDINALITY_PREFLIGHT_ROW_CAP.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYes
datasetYes
bodyYesRequest body (application/json) for POST /v1/datasets/{provider}/{dataset}/compose/preview
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: the preflight cardinality check logic, including thresholds, refusal conditions, warnings, and row capping. This provides comprehensive transparency about what the tool does beyond its basic function.

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 description is concise, starting with the HTTP method and summary, then explaining the join constraint, and finally detailing preflight behavior. It is well-structured without unnecessary fluff, though slightly more precision could improve it.

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

Completeness3/5

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

Given the tool's complexity (nested parameters, no output schema), the description covers purpose, usage, and behavioral transparency but omits return format, error specifics beyond cardinality, and detailed parameter semantics. It is partially complete but leaves gaps for an AI agent to fully understand usage.

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?

The description does not explain the individual parameters (e.g., provider, dataset, body fields like key, source_column, join_column, select). With only 33% schema description coverage, the description should compensate but only provides high-level context about single joins and cardinality, lacking parameter-level details.

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?

The description clearly states 'Preview a compose/join without saving it' and 'Execute a single-join preview', specifying the HTTP method and auth. It distinguishes from saving by explicitly noting 'without saving', making the purpose unambiguous.

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?

The description explicitly advises using one join spec per request to avoid cardinality risk, implying users should vet each join in isolation. It provides clear guidance on when to use the tool but does not name sibling alternatives like compose_download_csv, so it's slightly below perfect.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Skeego/opendata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server