Skip to main content
Glama

RungLab DevTools MCP

audit_openapi_spec

Read-onlyIdempotent

Audit JSON OpenAPI 2.0/3.0/3.1 specs for OWASP API security hygiene and MCP/LLM token footprint.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "spec": "<spec>"
    },
    "name": "audit_openapi_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesRaw JSON OpenAPI 2.0, 3.0, or 3.1 document.
maxIssuesNoMax prioritized findings returned (1-50, default 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered by structured data. The description contributes genuine behavioral context beyond that: it constrains input to raw JSON (versions 2.0/3.0/3.1), implying YAML or other formats are unsupported, and it names the two audit axes performed. It does not describe result shape, severity model, or behavior on malformed or oversized input, so with no output schema and a 200k character cap in the schema, the disclosure is partial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the resource and the two audit dimensions stated immediately; there is no boilerplate, hedging, or redundancy. Every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool performs a multi-dimensional audit and returns prioritized findings, yet has no output schema, so the description should have said something about result structure and severity. It also omits error behavior and the fact that only JSON is accepted is left implicit rather than stated as a constraint. Adequate to call the tool correctly, but incomplete relative to its analytical complexity.

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%, with both the spec and maxIssues parameters fully documented including the 1-50 bounds and the default of 20. The description adds essentially nothing about either parameter beyond restating that the spec must be JSON OpenAPI, so the schema is doing the heavy lifting and the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (audit) plus a specific resource (JSON OpenAPI 2.0/3.0/3.1 specs) and names two concrete audit dimensions: OWASP API security hygiene and MCP/LLM token footprint. That is far more specific than a restated title, and the resource is distinct from siblings such as check_security_headers or profile_mcp_tools. It stops short of explicitly contrasting itself with any sibling, which keeps it at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent infers it should call this when it has an OpenAPI document and wants a security/token-size audit. There is no explicit when-to-use statement, no when-not-to-use condition, and no pointer to an alternative when the input is a YAML spec or a non-OpenAPI artifact. The stated purpose does make the intended context reasonably obvious, so a 3 rather than 2.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources