Skip to main content
Glama

import_openapi

Parses OpenAPI 3.x or Swagger 2.x specs (JSON/YAML) to create an Insomnia workspace with endpoints as requests grouped by tag, plus an optional base environment.

Instructions

Parse an OpenAPI 3.x or Swagger 2.x spec (JSON or YAML string) and create a workspace with all endpoints as Insomnia requests, grouped by tag into folders.

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": {
      "spec": "<spec>"
    },
    "name": "import_openapi"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesFull OpenAPI/Swagger spec as a JSON or YAML string
create_environmentNoAutomatically create a base environment with the server base_url

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the meaningful side effects: a new workspace is created and endpoints become requests inside tag-named folders. It does not cover what happens on a malformed spec, whether an existing workspace is reused or duplicated, or naming of the created workspace — gaps that matter for a mutating import.

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?

One sentence, front-loaded with the verb and format, then the output shape. Nothing is redundant or padded.

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 two-parameter import with no output schema and no annotations, the description explains the resulting structure but not the return value (e.g., created workspace identifier), which an agent would need to chain follow-up calls. The core behavior is covered; the post-call contract is not.

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 both parameters are already documented in the schema. The description's '(JSON or YAML string)' merely echoes the spec parameter and says nothing about create_environment or the default behavior, so baseline 3 applies.

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 chain (parse → create workspace → convert endpoints to requests grouped by tag) and names the accepted input formats (OpenAPI 3.x / Swagger 2.x, JSON or YAML). This format specificity is what separates it from siblings like import_from_curl, import_har, and import_postman without needing to name them.

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 input format rather than stated: an agent can infer it applies when holding an OpenAPI/Swagger document, but the description never says so explicitly or contrasts itself with the other import_* tools. No exclusions, prerequisites, or failure conditions are given.

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