Skip to main content
Glama
ianderso
by ianderso

get_collection_fields

Read-only

Decode field codes in a collection's indexed records to readable labels like 'Father's Name' from codes such as PR_FTHR_NAME.

Instructions

Decode the field codes a collection's indexed records use.

An indexed record labels its values with codes rather than words — PR_FTHR_NAME, EVENT_PLACE, PR_NAME_SURN_ORIG. The codes are per-collection, and this is the dictionary that turns them into "Father's Name", "Event Place" and so on. Read it before interpreting a record from a collection you have not worked with.

Works without a token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYesNumeric collection id, e.g. '1417683' for the 1880 US census. Find one with search_collections.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true. The description adds a non-obvious behavioral fact that annotations don't cover: it 'Works without a token,' which tells the agent no auth is needed. It doesn't describe return structure in depth, but with annotations covering the safety profile this is solid.

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?

Front-loaded with the core action, and the code examples plus the 'read before interpreting' guidance each earn their place. Slightly long across four short paragraphs, but nothing is redundant.

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, yet the description explains exactly what the tool returns (a code-to-label dictionary) and why the agent would need it. Combined with the schema's parameter documentation, an agent has everything required to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema itself documents collection_id with an example ('1417683' for the 1880 US census) and a pointer to search_collections. The description only conceptually frames what a collection is, so the baseline 3 for high-coverage schemas applies.

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 ('Decode') and resource ('the field codes a collection's indexed records use'), then concretely illustrates the codes with examples like PR_FTHR_NAME and their decoded meanings. An agent can immediately distinguish this from get_collection or get_record.

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 says 'Read it before interpreting a record from a collection you have not worked with,' which names the trigger condition. It also points to search_collections for finding the collection id, connecting to the sibling that supplies the input.

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