Skip to main content
Glama

create_mcp_integration

Registers an MCP integration by connecting an external server URL to Portkey, returning the new integration ID and slug. Supports HTTP and SSE transports with authentication options.

Instructions

Create an MCP integration from an external server URL. Registers the Portkey-side connection and returns the new id and slug; if auth_type is headers, custom_headers are required, and you usually follow with create_mcp_server and capability updates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDisplay name for the MCP integration
urlYesURL endpoint of the MCP server to integrate
auth_typeYesAuthentication type: 'none', 'headers' (custom headers), or 'oauth_auto' (OAuth)
transportYesMCP transport protocol: 'http' (streamable HTTP) or 'sse' (server-sent events)
slugNoCustom slug. Auto-generated if omitted
descriptionNoDescription of the MCP integration
custom_headersNoCustom headers for authentication (e.g. { "Authorization": "Bearer xxx" }). Sent via configurations.custom_headers
workspace_idNoWorkspace ID — required when using organization admin API keys

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesWhether the tool call succeeded and returned structured data
dataNoStructured success payload when ok is true
errorNoStructured error payload when ok is false
Behavior4/5

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

Annotations indicate the tool is not read-only, not destructive, not idempotent, and open-world. The description adds behavioral context: it is a creation operation, returns id and slug, and imposes conditional requirement for custom_headers. This goes beyond annotations but does not fully explain side effects or idempotency.

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?

The description is two sentences, front-loads the main purpose, and every sentence adds essential information without redundancy.

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

Completeness4/5

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

The tool has many parameters and an output schema. The description explains the main output (id and slug) and hints at the multi-step process (follow with create_mcp_server and capability updates). It could be improved by explicitly linking input parameters to the workflow, but given schema coverage, it is fairly complete.

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?

Input schema covers all 8 parameters with descriptions (100% coverage). The description adds cross-parameter logic (custom_headers required when auth_type is headers) and context about follow-up tools, which provides value beyond individual parameter meanings.

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?

The description clearly states the tool creates an MCP integration from an external server URL, registers the connection, and returns id and slug. It distinguishes itself from the sibling 'create_mcp_server' by indicating it is a prerequisite step.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description specifies when to use the tool (creating an MCP integration) and provides conditions (custom_headers required for auth_type headers). It also advises following with create_mcp_server and capability updates, offering clear usage guidance and alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/s-b-e-n-s-o-n/portkey-admin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server