Skip to main content
Glama

Mint a tool key (proxy only)

mint_harness_key

Mint the API key for ONE TOOL in this workspace — the middle tier between the folder's workspace key and a session key. The watchdog proxy calls this once it knows which harness is on the other end (the initialize handshake names it), caches the result, and mints its session key from THAT rather than from the workspace key. This is what makes one tool independently retirable: every tool started in a folder shares one .mcp.json, so without it, retiring Grok also stops Claude Code and Codex. Workspace keys only. Same access as your key — no privilege change. The raw key is returned ONCE, and a harness retired in this workspace is refused.

Input Schema

NameRequiredDescriptionDefault
harnessYesThe resolved runtime id of the tool on the other end, e.g. `claude-code`, `codex`, `grok`. Lowercase letters, digits and dashes. A name we cannot place is REFUSED rather than cleaned — it would mint a second credential for a tool that already has one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Discloses behavior beyond the annotations: the raw key is returned exactly ONCE, the minted credential has the same access as the caller's key with no privilege change, and a harness retired in this workspace is refused. This is consistent with idempotentHint=false and destructiveHint=false without restating them.

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-loads the core action and hierarchy, then layers rationale and constraints. Slightly long and repeats the 'no privilege change' idea twice, but nearly every sentence carries operational weight.

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?

Covers what annotations and schema cannot: credential lifetime (returned once), refusal cases (retired harness, unplaceable name), authorization scope (workspace keys only), and the caller's caching pattern. No output schema exists, and the return-value behavior is explained anyway.

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 100%, and the schema already documents the harness id format and the refusal-on-unplaceable-name rule in detail. The description's only addition is provenance — the id comes from the initialize handshake — so the baseline of 3 is appropriate.

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?

States a specific verb and resource ('Mint the API key for ONE TOOL in this workspace') and precisely places it in a three-tier key hierarchy, distinguishing it from mint_session_key and the folder's workspace key. An agent can tell immediately what it creates and at which level.

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?

Names the caller and the moment of use explicitly: 'The watchdog proxy calls this once it knows which harness is on the other end (the initialize handshake names it)'. It also gives the constraint 'Workspace keys only' and explains the alternative design cost (shared .mcp.json blocking independent retirement) that justifies using this instead.

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