Skip to main content
Glama

Crea una clave de API

create_api_key

Crea una clave de API. Para un script, una integración u otro agente. scope: read (lectura), write (lectura y gestión de webs, objetivos, embudos y anotaciones) o full (además, ver claves). env: live o test (simulación: solo lee la web de demostración y las escrituras no se guardan; el plan de prueba solo admite test). siteIds limita la clave a esas webs. La clave completa solo aparece en esta respuesta. Solo conexiones OAuth de propietarios y administradores (keys:write).

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_api_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNo`live`: datos reales; `test`: simulación sobre la web de demostración, sin guardar escrituras.live
nameYesNombre, hasta 60 caracteres.
scopeNo`read`: lectura; `write`: además gestiona webs, objetivos, embudos y anotaciones; `full`: además ve las claves.read
siteIdsNoWebs a las que da acceso; vacío o ausente = todas.
expiresAtNoCaducidad opcional (ISO 8601, como mucho 5 años).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), it discloses two critical behaviors: the full key is shown only in this response (must be captured immediately), and in `test` env writes are not persisted and only the demo site is read. It does not discuss rate limits, key limits per account, or what happens on name collision, so a small gap remains.

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?

It is front-loaded and dense: purpose, use cases, scope, env, siteIds, one-time key exposure, and permission gate in a single compact paragraph. Some sentences duplicate the enum descriptions already in the schema, which is minor redundancy rather than wasted space.

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 5-parameter mutation tool with no output schema, it covers the essential unknowns: one-time reveal of the secret, test-mode simulation semantics, scoping, and the authorization requirement. Details like whether names must be unique or how many keys an account may hold are unaddressed but not blocking.

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; however the description adds a constraint not present in the schema — the trial plan only supports `env: test` — which directly affects parameter choice. The scope/siteIds explanation largely restates the schema, limiting the added value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Crea una clave de API') and immediately names the intended scenarios (script, integration, another agent). It does not explicitly contrast with siblings such as list_api_keys or revoke_api_key, but the create action is unambiguous against those names.

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 states the conditions under which the tool applies (for scripts, integrations, or other agents) and a hard prerequisite: only owner/admin OAuth connections with keys:write. It does not spell out when NOT to create a key (e.g. reuse existing keys via list_api_keys) or point to an alternative, so it stops short of full routing guidance.

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