Skip to main content
Glama

AI Source of Truth Evidence Rooms

Register a signing key

register_key

Register an upload signing key: an Ed25519 (OKP) or ES256 (EC P-256) public JWK, made on your own device, with proof of possession: the key's signature over "rooms-key-v2\n\n", using a challenge from get_key_challenge. The thumbprint is the RFC 7638 JWK thumbprint and becomes the key_id. The private key never leaves you. Scope: none, any signed-in caller. REST twin: POST /api/signing-keys. Errors: unauthorized, validation_error, signature_invalid, conflict.

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": {
      "public_jwk": "<public_jwk>",
      "challenge_id": "<challenge_id>",
      "proof": "<proof>"
    },
    "name": "register_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
proofYesThe key's signature over the statement, base64url.
public_jwkYesThe public JWK: {"kty":"OKP","crv":"Ed25519","x":...} or {"kty":"EC","crv":"P-256","x":...,"y":...}.
challenge_idYesThe challenge_id from get_key_challenge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=false) by describing the security model: proof of possession, the private key never leaving the device, and the enumerated error outcomes (unauthorized, validation_error, signature_invalid, conflict). It does not describe what the successful response body contains beyond noting the thumbprint becomes key_id.

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-loaded with the core action and tightly packed with zero filler, though the opening sentence chains many clauses (key types, statement format, thumbprint rules) and a reader must parse it more than once; acceptable for a security-sensitive operation.

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?

For a 3-required-param write operation with no output schema, it covers the key types, proof construction, prerequisite tool, auth scope, REST twin, and error set — everything an agent needs to construct a valid call.

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 coverage is 100%, so the baseline is 3, but the description adds genuine meaning: it defines the exact signed statement format ("rooms-key-v2\n<thumbprint>\n<challenge>"), the RFC 7638 thumbprint derivation, and the fact that the thumbprint becomes the key_id — none of which the schema conveys.

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 ("Register an upload signing key") plus the exact supported key types (Ed25519 OKP or ES256 EC P-256) and proof-of-possession scheme, which clearly distinguishes it from get_key_challenge and revoke_key.

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?

Explicitly names the required prerequisite sibling ("using a challenge from get_key_challenge") and states the caller scope ("none, any signed-in caller"), giving clear context for when this applies; it stops short of stating exclusions such as when to prefer an existing key or revoke 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