Skip to main content
Glama

Create API Token

create_api_token

Create a new API token for the Bridge app. Arguments: name (required — how the token is identified and revoked later, so make it descriptive and unique), privileges (array of privilege KEYS; defaults to none, and a token with no privileges can do very little — grant only what the consumer needs), expireAt (ISO 8601 date-time; omit for no expiry). The plaintext token is returned ONCE in the response and cannot be retrieved again — hand it to the user and never write it into source code or a committed file. Use revoke_api_token to destroy one. Before writing app code that consumes this, call get_integration_guide with topic=team and the framework the app uses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNoId of the Bridge app to act on for this call (see list_apps). Omit to use the current app.
nameYesUnique, descriptive name, e.g. "ci-deploy". revoke_api_token uses it later.
expireAtNoISO 8601 expiry, e.g. "2027-01-31T00:00:00.000Z". Omit for a non-expiring token.
privilegesNoPrivilege KEYS to grant. Grant destructive privileges only when explicitly asked.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (non-read-only, non-idempotent, non-destructive, closed-world); the description goes well beyond that by disclosing the one-time plaintext return, the impossibility of re-retrieval, the handling warning (never commit the token), and that privileges default to none. These are the operationally decisive traits for a credential-issuing tool.

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?

Front-loaded with purpose and tightly packed with the security warning, sibling routing, and prerequisite — no filler sentences. The single long paragraph with nested parentheticals is dense, though still readable and every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by describing the return value (plaintext token, shown once) and the follow-up revoke path. Combined with 100% schema coverage, an agent has everything needed to call this correctly and safely.

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 adds real meaning: name is the identifier used later for revocation, privileges default to none and a privilege-less token "can do very little," and expireAt omitted means no expiry. It doesn't restate the ISO 8601 example already in the schema, which keeps it additive rather than redundant.

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?

Opens with a specific verb+resource ("Create a new API token for the Bridge app") and its scope is clearly distinct from the sibling list_api_tokens and revoke_api_token, which it names. An agent can select it without opening the schema.

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

Usage Guidelines5/5

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

Explicitly routes to alternatives and prerequisites: "Use revoke_api_token to destroy one" and "Before writing app code that consumes this, call get_integration_guide with topic=team and the framework the app uses." It also gives a granting policy ("grant only what the consumer needs"), so when-to-use is fully covered.

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.