Skip to main content
Glama

search_comments

Read-only

Search public comments on Regulations.gov.

To find comments on a specific document, use comment_on_id with the
hex objectId from document detail/search results (attributes.objectId,
e.g. '0900006486531e6b'). The human-readable documentId is REJECTED
here because the API silently returns 0 comments for it.

docket_id filters comments to all documents in a docket.

search_term is a full-text match, including attachment text; results
follow sort, not relevance. Quote a phrase ('"Professional Services
Council"') to match it exactly.

posted_comments (= meta.totalElements) counts comments posted publicly,
not comments received; mass-mail duplicates and unposted comments are
not in it, so the agency's received count can be much higher.

Search rows carry no organization (the API leaves it out), and many
titles are only "Comment on FR Doc # ...". For "who commented" questions
set include_organization=True (page_size up to 25): each row gets the
submitter's organization from its comment detail. Rows without one were
filed by individuals or the agency hid the field.

Page size: 5-100; page_number 1-40. Comments sorted by '-postedDate' by
default. The API serves 40 pages; when more comments match,
page_limit_note (and truncated=true on page 40) says how many are out of
reach. Split the query into posted_date_ge/le windows. Most comment text is in attachments; get_comment_detail with
include_attachments=True returns their download URLs.

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": "search_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo-postedDate
agency_idNo
docket_idNo
page_sizeNo
page_numberNo
search_termNo
comment_on_idNo
posted_date_geNo
posted_date_leNo
include_organizationNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare the read-only, non-destructive, open-world profile, and the description adds substantial context beyond that: the API silently returns 0 for human-readable documentId, posted_comments reflects posted rather than received counts, mass-mail duplicates are excluded, search rows omit organization, titles are often generic, and the API is capped at 40 pages with page_limit_note/truncated flags. These are precisely the behavioral quirks an agent needs to avoid misinterpreting results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the purpose, and most sentences earn their place given the tool's complexity. But it is a dense wall of text with awkward line breaks and several multi-idea sentences (notably the comment_on_id and posted_comments sentences), which makes it harder to scan than a bulleted or clearly sectioned definition.

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?

An output schema exists, so return values need not be explained, yet the description usefully clarifies one output field (posted_comments = meta.totalElements) and warns about truncation. For a 10-parameter tool with zero schema descriptions, it is nearly complete, but the missing agency_id semantics and unspecified date formats leave gaps an agent could stumble on.

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 description coverage is 0%, so the description must carry parameter meaning, and it does for most parameters: comment_on_id's required format and rejection of documentId, docket_id's scope, search_term's full-text/attachment behavior and exact-phrase quoting, sort ordering, page_size and page_number limits, and include_organization's purpose. Gaps remain: agency_id is never mentioned, and the date format expected by posted_date_ge/le is only implied by the phrase 'Split the query into posted_date_ge/le windows.'

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?

The first sentence gives a specific verb and resource: 'Search public comments on Regulations.gov.' The description further scopes the search by document, docket, and date, making the tool's purpose clear. It does not explicitly contrast itself with the sibling search_documents tool, which keeps it from a 5.

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?

It gives explicit conditional guidance: use comment_on_id with the hex objectId (not documentId) for a specific document, docket_id to cover all documents in a docket, and include_organization=True for 'who commented' questions. It also names get_comment_detail for attachment URLs. However, it never states when to choose search_comments over search_documents, so the alternative-tool routing is incomplete.

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.