Skip to main content
Glama

Govinfo Search Packages

govinfo_search_packages
Read-onlyIdempotent

Full-text + faceted search across GovInfo. Filter by one or more collection codes (BILLS, FR, CFR, USCODE, CHRG, CRPT, CREC, PLAW, USCOURTS...), date range, congress, and free-text query. Several codes search the union of those collections. Returns package IDs, titles, collection and issue dates.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "climate change"
    },
    "name": "govinfo_search_packages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoAlias for page_size, 1-100.
queryYesFree-text search
date_toNoYYYY-MM-DD
congressNoCongress number (e.g., 118), for BILLS/CHRG/CRPT
date_fromNoYYYY-MM-DD
page_sizeNoResults per page, 1-100 (default 25). `limit` works as an alias.
collectionsNoCollection codes, comma- or space-separated (e.g. "CHRG" or "CHRG,CRPT"). Several codes return the union of those collections, "CHRG,CRPT" gives every package in either. Codes come from list_collections.
offset_markNoPagination cursor from previous response

Output Schema

NameRequiredDescriptionDefault
totalYesTotal matching packages
resultsYesSearch result packages
returnedYesNumber of results returned in this response
next_offset_markNoPagination cursor for next results

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / collections / description
      Previous value: -"Collection codes, comma- or space-separated (e.g. \"CHRG\" or \"CHRG,CRPT\"). Several codes return the union of those collections — \"CHRG,CRPT\" gives every package in either. Codes come from list_collections."New value: +"Collection codes, comma- or space-separated (e.g. \"CHRG\" or \"CHRG,CRPT\"). Several codes return the union of those collections, \"CHRG,CRPT\" gives every package in either. Codes come from list_collections."
    • changedInput schema / properties / congress / description
      Previous value: -"Congress number (e.g., 118) — for BILLS/CHRG/CRPT"New value: +"Congress number (e.g., 118), for BILLS/CHRG/CRPT"
  2. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description does add one genuine behavioral trait beyond annotations — that multiple collection codes return the union of those collections — but says nothing about pagination behavior, result caps, or defaults.

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?

Two dense sentences that front-load the search capability and then the filters; nothing is wasted. The trailing return-field sentence partially duplicates the output schema, but it still helps an agent judge relevance at a glance.

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?

With 8 parameters, an output schema, and full annotation coverage, the description only needs to frame the capability and facets, which it does. Pagination (offset_mark) and the page_size/limit alias are left entirely to the schema, which is acceptable but the one remaining gap.

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%, so baseline is 3. The description reinforces which collection codes exist and that they can be combined as a union, and ties congress to BILLS/CHRG/CRPT, but adds no syntax or format detail beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Full-text + faceted search across GovInfo') and enumerates the facets (collection codes, date range, congress, free-text query). It reads clearly as the search entry point versus package-retrieval siblings, though it never names those siblings explicitly.

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

Usage Guidelines3/5

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

Usage is implied by the facet list: search when you want to discover packages by query/collection/date. There is no explicit statement of when to prefer this over govinfo_get_package or search_within, and no exclusions or prerequisites (e.g., that collection codes come from list_collections is only in the schema).

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.