Skip to main content
Glama

Create MCP deployment

create_mcp_deployment

Publish one or more agents as an MCP server so an organization's own assistant (the MCP client) can call them as tools. Each agent becomes a tool ask_<tool_name>. identity_modes says how the client names the person asking: 'oauth' (the person signs in with their platform account), 'signed_token' (a deployment key + a token the client signs per person), 'trusted_header' (a key + X-Acting-User-Email, only from ip_allowlist), 'service' (a key, no person). approval_mode says who confirms an action the agent's approval settings hold: 'client_confirm' (the person, in their assistant), 'approvers' (the policy's approvers), 'client_then_approvers'. Create a key with create_mcp_deployment_key for the key modes.

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

Input Schema

NameRequiredDescriptionDefault
nameYesName, unique within the organization.
slugNoOptional address name (/mcp/<slug>); generated when omitted.
agentsNoAgents to publish: objects {agent_id, tool_name?, description?} (or plain agent ids).
descriptionNoWhat this server is for; also shown to the client.
ip_allowlistNoClient IP ranges (CIDR) allowed to call; required for trusted_header.
signed_tokenNosigned_token settings: {method: hmac|jwks, jwks_url, issuer, audience, email_claim, name_claim}.
approval_modeNoWho confirms held actions.
identity_modesNoAny of oauth, signed_token, trusted_header, service. Default [oauth].
person_domainsNoOptional e-mail domains a person must belong to.
governance_profile_idNoOptional governance profile checking messages in and replies out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

With readOnlyHint=false and destructiveHint=false already supplied, the description still adds real behavior: what gets published, the naming of generated tools, that trusted_header is gated by ip_allowlist, and who confirms held actions per approval_mode. It omits later-lifecycle behavior (whether the deployment can be edited via update_mcp_deployment, slug-collision handling, or what the caller receives on success).

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?

The tool's purpose and tool-naming behavior are front-loaded, then the mode semantics follow in compact parenthetical form. The enumeration of identity_mode and approval_mode values is dense but each clause carries operational information; a small amount of length comes from listing mutually exclusive options inline rather than in the schema.

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?

For a ten-parameter, nested-object creation tool with no output schema, the description covers purpose, prerequisites (keys), security gating (ip_allowlist), and the two behavioral enums. Gaps are the return value (whether the caller gets a deployment id or the /mcp/<slug> endpoint) and mutation semantics such as idempotency or uniqueness failures on name/slug.

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, but the description goes beyond the schema by defining each identity_modes value ('oauth', 'signed_token', 'trusted_header', 'service') and each approval_mode value, which the schema only lists as enum strings. It clarifies that key modes depend on create_mcp_deployment_key and that trusted_header is constrained by ip_allowlist, adding genuine meaning for two of the ten parameters.

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 opening sentence names a specific verb (publish), the resource (agents as an MCP server), and the mechanism (each agent surfaces as a tool named ask_<tool_name>), which lets an agent distinguish this from create_deployment or create_mcp_server. It also points at create_mcp_deployment_key for key-based modes, giving an unambiguous boundary with a sibling.

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?

It gives concrete selection rules — trusted_header requires ip_allowlist, key-based modes require a key minted via create_mcp_deployment_key — plus a full breakdown of when each identity_mode and approval_mode applies. It stops short of saying when to use this versus update_mcp_deployment (e.g. for an existing deployment) or how it relates to create_mcp_server, so there is no explicit exclusion.

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