Skip to main content
Glama

Get one item

get_item
Read-only

Fetch one item from a collection. Pass id (most collections), slug (sessions; bills take slug only, the number as typed: HR1 is H.R. 1, HRES1 is H.Res. 1) or external_id_source + external_id_value (politicians); bills and constitutions also need jurisdiction_slug. Domain takes a citation key. Statutes and regulations take a search hit's file id. Attachments take the page URL; files take file_id. card names the show_* call that draws the item.

A bare bill slug returns the newest session's bill; pass session_slug for an older one. A bill carries law_references (10, amends and repeals first, with a total; response_format="full" returns up to 50), so you need not page its text to learn what it amends. For lobbying_filings, id is a filing id; response_format="full" adds the excerpts for the bills it names.

response_format: "detailed" (default), "concise" summary fields, "full" adds extra reads (on a bill: summary, history, text versions, votes). Use "full" to brief one item, not to resolve many.

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": {
      "collection": "<collection>"
    },
    "name": "get_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
slugNo
collectionYes
session_slugNo
response_formatNoSelection-set size for get/list/search results.detailed
external_id_valueNo
jurisdiction_slugNoJurisdiction slug, enum name or state code (new-york, NEW_YORK, NY).
external_id_sourceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the read-only, non-destructive annotations, it discloses meaningful behavior: bare bill slugs resolve to the newest session, law_references are limited and ordered, and response_format='full' performs extra reads. It does not describe error behavior or authentication/rate-limit constraints, but the annotations already cover the safety profile.

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 dense but front-loaded with the core operation, then organizes details by identifier type and response mode. The HR1/H.R. 1 example is verbose but earns its place by disambiguating typed bill slugs.

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?

For a complex, multi-collection getter with no output schema, it covers the critical selection keys and several special return behaviors. It could still clarify the general returned item shape and should not reference collections missing from the enum, but most invocation blockers are addressed.

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 only 25% schema description coverage across eight parameters, the description does substantial work by mapping id, slug, session_slug, jurisdiction_slug, external_id_source/value, and response_format to specific collection types. However, it mentions attachments and files even though those are absent from the collection enum, and it leaves external_id_source values undocumented.

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 opening sentence states a specific verb, resource, and cardinality: fetch one item from a collection. The word 'one' distinguishes it from list/search siblings without requiring the schema to be opened.

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 gives clear conditional usage by collection and by response_format, including the explicit note to use 'full' for briefing one item but not for resolving many. It stops short of naming search/list as the discovery alternative when no identifier is known, so tool-selection guidance is present but not fully explicit.

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