Fetch rules
fetch_rulesFetch up to 5 full rules (JIT; at most 50 rules a day on Pro, 80 on Team, shared with search_rules): by category, or by ids, such as the rule_id of a failed check from scan_url or get_site_scan. By category, with content_type, rules are ranked by fit to it (listed, then applies_to all), then confidence, then evaluation_mode; without it they come in id order, and the response says total_in_category, returned, remaining_after_this_call and selection. Full rules include evidence (strongest sources first, at most 5 per rule unless evidence is "all"; evidence_total counts them all), confidence, causality (established only with an experimental source; not_established means present the advice as an association, whatever the wording), evaluation_mode (deterministic, agent, or hybrid), checks, and remediation. Rules with checks: [] (evaluation_mode: agent) are intentional host-agent guidance, not missing checks. Use when: A scan gave you rule ids for failed checks (pass ids), or you know the category and need current AEO/GEO rules for a research question, a page audit (even when checks pass), or when a fix hint is ambiguous. Avoid when: You only want a mechanical page grade (scan_url), or you have a keyword instead of a category or id (search_rules). exclude_ids returns a second set of a category when the first five left a question open; the daily cap still applies. Do not claim: Reading a rule does not apply it, and it is not a citation. Verify: Edit, then re-run the lint or scan that failed, and apply host-agent semantic review for agent/hybrid rules.
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": "fetch_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | 1-5 rule ids, such as the rule_id of failed checks. Provide exactly one of category or ids. | |
| category | No | Category name from list_categories. Provide exactly one of category or ids. | |
| evidence | No | strongest (default): at most 5 sources per rule, strongest first. all: every source. | |
| exclude_ids | No | Optional, with category: rule ids already read (at most 15); they are skipped so the call returns the next rules in the same order. | |
| content_type | No | Optional, with category. Ranks rules that list this content type first, then rules that apply to all. |