Skip to main content
Glama

govinfo_legislation_relationships

Read-onlyIdempotent

Return a paginated related-measure map for one bill from official GovInfo Bill Status XML, including companion, identical, related, and procedurally related measures, who identified each relationship, and the related measure's latest published action. Use this for 'find the Senate companion to this House bill', 'which rule resolution governed this bill?', or 'map CRS-identified related measures'. Coverage starts from 118th-Congress HR/S bills; related targets may be resolution types that are not otherwise hosted as primary records.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum relationship records. Default 25.
offsetNoRelationship records to skip. Default 0.
bill_typeYesHosted measure type: HR for a House bill or S for a Senate bill. Resolutions are outside this v1 snapshot.
bill_numberYesNumeric bill number within the fixed 118th Congress.
response_formatNoHuman-readable markdown or machine-readable JSON. Default markdown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / bill_number / maximum
      Added value: +99999
    • addedInput schema / properties / bill_number / minimum
      Added value: +1
    • changedInput schema / properties / bill_number / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / limit / maximum
      Added value: +100
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / offset / maximum
      Added value: +10000
    • addedInput schema / properties / offset / minimum
      Added value: +0
    • changedInput schema / properties / offset / type
      Previous value: -"number"New value: +"integer"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds real behavioral context beyond that: the data source (GovInfo Bill Status XML), pagination, and an explicit coverage constraint ('coverage starts from 118th-Congress HR/S bills; related targets may be resolution types that are not otherwise hosted as primary records').

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 core purpose and payload contents are front-loaded in the first sentence, followed by use cases and a coverage caveat. It is dense but every clause carries information; only the enumeration of relationship types borders on verbose.

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 no output schema, the description compensates by naming the fields each relationship record returns (measures, identifier, latest action), and it discloses the congress/measure-type coverage boundary. Little is missing for correct invocation, though return shape details like ordering are not specified.

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 the schema already documents limit, offset, bill_type, bill_number, and response_format, including enum constraints. The description does not add syntax or format detail beyond what the schema provides, so the baseline 3 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 and resource ('Return a paginated related-measure map for one bill') and enumerates exactly what the map contains: companion, identical, related, and procedurally related measures, who identified each, and the target's latest action. This clearly separates it from sibling tools like govinfo_legislation_search, _committee_path, and _version_lineage.

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?

Gives concrete triggering scenarios ('find the Senate companion to this House bill', 'which rule resolution governed this bill?', 'map CRS-identified related measures') that tell the agent exactly when this tool is the right choice. It does not explicitly name sibling alternatives or exclusions, so it falls short of a 5.

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.