Skip to main content
Glama
Simplicity MCP Server

Simplicity MCP Server

pset_finalize

Finalize a PSET by attaching a Simplicity program and witness, completing the signing process for Liquid/Elements transactions.

Instructions

Finalize a PSET by attaching a Simplicity program and witness. Uses hal-simplicity-signer (pset-signer branch). This completes the signing process.

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": {
      "pset": "<pset>",
      "program": "<program>",
      "witness": "<witness>"
    },
    "name": "pset_finalize"
  }
}

Input Schema

NameRequiredDescriptionDefault
psetYesThe PSET to finalize (with UTXO data)
programYesBase64-encoded Simplicity program
witnessYesHex-encoded witness data

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation. It never states whether the finalized PSET is broadcast, whether the operation is reversible, whether existing signatures on the PSET are required or preserved, or what happens on failure. The mention of 'hal-simplicity-signer (pset-signer branch)' is an implementation detail that does not help the agent predict runtime behavior.

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?

Three short sentences with the core action front-loaded, so an agent can read the purpose immediately. The library/branch note in the middle sentence is low-value for a caller deciding how to invoke the tool and is the one piece of text that does not fully earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The input side is fully covered by the schema and the description names the exact action, but for a non-annotated mutation with no output schema the definition should say more about the resulting state—whether the tool outputs a finalized PSET for a later extract/broadcast step, or whether it terminates the flow itself.

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% and all three parameters are individually documented in the schema, so the baseline is 3. The description restates that a program and witness are attached but adds no encoding, format, or constraint detail (such as whether the witness must match the program's covenant) beyond what the schema already gives.

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?

Uses a specific verb and resource ('Finalize a PSET') and adds what is attached ('a Simplicity program and witness'), so the operation is unambiguous. It does not, however, distinguish itself from the sibling simplicity_finalize or clarify its relationship to pset_extract, leaving sibling differentiation to inference.

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 closing sentence 'This completes the signing process' implies this is the terminal signing step, which gives the agent some placement in the workflow. There is no explicit when-to-use vs. when-not guidance, no prerequisite statements (e.g., that the PSET must already carry signatures), and no mention of an alternative tool.

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