Skip to main content
Glama
MCP API OAS Checker

MCP API OAS Checker

Official
by italia

Get Full Rule Guidance

get_rule_guidance
Read-onlyIdempotent

Retrieve 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

NameRequiredDescriptionDefault
rule_codesNoOptional list of rule codes to fetch full guidance for. If omitted, returns all rules.
ruleset_pathNoURL or absolute local path to a Spectral ruleset file. Overrides standard_ruleset.
standard_rulesetNoStandard Italian PA ruleset: 'spectral' (default), 'spectral-full', 'spectral-generic', 'spectral-security'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world access, so the safety profile is covered. The description adds the return shape and the precedence rule that ruleset_path overrides standard_ruleset, which is useful, but says nothing about failure modes (bad path, unknown rule codes) or how large the all-rules payload can get.

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?

Well front-loaded: the one-line purpose precedes the usage trigger, and Args/Returns are cleanly separated. The Args block duplicates a fully described schema, which is the main expendable content.

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?

With no output schema, the description compensates by spelling out the returned array structure (code/severity/guidance), which an agent needs to parse results. Remaining gaps are minor: no error behavior and no pointer to how rule codes are obtained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the Args block largely restates the same enum values, defaults and override note. Baseline 3 applies since the schema already carries the parameter meaning and the description adds no new syntax or format detail.

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?

States a specific verb and resource ('Return full guidance text ... for selected Spectral rules') and contrasts it with the compact validation output path, so an agent can tell it is the deep-dive companion to validation rather than the validator itself.

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?

Gives an explicit trigger condition: use it when compact validation output is insufficient and full rule guidance is needed. It does not, however, tell the agent how to discover valid rule codes (e.g. via list_rules) or when to prefer the full ruleset variants over a custom path, so there is no explicit exclusion set.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools