Skip to main content
Glama

Import API endpoints

import_api_endpoints

Import custom API endpoints in bulk from a Postman collection (v2.x), an OpenAPI 3 / Swagger 2 spec, or endpoint JSON. Preview with dry_run=true (default), then import with dry_run=false; agent_id also attaches each one. Secret auth values in the source are stripped (listed in needs_auth) — complete auth in the portal or via set_endpoint_auth. Existing endpoint names are skipped, so re-importing is safe.

Input Schema

NameRequiredDescriptionDefault
selectNoEndpoint names to import; omit for every request except a login request.
sourceYesThe Postman collection / OpenAPI spec / endpoint JSON, as a JSON string.
dry_runNoPreview only (default true).
agent_idNoOptional: attach each created endpoint to this agent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: secret auth values are stripped and surfaced in needs_auth, existing endpoint names are skipped making re-imports idempotent, and dry_run defaults to preview. These are exactly the behavioral facts an agent needs before committing a bulk write.

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?

Front-loads the purpose and source formats, then the workflow, then the safety/idempotency guarantees. Three dense sentences with no filler and no repetition of schema text.

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?

For a 4-parameter bulk import with no output schema, the description covers the workflow, the return-relevant needs_auth list, idempotency, and the follow-up tool. Nothing essential to invoking it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the baseline is 3, and the description adds real meaning for dry_run (preview vs. commit, default true) and agent_id (attaches each created endpoint). It is silent on select, but the schema already documents that parameter adequately.

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 (Import) plus resource (custom API endpoints) and scope (in bulk), and enumerates the three accepted source formats. An agent can immediately distinguish this from create_api_endpoint (single) and attach_api_endpoint (existing endpoint to agent).

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?

Gives an explicit two-step workflow (preview with dry_run=true, then import with dry_run=false) and routes auth completion to set_endpoint_auth or the portal. It does not, however, explicitly say when to prefer this over create_api_endpoint for individual endpoints, so the sibling routing is only partial.

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