Skip to main content
Glama

upload_approval_channel_keys

Destructive

Upload an encryption keypair for an approval channel. The server validates the RSA-4096 public key and computes the key ID. Note: the encrypted_private_key is already encrypted client-side with the user's password — the server never sees the password. The owner sets that password in the dashboard under Settings → Approvals password (https://proof.holdings/dev).

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>",
      "public_key": "<public_key>",
      "encrypted_private_key": "<encrypted_private_key>",
      "kdf_salt": "<kdf_salt>"
    },
    "name": "upload_approval_channel_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
dek_ivNov2 envelope: the IV of that wrapping
dek_tagNov2 envelope: the GCM tag of that wrapping
hitl_idYesApproval channel ID
kdf_saltYesBase64url-encoded PBKDF2 salt
public_keyYesPEM-encoded RSA-4096 SPKI public key
wrapped_dekNov2 envelope: the data key wrapped under the master key
backup_dek_ivNov2 envelope: the IV of the recovery wrapping
backup_dek_tagNov2 envelope: the GCM tag of the recovery wrapping
backup_wrapped_dekNov2 envelope: the data key wrapped under the recovery code
encrypted_private_keyYesJSON-serialized encrypted private key envelope (PBKDF2-SHA256+AES-256-GCM)

Output Schema

NameRequiredDescriptionDefault
kidYesThe stored key's id
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With destructiveHint=true already declared, the description adds meaningful context beyond the annotations: the server validates the RSA-4096 public key, computes the key ID, and never sees the password because encryption is client-side. That clarifies the trust boundary and what the server actually does. The main omission is that it never states whether uploading replaces an existing keypair or what happens to prior keys, which is exactly the risk implied by destructiveHint.

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 purpose sentence is front-loaded and the access requirement is separated into its own block, which is easy to scan. The dashboard URL and the Claude Code example are slightly incidental but arguably earn their place as setup instructions.

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 mutation tool with an output schema, the definition covers authentication, server-side validation, and the encryption/trust model adequately; return values need not be explained. The remaining gap is the overwrite/destructive semantics of the upload, which is the one behavior an agent most needs to warn a user about.

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 the baseline is 3. The description reinforces the client-side encryption model for encrypted_private_key and kdf_salt and notes server-side validation of public_key, but it adds no guidance on the optional v2 envelope parameters (wrapped_dek, dek_iv, dek_tag, backup_*), leaving their role unexplained outside the schema.

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: 'Upload an encryption keypair for an approval channel.' That is clearly distinct from siblings such as get_approval_channel_keys or delete_approval_channel_keys. It does not, however, differentiate itself from the similarly named upload_hitl_keys, which an agent could easily confuse it with.

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?

The ACCESS block gives real operational guidance: a Proof account is required, the client must be authenticated via /mcp, and start_login will not unlock this tool. That is useful prerequisite context. But there is no guidance on when to choose this tool over upload_hitl_keys, or on preconditions like whether a channel must already exist or already have keys.

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.