Skip to main content
Glama

quiry

Create API token

create_api_token

Creates an API token. permission_keys must be a subset of the keys this token holds, and api_token.manage and workspace.delete cannot be granted through MCP. The token value is returned only in this response.

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>",
      "permission_keys": "<permission_keys>"
    },
    "name": "create_api_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
permission_keysYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does well: it discloses the privilege-escalation guardrail, two permissions that are categorically ungrantable via MCP, and the critical irreversibility fact that the token value is shown only in this response. It omits whether the call requires an existing admin scope and whether tokens expire or are single-use beyond the value disclosure.

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?

Three short sentences, no filler, and the highest-stakes fact for an agent (one-time token disclosure) is placed where it will not be missed. Every clause adds information the schema does not carry.

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 two-parameter mutation tool with no annotations and no output schema, the description covers the dangerous parts: permission boundaries and the fact that the secret is unrecoverable after this call. What remains thin is the calling identity/authorization requirement and the exact response shape beyond the token value.

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 0%, so the description must compensate. It does so for permission_keys by defining the subset rule and two excluded keys, which the bare array-of-strings schema conveys nothing about. The name parameter's meaning is left entirely to the schema, which only supplies maxLength 60, so the compensation is strong but partial.

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 leads with a specific verb and resource ("Creates an API token"), which cleanly separates it from revoke_api_token and list_api_tokens. It stops short of naming a sibling such as create_oauth_client to disambiguate the two creation paths, so it is clear but not fully differentiated.

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

Usage Guidelines3/5

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

Two concrete preconditions are stated: permission_keys must be a subset of the caller's own keys, and api_token.manage / workspace.delete cannot be granted through MCP. That is useful constraint guidance, but there is no explicit statement of when to choose this tool over create_oauth_client or list_api_tokens.

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