Skip to main content
Glama

search_cfr

Read-only

Full-text search across the Code of Federal Regulations. Filter results by title, chapter, part, or amendment date to find relevant sections.

Instructions

Full-text search across the Code of Federal Regulations.

Returns matching sections with excerpts, headings, scores, and hierarchy.

CRITICAL: Set current_only=True (default) to search only in-effect text. Without it, search returns ALL historical versions including superseded, so a section amended 5 times appears 5 times.

Search caps at 10,000 total results. Use hierarchy filters (title, chapter, part) to narrow if you hit the cap.

Only 'relevance' ordering is supported. No date or newest sorting.

last_modified_after/before use YYYY-MM-DD format and filter by the date sections were last amended. Useful for finding recent regulatory changes.

per_page capped at 100 by default (server-side soft cap; API max is 5000).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
titleNo
chapterNo
partNo
subpartNo
sectionNo
current_onlyNo
last_modified_afterNo
last_modified_beforeNo
per_pageNo
pageNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations declare readOnlyHint=true and destructiveHint=false, and the description adds behavioral context beyond annotations: search behavior, default current_only, result caps, ordering limitations, and date filter format. 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 moderately long but well-structured with clear paragraphs and line breaks. Every sentence adds value, and the critical warnings are front-loaded. Minor redundancy could be trimmed.

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?

Given 11 parameters, 1 required, and high complexity, the description covers search behavior, defaults, caps, filters, date format, and ordering. Existence of output schema reduces burden to explain return values. Nearly complete, though a brief note about pagination could help.

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 0%, but the description compensates by explaining the purpose and constraints of key parameters: current_only (detailed with pitfall), hierarchy filters (title, chapter, etc.), last_modified_after/before (format and use), and per_page cap. Could be more explicit about each parameter individually.

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 clearly states 'Full-text search across the Code of Federal Regulations' and specifies that it returns 'matching sections with excerpts, headings, scores, and hierarchy,' distinguishing it from sibling tools like get_cfr_content and get_cfr_structure.

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?

Provides critical usage guidance: set current_only=True to avoid historical duplicates, use hierarchy filters to handle the 10,000 result cap, and notes only 'relevance' ordering is supported. Could be improved by explicitly stating when not to use this tool or suggesting alternatives.

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/1102tools/federal-contracting-mcps'

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