Back to Docs

Tools Reference

LegisMCP provides 7 tools that AI agents can use to access legislative data. All tools are available through both the local (stdio) and remote (Streamable HTTP) transports.

get-bill

Get detailed information about a specific bill, including its status, sponsors, and latest actions.

Parameters

NameTypeRequiredDescription
congressnumberrequiredCongress number (e.g., 119 for the 119th Congress)
billTypestringrequiredType of bill: hr, s, hjres, sjres, hconres, sconres, hres, sres
billNumbernumberrequiredThe bill number

Example

get-bill(congress: 119, billType: "hr", billNumber: 1)

list-recent-bills

List recently introduced or updated bills sorted by date of latest action, with optional filtering by congress and bill type.

Parameters

NameTypeRequiredDescription
congressnumberoptionalCongress number to filter by (defaults to current)
billTypestringoptionalFilter by bill type: hr, s, hjres, sjres, hconres, sconres, hres, sres
limitnumberoptionalNumber of results to return (default: 20, max: 100)
offsetnumberoptionalNumber of bills to skip for pagination

Example

list-recent-bills(congress: 119, limit: 10)

analyze-bill

Fetch comprehensive data about a bill from multiple Congress.gov API endpoints in parallel. Returns structured data including bill details, sponsor, status, cosponsors, committees, subjects, related bills, and full action history.

Parameters

NameTypeRequiredDescription
querystringrequiredBill identifier (e.g., "HR 1", "S 2345", "119 HR 5"). Text search is NOT supported.
congressnumberoptionalCongress number (defaults to current if not in query)
includeTextbooleanoptionalInclude links to full bill text (default: false)
includeRelatedbooleanoptionalInclude related bills and amendments (default: true)

Example

analyze-bill(query: "S 1234")

member-details

Get detailed information about a specific member of Congress, including sponsored/cosponsored legislation, leadership positions, and recent activity.

Parameters

NameTypeRequiredDescription
memberIdstringrequiredBioguide ID of the member (e.g., "P000197")
congressstringoptionalSpecific congress number (e.g., "118")
includeDetailsbooleanoptionalInclude detailed sub-resource data (default: true)

Example

member-details(memberId: "P000197")

subresource

Access sub-resources for any legislative resource using a URI-based lookup. Supports bill, member, and committee sub-resources.

Parameters

NameTypeRequiredDescription
parentUristringrequiredParent resource URI (e.g., "congress-gov:/bill/119/hr/1" or "congress-gov:/member/P000197")
subresourcestringrequiredSub-resource name: actions, amendments, cosponsors, committees, subjects, summaries, text, sponsored-legislation, etc.
formatstringoptionalOutput format: "detailed", "summary", or "raw" (default: "detailed")
limitnumberoptionalMax results to return (default: 20)
offsetnumberoptionalNumber of results to skip

Example

subresource(parentUri: "congress-gov:/bill/119/hr/1", subresource: "cosponsors")