Skip to main content
Glama

get_approval_channel_keys

Read-only

Get the encryption keypair for an approval channel. With hitl:read it returns the public key, encrypted private key, KDF salt, and key ID (kid). A key holding confirmations:create without hitl:read receives only public_key and kid — what a confirmation message is sealed to, never the private-key material.

ACCESS: needs a Proof account. Authenticate this client (Claude Code: /mcp → Authenticate), then call this tool again. start_login does NOT open this tool.

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": {
      "hitl_id": "<hitl_id>"
    },
    "name": "get_approval_channel_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
hitl_idYesApproval channel ID

Output Schema

NameRequiredDescriptionDefault
kidYesThe key id: lowercase hex SHA-256 of the public key's SPKI DER
dek_ivNo
dek_tagNo
kdf_saltNoThe salt the wrapping key is derived with. Absent for a key holding `confirmations:create` without `hitl:read`.
public_keyYesThe RSA public key (SPKI PEM) messages are sealed to. Null means the stored key material could not be read: a degraded state to report, not "no key yet" (a config with no keypair answers 404 `no_keypair`).
wrapped_dekNoThe per-config data key wrapped under the master key; null for a keypair stored before it existed. Absent for a requester key, as are the five fields below.
backup_dek_ivNo
backup_dek_tagNo
backup_wrapped_dekNoThe same data key wrapped under the recovery key; null until recovery is set up
encrypted_private_keyNoThe private key as stored, wrapped client-side. Absent for a key holding `confirmations:create` without `hitl:read`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description goes well beyond that by disclosing the permission-gated response contract — with `hitl:read` you receive the public key, encrypted private key, KDF salt and kid, while `confirmations:create` alone yields only `public_key` and `kid`, never private-key material. That is exactly the kind of sensitive-data disclosure an agent needs before calling.

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?

The first sentence front-loads purpose, the second explains the conditional return payload, and the access block is separated into its own paragraph. The parenthetical client-specific instruction ('Claude Code: /mcp → Authenticate') is slightly noisy but operationally useful; nothing else is wasted.

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?

Although an output schema exists and need not be restated, the description still explains why the response shape differs by permission, which the schema alone cannot convey. Combined with the authentication prerequisite, an agent has everything needed to call this correctly or to recognize it will fail without auth.

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?

There is a single parameter with 100% schema description coverage ('Approval channel ID'), so the schema already carries the semantic weight. The description adds no further detail about hitl_id formatting, where to obtain it, or channel-ID conventions — baseline 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?

The description states a specific verb and resource — 'Get the encryption keypair for an approval channel' — and immediately clarifies the scope by explaining that the returned payload varies with the caller's permissions. An agent can distinguish this from mutating siblings like upload_approval_channel_keys or delete_approval_channel_keys on name and 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?

It gives an explicit prerequisite chain (Proof account, authenticate this client, retry) and a firm exclusion: 'start_login does NOT open this tool.' What it lacks is routing guidance between this and the similarly named get_hitl_keys / get_approval_channel, which is left to inference.

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.