Skip to main content
Glama

Create a token

create_token

Create an API token for an agent that runs on its own, limited to apps, one role in each: the answer gives the address where it works for each app. Only when the person asks for it in this conversation.

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>",
      "apps": "<apps>"
    },
    "name": "create_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
appsYes
daysNo7, 30, 90 or 365 days. Leave it out for 90.
nameYesSuch as "Till import", at most 60 characters: the history keeps it with each change.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, closed-world call, so the description needn't restate that. It adds real behaviour the annotations cannot: the token is for a self-running agent, is scoped to one role per app, and that the response includes the address where it works for each app. It does not say whether a secret is revealed once or is retrievable later, which is a notable omission for a credential tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is only two sentences and leads with the verb, but the middle clause 'limited to apps, one role in each: the answer gives the address where it works for each app' is compressed to the point of being awkward to parse. The colon construction and vague 'the answer' cost clarity without saving much length.

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

Completeness3/5

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

For a 3-parameter creation tool with annotations but no output schema, the definition covers purpose, scope, and the create-only-on-request gate. It leaves out token lifetime/expiry implications, whether the token value is shown once, and how this differs from the sibling issue_token — gaps an agent would likely hit before calling it.

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

Parameters3/5

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

Schema coverage is 67% and documents 'name', 'days', and the nested 'app'/'role' fields well. The description adds the semantic rule that each app gets exactly one role ('one role in each') and links the apps parameter to the returned working address, but says nothing about 'days' or the 60-character name constraint beyond what the schema provides.

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 states a specific verb and resource ('Create an API token') plus its scope: for an autonomous agent, limited to apps with one role per app. That is far more informative than the title, though it never distinguishes this from the sibling 'issue_token', so an agent cannot tell the two apart from the description alone.

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?

'Only when the person asks for it in this conversation' is an explicit when-not condition that rules out proactive token creation, which is valuable for a credential-issuing tool. It stops short of naming an alternative (e.g. issue_token vs create_token) or explaining what to do when a token already exists.

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