Skip to main content
Glama
MCP API OAS Checker

MCP API OAS Checker

Official
by italia

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_rulesA

List available validation rules from an Italian PA Spectral ruleset.

Returns a JSON array of rule objects, each with code, description, and severity.

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.

Returns: JSON array of objects: [ { "code": "has-contact", "description": "API MUST reference a contact...", "severity": "error" } ]

Examples:

  • List core Italian PA rules: { "standard_ruleset": "spectral" }

  • List security rules: { "standard_ruleset": "spectral-security" }

  • Use a custom ruleset: { "ruleset_path": "https://example.com/my-rules.yml" }

Error Handling:

  • Returns an error if the ruleset URL is unreachable or the YAML is invalid.

get_rule_guidanceA

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 ..." } ]

validate_openapiA

Validate an OpenAPI specification (OAS3) against Italian Public Administration guidelines using Spectral.

Runs the official Italian PA linting rules on the provided OpenAPI document and returns a structured report of issues found, grouped by rule with fix guidance.

Args:

  • openapi_path (string, optional): Absolute path to a local OpenAPI file (YAML/JSON). Mutually exclusive with openapi_content.

  • openapi_content (string, optional): Raw OpenAPI content as a string. Mutually exclusive with openapi_path.

  • standard_ruleset (string, optional): Ruleset to use: 'spectral' (default, core), 'spectral-full' (all+security), 'spectral-generic' (generic API), 'spectral-security' (security).

  • ruleset_path (string, optional): URL or local path to a custom Spectral ruleset. Overrides standard_ruleset.

  • allowed_rules (string[], optional): Only check these rule codes (e.g. ['has-contact', 'use-semver']). If omitted, all rules.

  • filter_path (string, optional): Only show issues whose JSON path contains this string (e.g. 'paths./users').

  • line_start (number, optional): Only show issues on or after this line (1-indexed).

  • line_end (number, optional): Only show issues on or before this line (1-indexed).

  • max_issues (number, optional): Cap the number of issues returned. Default: 20.

Returns: A text report with two sections:

  1. "Rules violated (with fix guidance)" — each violated rule listed once with severity and description.

  2. "Locations" — compact list of line numbers and rule codes.

Example output: Found 3 issues:

Rules violated (with fix guidance):

  • has-contact [Error]: API MUST reference a contact...

  • use-semver [Error]: The API version field should follow semver.

Locations:

L2: has-contact L2: use-semver L5: has-contact

Examples:

  • Validate a local file: { "openapi_path": "/home/user/api.yaml" }

  • Validate pasted content: { "openapi_content": "openapi: 3.0.3\ninfo:..." }

  • Check only security rules: { "openapi_path": "/home/user/api.yaml", "standard_ruleset": "spectral-security" }

  • Focus on a specific path: { "openapi_path": "/home/user/api.yaml", "filter_path": "paths./users" }

Error Handling:

  • Returns error if neither openapi_path nor openapi_content is provided.

  • Returns error if Spectral binary is not found or fails to execute.

  • Returns error if the ruleset cannot be fetched or parsed.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 3 tools

Disambiguation4/5

Each tool has a distinct role: listing rules, fetching full guidance, and validating a spec. The only mild overlap is that list_rules already returns descriptions while get_rule_guidance returns longer guidance text, but the descriptions clarify when to use each.

Naming Consistency5/5

All three tools follow a consistent snake_case verb_noun pattern (list_rules, get_rule_guidance, validate_openapi). No mixing of conventions or vague verbs.

Tool Count4/5

Three tools is well-scoped for a validator and each earns its place. The two rule-inspection tools (list_rules and get_rule_guidance) could arguably be merged, making the set slightly redundant.

Completeness4/5

The core workflow — discover rules, read guidance, validate a spec — is fully covered. Minor gaps exist: validate_openapi accepts only local paths or raw content (no URL input), and there is no way to export or batch-validate multiple specs.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues