Skip to main content
Glama

get_government_publications

Read-only

GovInfo package metadata (document at package_link). collection: CRPT congressional reports, PLAW public and private laws, CHRG committee hearings, GAOREPORTS GAO reports (no longer updated by GovInfo). Holds only what GovInfo added or changed since KeyVex's daily sync began, not its archive. More: keyvex.com/docs/tools/get_government_publications

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_government_publications"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 50.
sinceNoYYYY-MM-DD, inclusive, on the sort_by field.
titleNoSubstring.
untilNoYYYY-MM-DD, inclusive, on the sort_by field.
sort_byNoDefault date_issued.
congressNoe.g. '119'.
doc_classNohrpt/srpt House/Senate report, pub/pvt public/private law, hr/s House/Senate hearing.
collectionNo
package_idNoe.g. 'CRPT-119hrpt27'.
sort_orderNoDefault desc.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedInput schema / properties / collection / description
      Removed value: -"Filter to one collection: CRPT (committee reports), PLAW (public laws), CHRG (hearings), GAOREPORTS (GAO)."
    • changedInput schema / properties / congress / description
      Previous value: -"Congress number as string (e.g., '119')."New value: +"e.g. '119'."
    • changedInput schema / properties / doc_class / description
      Previous value: -"Sub-class within the collection. Examples: 'hrpt' (House report), 'srpt' (Senate report), 'pub' (public law), 'pvt' (private law), 'hr' (House hearing), 's' (Senate hearing)."New value: +"hrpt/srpt House/Senate report, pub/pvt public/private law, hr/s House/Senate hearing."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum records to return. Default 50, max 500."New value: +"Default 50."
    • changedInput schema / properties / package_id / description
      Previous value: -"GovInfo packageId. Direct doc lookup, fastest. Example: 'CRPT-119hrpt27'."New value: +"e.g. 'CRPT-119hrpt27'."
    • changedInput schema / properties / since / description
      Previous value: -"ISO date (YYYY-MM-DD). Only documents whose date_issued is on or after this date."New value: +"YYYY-MM-DD, inclusive, on the sort_by field."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Default: date_issued."New value: +"Default date_issued."
    • changedInput schema / properties / sort_order / description
      Previous value: -"Default: desc (most recent first)."New value: +"Default desc."
    • changedInput schema / properties / title / description
      Previous value: -"Case-insensitive substring against the package title."New value: +"Substring."
    • changedInput schema / properties / until / description
      Previous value: -"ISO date (YYYY-MM-DD). Only documents whose date_issued is on or before this date."New value: +"YYYY-MM-DD, inclusive, on the sort_by field."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With readOnlyHint and openWorldHint already declared, the description's added value is the deprecation note on GAOREPORTS and the sync-window coverage limit, both genuinely useful behavioral facts. It stops short of describing result volume, ordering behavior, or what happens when the sync window excludes an old document beyond the general caveat.

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 resource and scoped caveats in three dense fragments, with no filler. The telegraphic style borders on cryptic ('document at package_link') and the doc URL takes space, but nothing is redundant.

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

Completeness3/5

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

For a 10-parameter tool with no output schema, the description covers the key non-obvious facts (collection meanings, coverage window, GAOREPORTS deprecation) but never characterizes the response shape or confirms it returns a list of packages. An agent still has to infer the output from the schema alone.

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 90%, so baseline is 3, but the description decodes all four collection enum values (CRPT, PLAW, CHRG, GAOREPORTS) that appear as bare acronyms in the schema. It also notes package_link is the document location, adding meaning not present in any structured field.

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 the specific resource (GovInfo package metadata) and names the source system, which lets an agent distinguish it from siblings like get_bills or get_federal_register_documents. It never explicitly says this is a filtered list/query returning multiple packages, so the verb is implied rather than stated.

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?

The coverage caveat ('holds only what GovInfo added or changed since KeyVex's daily sync began, not its archive') is real scope guidance that tells an agent when results will be empty or incomplete. However, it offers no explicit when-to-use vs. alternative routing and no prerequisites for choosing between collections.

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