Get Full Rule Guidance
get_rule_guidanceRetrieve full guidance text for selected Spectral rules to explain violations beyond compact validation output.
Instructions
Return full guidance text (description/message) for selected Spectral rules.
Use this tool when compact validation output is not enough and full rule guidance is needed.
Args:
standard_ruleset (string, optional): One of 'spectral', 'spectral-full', 'spectral-generic', 'spectral-security'. Default: 'spectral'.
ruleset_path (string, optional): URL or local path to a custom ruleset. Overrides standard_ruleset.
rule_codes (string[], optional): Rule codes to return. If omitted, all rules are returned.
Returns: JSON array of objects: [ { "code": "cache-responses-undocumented", "severity": "info", "guidance": "Cache usage SHOULD be extensively detailed ..." } ]
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": "get_rule_guidance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_codes | No | Optional list of rule codes to fetch full guidance for. If omitted, returns all rules. | |
| ruleset_path | No | URL or absolute local path to a Spectral ruleset file. Overrides standard_ruleset. | |
| standard_ruleset | No | Standard Italian PA ruleset: 'spectral' (default), 'spectral-full', 'spectral-generic', 'spectral-security'. |