Skip to main content
Glama

veto_openapi_gen

Reads Express, FastAPI, Hono, or Fastify route files and creates an OpenAPI 3.1 specification YAML. Returns the spec as a string and can optionally write it to openapi.yaml.

Instructions

Reads Express/FastAPI/Hono/Fastify route files and generates an OpenAPI 3.1 spec YAML. Returns the spec as a string and optionally writes it to openapi.yaml.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNoSingle route file to parse (optional).
frameworkNoFramework hint: 'express','fastapi','hono','fastify', or 'auto' (default).
write_fileNoWrite openapi.yaml to project root (optional).
project_dirNoScan all route files in project (optional).
agent_responseNoPhase 2 response from the host AI (JSON). Pass this back when prompted by the server to complete the agentic loop.
Behavior4/5

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

The description adds context beyond annotations by noting that the spec can optionally be written to a file (openapi.yaml), which is a mutation. Annotations declare readOnlyHint=false and destructiveHint=false, and the description does not contradict these; the write is optional and not necessarily destructive. The description could be more explicit about overwriting behavior.

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 two sentences, front-loading the core action and then stating the output behavior. Every sentence adds value without redundancy.

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 tool with 5 parameters, partial schema coverage, and no output schema, the description is fairly complete. It covers the core functionality and optional write, but could better explain the two scanning modes (single file vs project) implied by file_path and project_dir parameters.

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 coverage is 100%, so the input schema already describes all 5 parameters. The description does not add significant meaning beyond the schema, other than implying the write_file parameter's effect. The baseline of 3 is appropriate.

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 clearly states the action (reads and generates), the resource (Express/FastAPI/Hono/Fastify route files), and the output (OpenAPI 3.1 spec YAML). It distinguishes this tool from siblings like veto_doc_gen by focusing specifically on OpenAPI spec generation from route files.

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 implies the tool is for generating OpenAPI specs from route files, providing clear context. However, it does not explicitly mention alternatives or when not to use it, such as when a different documentation tool is more appropriate.

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/jigyasudham/veto'

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