Skip to main content
Glama
cliwant

mcp-sam-gov

by cliwant

regulations_search_documents

Read-only

Search Regulations.gov for rulemaking documents such as rules, proposed rules, and notices. Filter by agency, docket, document type, date, or comment period status.

Instructions

Search Regulations.gov rulemaking DOCUMENTS (rules, proposed rules, notices) — the flagship of the api.data.gov keyed source (JSON:API; DATA_GOV_API_KEY or the shared DEMO_KEY). Input searchTerm/query, filters (agencyId, docketId, documentType, withinCommentPeriod, postedDateGe/Le YYYY-MM-DD), sort (def -postedDate), pageNumber (1..40 HARD cap), pageSize (5..250, def 25). Returns { documents:[{ id, documentType, title, agencyId, docketId, postedDate, commentEndDate, openForComment, withinCommentPeriod, frDocNum, objectId }] } + honest _meta. HONESTY: totalAvailable = meta.totalElements (the EXACT real total, ~millions), NOT the capped totalPages; page[number] is hard-capped at 40 (10,000-record ceiling) — at the ceiling hasMore stays true but nextOffset is null + a note says how to reach the rest (narrow filters / seek by lastModifiedDate). Genuine-empty ⇒ complete:true/total:0; an outage/4xx THROWS (never a fake empty).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNoSort order (default '-postedDate'). Live-verified set: -postedDate/postedDate/-lastModifiedDate/lastModifiedDate/-commentEndDate (non-exhaustive).
queryNoAlias for `searchTerm` (either is accepted; both feed filter[searchTerm]).
agencyIdNoFilter by posting agency acronym (filter[agencyId]), e.g. 'EPA', 'FDA'.
docketIdNoFilter by docket id (filter[docketId]), e.g. 'EPA-HQ-OAR-2021-0257'.
pageSizeNoRecords per page (page[size]), 5..250, default 25.
pageNumberNo1-based page number, 1..40 (HARD cap — page[number] max is 40; the reachable window is 40×pageSize ≤ 10,000 records).
searchTermNoFull-text search term (filter[searchTerm]), e.g. 'artificial intelligence'.
documentTypeNoFilter by document type (documents only): Rule / Proposed Rule / Notice / Supporting & Related Material / Other.
postedDateGeNoPosted on/after this date, YYYY-MM-DD (filter[postedDate][ge]).
postedDateLeNoPosted on/before this date, YYYY-MM-DD (filter[postedDate][le]).
withinCommentPeriodNotrue ⇒ only documents currently open for comment (documents only; filter[withinCommentPeriod]).
Behavior5/5

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

The description discloses key behavioral traits beyond the readOnlyHint and openWorldHint annotations: pagination behavior (hard cap, ceiling note), honesty of totalAvailable vs capped totalPages, error handling (genuine-empty vs outage/4xx throws), and how to reach more records. No contradiction with annotations.

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 relatively long but every sentence earns its place by providing critical usage information. It is front-loaded with the core purpose and then systematically covers parameters, pagination, and error behavior. Minor redundancy (e.g., mentioning 'flagship' is not essential) could be trimmed, but overall it is well-structured and efficient.

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

Completeness5/5

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

Given no output schema, the description explicitly documents the return structure (documents array with fields like id, documentType, title, etc.) and the meta object behavior (totalElements as exact total). It also covers all parameters, pagination limits, and error states (genuine-empty vs outage). This is comprehensive for a complex search tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the baseline is 3, but this description adds significant value: it clarifies the relationship between query and searchTerm (aliases), explains sort options (default, live-verified set), describes pageNumber hard cap as 'HARD cap', details date format (YYYY-MM-DD), and interprets withinCommentPeriod as 'documents only'. This goes well beyond the schema.

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 description starts with 'Search Regulations.gov rulemaking DOCUMENTS (rules, proposed rules, notices)' which uses a specific verb and resource, and immediately distinguishes from sibling tools like regulations_search_comments (for comments) and regulations_search_dockets (for dockets). The explicit enumeration of document types ensures clear purpose.

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 explains when to use this tool (search for rulemaking documents) and provides important usage constraints: pageNumber hard cap at 40, pageSize range, and alternative strategies (narrow filters / seek by lastModifiedDate) when the ceiling is reached. It could be more explicit about when to prefer sibling tools, but the context is clear enough.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cliwant/mcp-sam-gov'

If you have feedback or need assistance with the MCP directory API, please join our Discord server