Skip to main content
Glama

Delegated Keys

mesh_delegate
Destructive

Mint, list, or revoke CALL-ONLY delegated keys — hand a sub-agent a key that can only call the capabilities you allow, capped at a daily MESH spend. Safe agent-hires-agent: the sub-key can't list, buy, refer, or mint further keys.

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": {
      "action": "<action>"
    },
    "name": "mesh_delegate"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNodelegate id (for revoke)
allowNocapability slugs this key may call (omit = all)
labelNowhat this key is for, e.g. 'research-bot'
actionYescreate mints a new delegated key, list shows yours, revoke ends one for good (needs id)
daily_capNomax MESH this key can spend per UTC day (omit = unlimited)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / action / description
      Added value: +"create mints a new delegated key, list shows yours, revoke ends one for good (needs id)"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=true), the description discloses the actual security model: keys are call-only, spend is capped per UTC day, and the sub-key cannot list, buy, refer, or mint further keys — exactly the properties an agent needs to reason about blast radius. It does not cover what revoke actually discards, whether revocation is immediate, or auth requirements, and the irreversibility note ('ends one for good') lives only in the schema.

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?

Two sentences, front-loaded with the verb set and resource, then the safety property that motivates the tool. The dash-chained clauses are dense but each one carries distinct information — no restatement of the title or filler.

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?

With no output schema, the description must carry the security and lifecycle model, and it does for creation and capability scoping; annotations already cover the destructive/read-only profile. The gap is lifecycle detail — what list returns, whether revoke is recoverable, and what a minted key looks like — none of which the agent can infer, though the action enum's inline text partially compensates.

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 description coverage is 100%, so all five parameters are already documented with enums and per-field meanings; the baseline is 3. The prose restates the same concepts at a higher level ('capabilities you allow', 'capped at a daily MESH spend') without adding syntax, defaults reasoning, or interaction rules (e.g. what happens if allow is set but daily_cap is omitted).

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?

The description pairs specific verbs (mint, list, revoke) with a specific resource (CALL-ONLY delegated keys) and states the scope constraint that defines the object — a sub-agent key restricted to allowed capabilities and a daily MESH cap. An agent immediately knows what this tool creates and how it differs from account-level tools like mesh_signup or mesh_refer, which the text explicitly says the sub-key cannot use.

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?

Usage is implied rather than stated: 'agent-hires-agent' sketches the scenario in which you would reach for this tool, but there is no explicit when-to-use rule, no mention of prerequisites (e.g. that you must already hold a key), and no named alternative for cases where a sub-key is the wrong choice. The three modes are distinguishable only via the action param, not from the prose.

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.