Skip to main content
Glama
Rapport MCP Server

Rapport MCP Server

by MicahBly

export_openapi

Exports API endpoints from a canvas as an OpenAPI 3.0/3.1 specification, scanning API-related elements to generate paths, methods, schemas, and security requirements for documentation.

Instructions

Export API endpoints from your canvas as an OpenAPI specification. Scans the canvas for API-related semantic elements (API endpoints, gateways, etc.) and generates a complete OpenAPI 3.0/3.1 specification with paths, methods, schemas, and security requirements. Perfect for generating API documentation from architecture diagrams.

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
formatNoOutput format (default: json)json
versionNoOpenAPI version (default: 3.0)3.0
include_examplesNoInclude example requests/responses if defined (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations to lean on, the description must carry the full behavioral burden. It describes the generation process (paths, methods, schemas, security requirements) but never states whether the tool is read-only, how the resulting spec is delivered (inline string, file, or artifact), what permissions are needed, or what happens when the canvas contains no API elements.

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

Conciseness4/5

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

Front-loaded with the core action in the first sentence, followed by a dense mechanism sentence. The closing sentence is mildly promotional and partly redundant with the opening, but overall the text is tight and well ordered.

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?

A simple three-parameter tool with fully documented inputs, but with no annotations and no output schema the description should still say how the spec is returned or persisted. That delivery detail is the one meaningful gap an agent would want before calling.

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% and each parameter already documents its default and enum values, so the baseline is 3. The description adds no parameter-level detail beyond the schema, not even a hint that output format or OpenAPI version can be controlled.

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?

States a specific verb and resource (export API endpoints as an OpenAPI specification) and immediately explains the mechanism: scanning the canvas for API-related semantic elements. This clearly distinguishes it from siblings like get_svg and query_elements, which retrieve raw canvas content rather than generating a spec.

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?

The trailing sentence 'Perfect for generating API documentation from architecture diagrams' implies the use case, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative. An agent must infer that this is the right tool only when OpenAPI output is wanted rather than SVG or element queries.

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