Skip to main content
Glama

Search the public-source catalogue

catalog_search
Read-onlyIdempotent

Search a sealed snapshot of public data sources for feeds that might answer a question — the first move when you need a source and do not already know one. Example: {"question": "county unemployment rate monthly", "limit": 10, "format": "csv"}. READ THIS BEFORE YOU TRUST A RESULT. The snapshot indexes ONE provider, Data.gov, and only part of it: about 22,000 records were catalogued out of the ~550,000 Data.gov lists, and only about a thousand of those record which data formats they publish. So a miss is NOT evidence that no such source exists — go and look yourself — and a hit is a lead to open and read, never a source anyone has verified. Returns {status, question, requirement, generation, candidates, work}. generation says which sealed snapshot answered and when it was published; cite its store digest. work reports what the search did — ranges_scanned, ranges_pruned, candidates_examined, member_bytes_read — and no wall-clock time. Every ranked candidate comes back whatever its disposition — admitted, human_escalation_required or refused — because refused overwhelmingly means the entry does not record its data formats, not that the source is unusable. format takes ONE lowercase token and withholds nothing: it states the format your question requires. Every ranked entry still comes back, and one that does not declare it arrives with filters_match: false and disposition: refused. Naming a format changes the judgement beside each entry, not which entries you see. There is no way to ask for two — the catalogue admits one format filter per question — so send format once or leave it out. title, publisher, description and rights may each be null, and spatial_scope is a LIST of bounding-box strings or null: the catalogue does not record these for every entry. provider_record_url is the entry's own identifier, and only when that identifier is itself an https URL — about one entry in four is identified by an opaque id and has no page to open, so a null means search the provider's own site rather than building an address out of provider_record_id. There are no relevance scores anywhere: the order is the ranking, and the facts are the evidence. This tool checks question, limit and format against the shapes above BEFORE it calls anything, so a malformed argument is refused here and never reaches the catalogue; were one to get through, a bad limit or a missing question can surface as the service's own 422 rather than as catalog_search_invalid. Needs a workspace credential, and the same search is mr-data catalog search on the command line.

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": {
      "question": "<question>"
    },
    "name": "catalog_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
formatNo
questionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes far beyond the readOnly/openWorld/idempotent annotations: discloses the snapshot's coverage skew and sealed-snapshot semantics, that refusal usually means missing format metadata rather than unusability, that there is no relevance score, the exact error surfaces (local refusal vs. service 422), and the workspace-credential requirement. Everything is consistent with the supplied 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?

Front-loaded well, with purpose first and a clear "READ THIS BEFORE YOU TRUST A RESULT" warning block. But the format-filter rule is restated three or four times ("withholds nothing," "Every ranked entry still comes back," "changes the judgement... not which entries you see"), and the 422/validation sentence is convoluted — length that a tighter edit would remove.

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?

For a 3-parameter search tool with no output schema, the description supplies the return envelope ({status, question, requirement, generation, candidates, work}), explains `generation` and `work` fields, warns about nullability of title/publisher/rights/spatial_scope, and warns against synthesizing URLs from opaque ids. An agent has enough to call it and interpret results 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?

With 0% schema description coverage the description must carry the load, and it does so thoroughly for `format` — one lowercase token, single filter only, nulls and `filters_match: false`/`disposition: refused` behavior. It also demonstrates `question` and `limit` via an example, but never states `limit`'s bounds (1–25, default 10) or `question`'s length limits, leaving the integer parameter's semantics thin.

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 and resource ("Search a sealed snapshot of public data sources for feeds") and adds the scoping cue "the first move when you need a source and do not already know one," which implicitly separates it from known-source lookup tools. It also bounds the resource precisely: one provider, Data.gov, ~22,000 of ~550,000 records.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly prescribes when to use it (no source known yet), how to read a miss ("NOT evidence that no such source exists — go and look yourself"), and how to treat a hit ("a lead to open and read"). It also gives the escape hatch when the format filter would be wrong ("send `format` once or leave it out").

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