Skip to main content
Glama
Apidog MCP Server

Apidog MCP Server

by ivanherula

import_openapi

Import a full OpenAPI or Swagger spec from a JSON or YAML string to create or update API endpoints and schemas in bulk.

Instructions

Import a full OpenAPI/Swagger spec (JSON or YAML string) into the project. Use this to create or update endpoints and schemas in bulk. To import from a URL use import_endpoints_from_url instead.

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

Input Schema

NameRequiredDescriptionDefault
inputYesOpenAPI spec as a raw JSON or YAML string (Swagger 2.0, OpenAPI 3.0, or 3.1)
targetSchemaFolderIdNoFolder ID where imported schemas will be placed (root if omitted)
targetEndpointFolderIdNoFolder ID where imported endpoints will be placed (root if omitted)
schemaOverwriteBehaviorNoHow to handle existing schemas (default: OVERWRITE_EXISTING)
deleteUnmatchedResourcesNoDelete endpoints/schemas not present in the imported spec (default: false)
endpointOverwriteBehaviorNoHow to handle existing endpoints (default: OVERWRITE_EXISTING)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.9/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 burden. It does disclose that the operation creates or updates resources in bulk, but it omits that the default behavior overwrites existing endpoints/schemas and that unmatched resources can be deleted — the destructive profile of this tool is only discoverable from the schema parameter descriptions.

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?

Three short sentences, front-loaded with the core action, then the use case, then the alternative. No redundant or filler wording.

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?

With six parameters and destructive defaults (OVERWRITE_EXISTING, optional deletion of unmatched resources), the definition would ideally warn about the default mutation risk and required permissions. The schema covers field-level detail and there is no output schema, so the gap is contextual rather than structural, but it is meaningful for a bulk-write tool.

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 every parameter, including the overwrite-behavior enum and deleteUnmatchedResources, is already documented. The description adds no meaning beyond restating that the input may be JSON or YAML, which the schema already says; 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 and resource ('Import a full OpenAPI/Swagger spec') plus the accepted formats (JSON or YAML string) and the scope (into the project). It also names the sibling it is not (import_endpoints_from_url), so an agent can distinguish it without opening either schema.

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?

Explicitly gives the primary use case ('create or update endpoints and schemas in bulk') and routes URL-based imports to import_endpoints_from_url. It does not address when to prefer single-item siblings like import_endpoint or import_schema, but the bulk-vs-URL split is clearly stated.

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