Skip to main content
Glama

create_mcp_integration

Create an MCP integration by registering an external server URL with Portkey. Returns the integration ID and slug; supports authentication via headers, OAuth, or none.

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 already indicate it's a write operation (readOnlyHint=false) and not destructive. Description adds behavioral context: registers connection, returns id/slug, and conditional requirement for custom_headers. No contradiction with annotations.

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?

Two succinct sentences: first states core action, second adds conditional and follow-up. No redundancy, front-loaded with essential info.

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?

Given complexity (8 parameters, nested objects, enums), the description covers purpose, conditional requirement, and next steps. However, it omits the context that workspace_id is required when using org admin keys, which is relevant for some users. Output schema exists, so return format is covered elsewhere.

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 baseline is 3. Description adds value by explaining the conditional requirement for custom_headers when auth_type is headers, which is not in the schema's description. Also hints at output (id and slug).

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?

Clearly states it creates an MCP integration from an external URL, registers the connection, and returns id and slug. Distinguishes from sibling create_mcp_server by focusing on integration registration.

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?

Provides conditional guidance (custom_headers required for auth_type=headers) and suggests follow-up steps (create_mcp_server and capability updates). Does not explicitly state when to use this over alternatives, but context is clear.

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