Skip to main content
Glama

Datacommons Find Variable

datacommons_find_variable
Read-onlyIdempotent

Search Google Data Commons statistical variables by plain-language indicator, e.g. "median household income" -> Median_Income_Household, "unemployment rate" -> UnemploymentRate_Person. Returns variable ids with names and a match score. Use the id as variable in datacommons_observation.

Input Schema

NameRequiredDescriptionDefault
limitNoMax variables (default 10, max 25)
queryYesWhat you want to measure, e.g. "life expectancy", "CO2 emissions per capita"
_apiKeyYesData Commons API key (free). Get one at https://apikeys.datacommons.org

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety is covered. The description adds genuinely useful behavioral context beyond that: it returns variable ids with names and a match score, which the annotations don't convey.

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

Conciseness5/5

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

Three sentences, each earning its place: what it searches, worked examples of the mapping, and the return shape plus downstream usage. The core purpose is front-loaded.

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

Completeness5/5

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

No output schema exists, but the description explicitly states the return contents (ids, names, match score), and the annotations carry the safety profile. Combined with 100% schema coverage, an agent has everything needed to call it and consume the result correctly.

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 the baseline is 3, but the description earns more by demonstrating query semantics with two natural-language-to-variable-id examples that show how free-text input is interpreted. Limit and _apiKey are left to the schema, which is fine since it documents them.

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 (Search) and resource (Google Data Commons statistical variables) scoped by plain-language indicator, with two concrete input->output mappings. It is clearly distinguishable from datacommons_observation, which it explicitly points to.

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?

Explicitly tells the agent what to do with the result: 'Use the id as `variable` in datacommons_observation', routing it to the correct downstream sibling. It does not state when NOT to use it (e.g. when a known id already exists), so it falls just 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.