Skip to main content
Glama
Apidog MCP Server

Apidog MCP Server

by ivanherula

export_openapi

Export a project’s API specification as OpenAPI JSON or YAML, choosing the OpenAPI version and exporting the full spec or a filtered subset by endpoints, folders, or tags.

Instructions

Export the project API spec in OpenAPI format. Returns the full spec or a filtered subset.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export_openapi"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeTypeNoScope of export (default: ALL)
oasVersionNoOpenAPI version (default: 3.1)
exportFormatNoOutput format (default: JSON)
selectedTagsNoTags to export (when scopeType is SELECTED_TAGS)
selectedFolderIdsNoFolder IDs to export (when scopeType is SELECTED_FOLDERS)
selectedEndpointIdsNoEndpoint IDs to export (when scopeType is SELECTED_ENDPOINTS)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the shape of the result (full spec vs. filtered subset), but says nothing about permissions, spec-size limits, error behavior for empty projects, or that the operation is non-mutating — all inferred rather than stated.

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 short sentences with zero filler, and the core action is front-loaded ahead of the output caveat. Nothing should be cut.

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?

For a six-parameter export tool with no annotations and no output schema, the definition covers the essentials but not the edge cases: conflicting selections (e.g., scopeType=SELECTED_TAGS without selectedTags), whether unspecified filters are ignored, or the size/format of the returned payload.

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%, so the input schema already documents all six parameters including enum defaults. The description's 'filtered subset' phrase weakly corroborates the scopeType mechanism but adds no syntax, defaults, or selection rules 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?

States a specific verb and resource: 'Export the project API spec in OpenAPI format', which is unambiguous and distinguishes it from the sibling import_openapi as the outbound direction. The second sentence clarifies output variability, though no sibling is named explicitly.

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: 'Returns the full spec or a filtered subset' hints that filtering is optional, but there is no statement of when to prefer this tool over alternatives, no prerequisites, and no note that filters are driven by scopeType.

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