Skip to main content
Glama

accept_terms

Accept the current terms at the price you read (currentQuoteAmount from get_thread) — refused if it moved since. Needed only when your side's accepted flag (takerAccepted / makerAccepted) is false: your own quote, or a proposal you sent with your hashlock as the initiator, already counts. When BOTH sides have accepted, the HTLC swap is created. The initiator (funds the long leg) must pass hashlock = sha256(secret): generate a 32-byte secret yourself, keep it safe, and reveal it only when you claim. The server never sees your preimage.

Input Schema

NameRequiredDescriptionDefault
idYes
hashlockNo32-byte hex; required from the initiator
quoteAmountYesthe current price, base units

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses rejection when the price moved, the state transition (both sides accepted creates the HTLC swap), and the security-critical behavior of the hashlock — sha256(secret), 32-byte secret generated client-side, preimage never seen by the server. That is far beyond what the schema conveys.

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

Conciseness5/5

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

Dense but front-loaded: the core action and price-freshness constraint come first, then the conditional applicability, then the initiator's hashlock duty. No sentence is filler given the number of distinct behaviors that must be conveyed.

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 state-changing, protocol-critical call with no annotations and no output schema, the description covers preconditions, rejection conditions, the resulting swap creation, and the secret-management requirement. Nothing an agent needs to invoke this correctly appears to be 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 67%, and the description compensates by explaining where quoteAmount comes from (currentQuoteAmount from get_thread) and exactly how hashlock must be constructed, including who must supply it (the initiator funding the long leg). This adds meaning the parameter descriptions alone do not provide.

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?

States a specific verb and resource — accept the current terms at the price you read — and pins the price to currentQuoteAmount from get_thread. It also distinguishes itself from the adjacent flows by noting that your own quote or a sent proposal already counts as accepted, which an agent can use to tell this apart from accept_proposal.

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 an explicit precondition (your side's takerAccepted / makerAccepted must be false) and an explicit exclusion (your own quote, or a proposal you sent with your hashlock as initiator, does not need this call). It also names the sibling get_thread as the source of the quote amount, so the agent knows the ordering of calls.

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.