Skip to main content
Glama

create_mcp_server

Register a new MCP server for an AI agent, enabling it to use the server's tools. Supports HTTP and stdio transports with multiple authentication methods.

Instructions

Registra um novo MCP server para um agente. O agente poderá usar as tools expostas pelo server.

Transports: 'http' (Streamable HTTP; era do protocolo negociada automaticamente), 'stdio' (local, apenas dev). O 'sse' legado foi descontinuado (migração MCP 2026-07-28).

Combinações auth_method + config:

  • none: config vazio {} (sem autenticação)

  • bearer: { vault_secret_id: "NOME_DO_SECRET" } — o secret contém o token Bearer

  • api_key: { vault_secret_id: "NOME_DO_SECRET", api_key_header: "X-Api-Key" } — header customizável

  • tunnel: config vazio {} — token da plataforma resolvido via env var INTERNAL_TUNNEL_TOKEN (não vault). Usar para MCP servers via Zihin Tunnel

  • oauth: { vault_secret_id: "OAUTH_CREDS", oauth_token_url: "https://..." } — OAuth2 client credentials

Campos opcionais em config: timeout (ms, default 30000), headers (object com headers extras), defaults_from_context (object com valores fixos injetados nas tools).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNome do MCP server
configNoConfiguração adicional (vault_secret_id, headers, timeout)
agent_idYesUUID do agente
endpointYesURL do endpoint ou comando stdio
transportNoTipo de transportehttp
auth_methodNoMétodo de autenticaçãonone
descriptionNoDescrição do server
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only provide generic hints (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the description carries the burden of behavior. It meaningfully adds transport negotiation details, deprecated SSE behavior, env-var token resolution, and auth/config coupling. It does not cover return values, error cases, or duplicate-name behavior, but the described side effect and constraints are clear.

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 front-loads the core purpose, then uses compact bullet lists for transports, auth/config combinations, and optional config fields. Every section earns its place; there is no filler or repeated schema content.

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 tool with 7 parameters, nested objects, enums, and no output schema, the description covers the difficult parts: transport validity, auth/config invariants, defaults, and termination of legacy SSE. Minor gaps remain around return value, validation failures, and what happens if the agent_id or endpoint is invalid, but the essential invocation guidance is present.

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

Parameters5/5

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

Schema description coverage is 100%, so the baseline is 3, but the description substantially enriches the schema: it specifies exact config object shapes per auth_method, explains vault_secret_id usage, custom api_key_header, the INTERNAL_TUNNEL_TOKEN env var, timeout defaults, headers, and defaults_from_context. This is precisely the information an agent needs beyond the raw JSON 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?

A description begins with a clear verb and resource: 'Registra um novo MCP server para um agente' and states the consequence: the agent will be able to use the server's exposed tools. This distinguishes it from sibling MCP tools like list_mcp_servers, update_mcp_server, and delete_mcp_server by naming the creation action.

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?

The description gives strong context on when to use each transport and auth option: stdio is 'local, apenas dev', SSE is explicitly deprecated, and tunnel is recommended specifically for MCP servers via Zihin Tunnel. It lacks an explicit pointer to siblings like update_mcp_server for modifying an existing server, so it stops short of full alternative routing.

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

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/zihin-ai/zihin-mcp'

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