Skip to main content
Glama

Counter with a price

propose_price
Destructive

Counter with a new total price on a thread (base units). Proposing is agreeing to it: when the counterparty takes it with accept_proposal(accept: true), the deal is agreed. The initiator (funds the long leg) agrees only with its hashlock = sha256(secret), so pass it here.

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": "propose_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThread id
hashlockNo32-byte hex sha256(secret) — the initiator's; ignored from the other side. 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 new total price, base units — at most 8 decimals of its asset (fewer if the asset has fewer); the API refuses more

Output Schema

NameRequiredDescriptionDefault
threadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / hashlock / description
      Previous value: -"32-byte hex sha256(secret) — the initiator's; ignored from the other side"New value: +"32-byte hex sha256(secret) — the initiator's; ignored from the other side. 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."
    • 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. Changed5 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)$"
    • addedInput schema / properties / quoteAmount / description
      Added value: +"the new total price, base units — at most 8 decimals of its asset (fewer if the asset has fewer); the API refuses more"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "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.1/5.0
Behavior5/5

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

Beyond the destructive/non-idempotent annotations, the description discloses the consequential semantics: proposing equals agreeing, acceptance by the counterparty closes the deal, and the initiator must pass its own sha256(secret) hashlock. That is exactly the kind of non-obvious behavioral context annotations cannot convey.

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 dense sentences with the core action front-loaded and no filler. The final clause about the initiator's hashlock is slightly compressed but still readable.

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?

The tool is a three-parameter mutation with full schema coverage, annotations covering its safety profile, and an output schema, so return values need not be described. The description fills the remaining gaps — binding effect and hashlock asymmetry — leaving nothing essential missing.

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 all three parameters, including the base-unit and precision rules for quoteAmount, are already documented in the schema. The description reinforces the hashlock's role but adds little syntax or format detail beyond what the schema supplies, and does not mention the thread `id`.

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 opens with a specific verb and resource: 'Counter with a new total price on a thread (base units)'. That clearly separates it from accept_proposal, which it references, though it doesn't explicitly contrast with quoting siblings such as quote_rfq.

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?

It states the downstream condition under which the counter becomes binding ('when the counterparty takes it with accept_proposal(accept: true)') and who must supply the hashlock. Exclusions — e.g. when to prefer a fresh quote rather than a counter — are not given.

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.