Skip to main content
Glama
@proof-holdings/mcp-server

@proof-holdings/mcp-server

Official

create_confirmation

Creates a human-in-the-loop approval request and sends it to an approval channel's configured channels; the first response wins.

Instructions

Create a HITL confirmation request. Sends an approval request to the channels configured on the referenced approval channel. First response wins.

Agent usage: The approval channel referenced by hitl_id must be authorized before you can create confirmations. If this returns a 403 or "not authorized" error, call request_approval_channel_authorization on the approval channel first, then wait for the user to approve via the messaging channel. After creating a confirmation, poll get_confirmation to check for approval/denial, or, if the user (the approval channel owner) will decide it themselves, use get_confirmation_approval_link for their own approval link.

Encryption is NOT optional: an approval channel cannot send confirmations without a keypair (protected by the owner's approvals password, set in the dashboard under Settings → Approvals password, https://proof.holdings/dev), the human approves by decrypting in their browser, and message must be a JSON ciphertext envelope. Plaintext is refused with 400 message_not_encrypted; an envelope sealed to another key with 400 message_key_mismatch. Choose the version by who must be able to decrypt:

  • v1 (single-recipient): wraps the content key for the config owner only. Use ONLY when there are no enrolled non-owner approvers — with approvers enrolled it is refused with 400 envelope_missing_approvers.

  • v2 (multi-recipient): additionally wraps the content key for each enrolled approver via an approver_ek map, so every approver can decrypt. Build it with the SDK encryptMessageV2(plaintext, ownerPublicKey, hitlId, approverKeys) after fetching the approvers via the SDK getApproverKeys(hitlId) (GET /api/v1/hitl/:id/approver-keys). AAD is the hitlId.

ACCESS: needs a Proof account. Set PROOF_API_KEY and restart this server, 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>",
      "message": "<message>"
    },
    "name": "create_confirmation"
  }
}

Input Schema

NameRequiredDescriptionDefault
hitl_idYesApproval channel ID whose channels will receive the approval request
messageYesThe client-encrypted ciphertext envelope as a JSON string (v1 or v2) — NOT the human-readable text. Encrypt the sentence the approver should read; passing it directly is refused with 400 `message_not_encrypted`, because the approval page can only decrypt an envelope.
proof_expiry_daysNoPer-request proof expiry override in days (7, 30, 90, or 365)

Output Schema

NameRequiredDescriptionDefault
idNoMongoDB ObjectId
statusNoStatus of a confirmation request. A confirmation that times out is `denied`, with `response.channel` `system` and `response.text` `timeout`.
hitl_idNo
messageNoThe stored ciphertext envelope, echoed back verbatim. The server never sees the plaintext, so this is never the human sentence — the approver decrypts it in their browser.
resendsNoEvery "Send again" (`POST /confirmations/{id}/resend`), oldest first, the last 50 kept. Absent from an API that predates it.
responseNoThe decision and its evidence (null while pending)
created_atNo
timeout_atNoWhen this confirmation will time out
updated_atNo
proof_tokenNoSigned proof of the decision, approval or denial alike, naming who decided (`decided_by`, plus `authorization_id` for an approver); null while pending and for a system denial (`response.channel` is `system`)
resolved_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.10.0
    • changedInput schema / properties / hitl_id / description
      Previous value: -"HITL config ID whose channels will receive the approval request"New value: +"Approval channel ID whose channels will receive the approval request"
  2. Changed4 schema fields changedv1.7.2
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / proof_expiry_days / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / proof_expiry_days / minimum
      Added value: +-9007199254740991
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "created_at": {},
      +    "hitl_id": {},
      +    "id": {
      +      "description": "MongoDB ObjectId"
      +    },
      +    "message": {
      +      "description": "The stored ciphertext envelope, echoed back verbatim. The server never sees the plaintext, so this is never the human sentence — the approver decrypts it in their browser."
      +    },
      +    "proof_token": {
      +      "description": "Signed proof of the decision, approval or denial alike, naming who decided (`decided_by`, plus `authorization_id` for an approver); null while pending and for a system denial (`response.channel` is `system`)"
      +    },
      +    "resends": {
      +      "description": "Every \"Send again\" (`POST /confirmations/{id}/resend`), oldest first, the last 50 kept. Absent from an API that predates it."
      +    },
      +    "resolved_at": {},
      +    "response": {
      +      "description": "The decision and its evidence (null while pending)"
      +    },
      +    "status": {
      +      "description": "Status of a confirmation request. A confirmation that times out is `denied`, with `response.channel` `system` and `response.text` `timeout`."
      +    },
      +    "timeout_at": {
      +      "description": "When this confirmation will time out"
      +    },
      +    "updated_at": {}
      +  },
      +  "type": "object"
      +}
  3. Changed2 schema fields changedv1.6.0
    • changedInput schema / properties / message / description
      Previous value: -"Human-readable description of what needs approval"New value: +"The client-encrypted ciphertext envelope as a JSON string (v1 or v2) — NOT the human-readable text. Encrypt the sentence the approver should read; passing it directly is refused with 400 `message_not_encrypted`, because the approval page can only decrypt an envelope."
    • changedInput schema / properties / message / maxLength
      Previous value: -2000New value: +10000
  4. First observedv1.1.0

TDQS

A4.5/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description goes well beyond that with the 403 authorization flow, mandatory client-side encryption, and specific 400 error codes (message_not_encrypted, message_key_mismatch, envelope_missing_approvers). It also discloses the dashboard dependency (Settings → Approvals password) and API-key requirement, which are material to a mutating call. Return values are covered by the output schema, so the remaining gap is minor.

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?

Purpose and the first-response rule are front-loaded, then prerequisites, then the encryption detail, then access — a sensible progression. It is long but the complexity justifies most of it; the main waste is duplication, since the 'plaintext is refused with 400 message_not_encrypted' rule is stated in the description and again in the message parameter's schema text.

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 mutating tool with encryption, auth prerequisites, and a multi-step follow-up flow, the description covers prerequisites, error recovery, envelope version choice, and next-step tools. Because an output schema exists, omitting return-value detail is appropriate, and nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds decisive meaning: message must be a v1 or v2 ciphertext envelope, v1 is rejected with envelope_missing_approvers when non-owner approvers are enrolled, v2 requires an approver_ek map built via encryptMessageV2/getApproverKeys, and AAD is the hitlId. That is actionable semantics an agent could not infer from the schema alone.

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 first two sentences name the specific verb and resource ("Create a HITL confirmation request") and state the delivery target (channels configured on the referenced approval channel) plus the resolution rule ("First response wins"). This clearly separates it from siblings like get_confirmation, resend_confirmation, and wait_for_confirmation.

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?

The 'Agent usage' paragraph gives an explicit prerequisite sequence: authorize the approval channel first, and on 403 call request_approval_channel_authorization and wait. It then names the two follow-up paths and when each applies (poll get_confirmation vs. get_confirmation_approval_link for the owner's own approval).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools