Skip to main content
Glama
Simplicity MCP Server

Simplicity MCP Server

pset_update_input

Updates a PSET input with UTXO data such as txid, vout, amount, asset, and scriptPubKey so the transaction can be finalized correctly.

Instructions

Update a PSET input with UTXO data (txid, vout, amount, asset, scriptPubKey). Uses hal-simplicity-signer (pset-signer branch). Required before finalizing the PSET.

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>",
      "txid": "<txid>",
      "vout": "<vout>",
      "amount": "<amount>"
    },
    "name": "pset_update_input"
  }
}

Input Schema

NameRequiredDescriptionDefault
psetYesThe PSET to update (base64 or hex encoded)
txidYesTransaction ID of the UTXO being spent
voutYesOutput index of the UTXO being spent
assetNoAsset ID (optional, defaults to L-BTC)
amountYesAmount in satoshis of the UTXO
script_pubkeyNoScript pubkey of the UTXO (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the ordering constraint and the underlying implementation ('hal-simplicity-signer, pset-signer branch'), but says nothing about whether the updated PSET is returned or mutated in place, whether re-running is idempotent, or what happens on an invalid vout/txid.

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, front-loaded sentences with no filler; the purpose and payload come first and the sequencing requirement follows. The parenthetical library/branch note is internal detail that does not help an agent invoke the tool, but it costs little.

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?

For a mutation tool with no annotations and no output schema, the definition covers what to send and when to call it, but not what comes back (an updated PSET string?) or failure behavior. That gap matters more here precisely because no output schema exists to fill it in.

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 coverage is 100%, so each parameter is already documented, and the description only restates the field list without adding format or constraint detail. Note a naming mismatch: the description says 'scriptPubKey' while the schema property is 'script_pubkey', which could cause a malformed call.

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 description uses a specific verb and resource ('Update a PSET input') and enumerates the UTXO fields it consumes, so an agent can tell what it does without opening the schema. It also implicitly distinguishes itself from pset_finalize by stating it is 'Required before finalizing the PSET', though it does not name a sibling explicitly.

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?

'Required before finalizing the PSET' gives a concrete lifecycle position, which is exactly the when-to-use guidance an agent needs for this step. There are no explicit exclusions or named alternatives (e.g., what to do if the input already exists), which keeps it below a 5.

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