Skip to main content
Glama
Baneado98

OpenAPI Doctor

by Baneado98

audit_openapi

Check OpenAPI or Swagger specs for API security flaws such as missing authentication, plaintext servers, and object ID enumeration. Outputs SECURE, REVIEW, or INSECURE verdict.

Instructions

Audit an OpenAPI/Swagger spec (URL to openapi.json or raw JSON) for API-security smells an agent won't catch reading prose: no security scheme, plaintext http servers, unauthenticated POST/PUT/DELETE, object-id endpoints with no auth (OWASP API1 BOLA/IDOR). Returns SECURE/REVIEW/INSECURE. deep=true lists the exact offending operations + fixes (premium).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesA URL to an OpenAPI/Swagger spec, or the raw spec JSON.
deepNoWhen true, runs the PREMIUM tier. Requires an API key (set OPENAPI_DOCTOR_KEY in your MCP env); without one you'll get instructions to unlock it. The free verdict needs no key.
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the premium requirement for deep, the return verdicts, and the input formats. It does not mention idempotency or rate limits, but overall provides good transparency.

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?

The description is three sentences, front-loaded, and every sentence adds essential information. No fluff, highly efficient.

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?

For a 2-parameter tool without output schema, the description covers inputs, return values, and premium behavior. It could specify the output format, but the information provided is sufficient for an AI agent to understand the tool's operation.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by explaining the deep parameter's functionality and the API key requirement, which goes beyond the schema's description.

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?

The description uses a specific verb ('Audit') and resource ('OpenAPI/Swagger spec'), clearly stating what the tool does. It lists specific security smells (no security scheme, plaintext http, etc.), and distinguishes its purpose from generic prose reading, although no siblings are listed.

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?

The description explains when to use the deep parameter (premium tier) and notes that the free verdict requires no key. It does not explicitly state when not to use the tool, but given no sibling tools, the guidance is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Baneado98/openapi-doctor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server