fedramp_search
Search the FedRAMP 2026 rule corpus using BM25 relevance ranking. Returns matching documents with snippets and paths for easy retrieval of full text.
Instructions
Full-text search across the FedRAMP Consolidated Rules for 2026 corpus.
Ranks all bundled markdown documents (rules, definitions, control guidance,
agency/assessor/advisor guidance) by BM25 relevance to the query and returns
the best matches with a snippet and the document path. Use the returned
`path` with `fedramp_get_document` to read the full text, or use
`fedramp_get_rule` / `fedramp_get_definition` for a specific ID or term.
Args:
params (SearchInput):
- query (str): keywords or a rule ID to search for.
- section (Optional[str]): path-prefix filter (e.g. 'providers/20x').
- limit (int): max results, 1-30 (default 8).
- response_format (ResponseFormat): 'markdown' (default) or 'json'.
Returns:
str: Ranked results. JSON schema when response_format='json':
{
"query": str,
"count": int,
"results": [
{"path": str, "title": str, "section": str,
"score": float, "snippet": str}
]
}
Markdown otherwise. Returns a "No matches" message if nothing is found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |