Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Create access token

mint_token

Mint an API token for turnzero or a CI job.

A person's signed-in connection is required. A connection presenting an account-wide minted token is refused session_credential_required.

The first command runs on the target computer: turnzero authorize, turnzero token request or turnzero tzmesh register. It prints code_challenge. completion is passed only where that command prints it. awaiting_command returns a completing line, without a token value.

That line runs once, unchanged, on the same computer before expires_at. A token claim line carries a one-time credential. Only the owner runs it, outside AI tools. Authorization and tzMesh registration run in the signed-in AI tool's shell. After authorization, you tell the owner the token's label, expiry and that revoke_token ends it. Token values stay out of the 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": {
      "scope_kind": "<scope_kind>",
      "code_challenge": "<code_challenge>"
    },
    "name": "mint_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoShown by `list_tokens`. Required and printable for `issues`, `test_end_users`, `tzmesh` or `tztrack`. Unique among unrevoked `issues` labels in the space, or `test_end_users` labels in scope. `tzmesh` and `tztrack` labels may repeat.
levelNo`issues`: `report`: file, follow, check, read, watch, unwatch; `contribute` adds update, comment, relate, next, give back, wait, `cache` archive, task close/reopen. `owner` admits all; `read_space`, other close/reopen need it. `tzmesh`/`tztrack`: no levels; minted `admin` bounds no product call.
spaceNoWith `issues`, an account-held issue space from `list_issue_spaces`.
grantsNoExtra grants. `destructive` and `super_admin` require the session to hold them, the latter granted by an operator. `issues`, `tzmesh`, `tztrack` and `test_end_users` need only the session. Application scope permits only `destructive` and `test_end_users`, else `grant_scope_refused`.
completionNoOnly when printed by `authorize` or, for grants `["tzmesh"]` alone, `tzmesh register`. Other mints refuse it. With `authorized_computer`, the line is `turnzero authorize --mint <id>`, without a code, whether or not `completion` is supplied.
scope_kindYesAccount-wide or bounded to one application.
applicationNoRequired only for application scope: the application id the token is bounded to. Refused with account scope.
code_challengeYesFrom the first command on the target computer. `--origin` must match the connection, or `--tzmesh-estate` for tzMesh, defaulting from `--origin`. Same options reuse a pending challenge. After expiry, the first command runs again.
expires_in_daysNoWith `tzmesh`, `tztrack` or `test_end_users`, 1–180 days, default 180. Without those grants or `authorized_computer`, omission means no expiry.
authorized_computerNoTrue authorizes that computer: account scope, at most 30 days, default 30. The signed-in tool then tells the owner the token's label, expiry and that `revoke_token` ends it.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses security-critical behavior: account-wide minted tokens are refused with `session_credential_required`, the completing line is one-time and time-bound by `expires_at`, token values must stay out of the conversation, and token-claim lines must be run by the owner outside AI tools. It also explains `authorized_computer` behavior and grant-scope refusal. This is materially more than the supplied annotations provide.

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?

The description is front-loaded with a clear purpose sentence, but the middle is dense and jargon-heavy, with references such as `awaiting_command` that are not defined in the schema. The workflow details are relevant, but the structure reads as a stream of procedural constraints rather than a crisply organized usage note. It is adequately sized for the complexity, but not concise or easy to scan.

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 10-parameter, security-sensitive tool with no output schema and only basic annotations, the description covers the important workflow, refusal, and credential-handling constraints. It is notably complete on the process around minting, but it does not clearly describe what a successful mint call returns, and some referenced states remain implicit. The definition is strong overall, with a few remaining gaps for the agent to infer.

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 description coverage is 100%, so the baseline would be 3, but the description adds cross-parameter meaning about `code_challenge`, `completion`, and `authorized_computer` that the schema alone does not fully convey. For example, it explains where `code_challenge` comes from, that `completion` is passed only where the target command prints it, and that `authorized_computer` changes the printed line. It still leaves most field-level meaning to the already-detailed schema, so it is not a 5.

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 first sentence gives a specific verb and resource: mint an API token for `turnzero` or a CI job. It implies a distinct role from token-management siblings such as `revoke_token` and `list_tokens`, though it does not explicitly contrast itself with them. The purpose is clear, but the product-specific jargon keeps it from being a perfect sibling-distinguishing statement.

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 supplies substantial workflow guidance: a person's signed-in connection is required, the first command runs on the target computer, `completion` is only passed where that command prints it, and token-claim lines must be run by the owner outside AI tools. It also states refusal conditions and the post-authorization owner notification. What it lacks is an explicit comparison to alternative token tools, so it is strong context rather than a full when/when-not/alternatives guide.

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