Skip to main content
Glama

export_openapi

Generate an OpenAPI 3.0 specification from all requests in a workspace and return it as a JSON string for saving to a file.

Instructions

Generate an OpenAPI 3.0 spec from all requests in a workspace. Returns the spec as a JSON string you can save to a file.

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": {
      "workspace_id": "<workspace_id>"
    },
    "name": "export_openapi"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_urlNoOverride base URL in the spec (e.g. https://api.example.com)
workspace_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it correctly implies a read-only generation and usefully states the return is a JSON string to save to a file, which compensates for the missing output schema. It does not say what happens with an empty workspace, whether it errors, or whether any auth/permission is required for the workspace.

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?

Two sentences, front-loaded with the generated artifact and followed immediately by the return shape. Nothing is redundant or padded.

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 simple two-parameter export tool with no output schema, the description covers the core action and the return value, which is what an agent most needs. Minor gaps remain around empty-workspace behavior and the base_url parameter, but nothing blocks a correct invocation.

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 50%: base_url is documented in the schema with an example, while workspace_id has no schema description. The description's phrase "all requests in a workspace" implicitly conveys that workspace_id selects the scope, but it never mentions the base_url override, so it adds only marginal meaning beyond the schema.

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 gives a specific verb ("Generate") and a specific artifact ("OpenAPI 3.0 spec") scoped to "all requests in a workspace," so an agent knows exactly what the tool produces. It does not distinguish itself from adjacent export siblings such as export_postman or export_insomnia_bundle, which keeps it out of 5 territory.

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 implied by the word "export" and the workspace-wide scope, so an agent can infer when this is appropriate. There is no explicit when-to-use/when-not or named alternative for other export formats, leaving selection among the export family to inference.

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