Skip to main content
Glama

Create MCP Server From an API Spec

create_server

Turn an OpenAPI spec into a DRAFT MCP server, and report the tools it found.

Give it a public URL to an OpenAPI 3 document. Bridge fetches it, generates one typed tool per operation, and stores them UNEXPOSED. Nothing becomes callable until a human reviews the tools and publishes in the console — this tool cannot publish, and that is deliberate: exposing a tool makes somebody's API reachable, which is not a decision to automate.

Returns the server id, the proposed tools with their HTTP methods, and a console link to finish. Use when someone wants to give an agent access to an API they have a spec for.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoA name for the server. Defaults to the title in the spec.
source_urlYesPublic HTTPS URL of an OpenAPI 3 document, e.g. "https://api.example.com/openapi.json". Must be reachable without credentials.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare non-readonly, openWorld, non-idempotent, non-destructive, but the description adds material context the annotations cannot: the spec is fetched over the network, tools are stored UNEXPOSED, and nothing is callable until a human publishes. It stops short of warning that repeat calls create additional draft servers.

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, then a short rationale paragraph, then the return summary and the when-to-use line. The 'that is deliberate' sentence is slightly editorial but carries real behavioral intent, so the length is defensible.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description states exactly what comes back (server id, proposed tools with HTTP methods, console link), which is what an agent needs to proceed. Combined with the draft-state caveat, nothing essential is missing.

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 both parameters (name, source_url) are already documented with format and constraints (public HTTPS, no credentials). The description restates the public-URL requirement without adding syntax beyond the schema.

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 (Turn ... into) and resource (a DRAFT MCP server from an OpenAPI spec) and explicitly scopes the outcome as a non-published draft. An agent can distinguish this from get_server/list_my_servers/reintrospect_server purely from the description.

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?

Ends with explicit when-to-use guidance ('Use when someone wants to give an agent access to an API they have a spec for') and clarifies a key exclusion — this tool cannot publish. It does not name a sibling alternative, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources