Skip to main content
Glama

Take the pending price

accept_proposal
Destructive

Accept the counterparty's pending price on a thread. Pass the pendingAmount you read from get_thread: if a newer counter replaced it, this is refused — read again and decide. With accept: true it also accepts the deal at that price in the same step (COMMITS, like accept_terms) — the proposer agreed by proposing, so this agrees the deal; the initiator (funds the long leg) passes hashlock = sha256(secret) here. Without accept, you accept afterwards with accept_terms.

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": {
      "id": "<id>",
      "quoteAmount": "<quoteAmount>"
    },
    "name": "accept_proposal"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThread id
acceptNoalso accept the deal at this price (one step)
hashlockNo32-byte hex sha256(secret); required from the initiator with accept: true. Acting for a person with no wallet here (a chat assistant)? Never make the secret: if they are the initiator, send them to the dealUrl to accept there.
quoteAmountYesthe pending price, base units

Output Schema

NameRequiredDescriptionDefault
swapNoSet once both accepted
threadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / hashlock / description
      Previous value: -"32-byte hex sha256(secret); required from the initiator with accept: true"New value: +"32-byte hex sha256(secret); required from the initiator with accept: true. Acting for a person with no wallet here (a chat assistant)? Never make the secret: if they are the initiator, send them to the dealUrl to accept there."
    • changedOutput schema / properties / swap / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "id": {
      -        "description": "Swap id",
      -        "type": "string"
      -      },
      -      "secretCiphertext": {
      -        "description": "Revealed secret, plain hex",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "status": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "dealUrl": {
      +        "description": "The deal page on the Hashlock site — where a person without a wallet here accepts as initiator, funds and claims",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Swap id",
      +        "type": "string"
      +      },
      +      "secretCiphertext": {
      +        "description": "Revealed secret, plain hex",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / properties / thread / properties / dealUrl
      Added value: +{
      +  "description": "The deal page on the Hashlock site — where a person without a wallet here accepts as initiator, funds and claims",
      +  "type": "string"
      +}
  2. Changed4 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / id / description
      Added value: +"Thread id"
    • addedInput schema / properties / id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "swap": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "properties": {
      +            "id": {
      +              "description": "Swap id",
      +              "type": "string"
      +            },
      +            "secretCiphertext": {
      +              "description": "Revealed secret, plain hex",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "status": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Set once both accepted"
      +    },
      +    "thread": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "currentQuoteAmount": {
      +          "description": "Price on the table",
      +          "type": [
      +            "string",
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "description": "Thread id",
      +          "type": "string"
      +        },
      +        "makerAccepted": {
      +          "type": "boolean"
      +        },
      +        "pendingAmount": {
      +          "description": "Counter awaiting acceptance",
      +          "type": [
      +            "string",
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "status": {
      +          "type": "string"
      +        },
      +        "takerAccepted": {
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructive and non-idempotent; the description adds what those hints do not say: staleness refusal behavior, that accept:true COMMITS (like accept_terms), and who must supply the hashlock (the initiator funding the long leg), plus the no-wallet/chat-assistant escalation to dealUrl. It does not spell out what thread state or funds move on commit, so it stops short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and every sentence carries content, but it is one dense run-on with parentheticals, dashes and a mid-sentence role switch; the hashlock/initiator sentence in particular takes effort to parse. Information-dense but not cleanly structured.

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 destructive conditional-role mutation with an output schema, this covers the decision-relevant behavior: staleness handling, the two-step vs one-step paths, and the secret-handling safety rule. Minor gaps remain around post-accept thread/swap state, but return values are covered by the output schema.

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; the description still adds meaning by tying quoteAmount to the pendingAmount value read from get_thread and by conditioning hashlock on role plus accept:true. That conditional/sequencing semantics goes beyond the schema's field-level wording.

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?

Specific verb and resource: 'Accept the counterparty's pending price on a thread.' It explicitly distinguishes itself from the sibling accept_terms ('Without accept, you accept afterwards with accept_terms'), so an agent can tell the two apart without opening a schema.

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?

Gives concrete when-to-use and how: fetch pendingAmount from get_thread, pass it, and re-read if a newer counter replaced it (the call is refused). It also states the branch condition — with accept:true the deal is closed in one step, without it you follow up with accept_terms.

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.