Skip to main content
Glama

SacrosanctSpace

Complete purchase

complete_purchase

After paying with prepare_purchase.payment_plan, submit the mined transaction hash with the payment_id, purchase_ticket, and commerce_scope. Verifies the payment on-chain, then executes the purchased function and returns its result.

Input Schema

NameRequiredDescriptionDefault
argsNo
buyerYes
job_idYes
tx_hashYes
payment_idYes
function_nameYes
commerce_scopeYes
purchase_ticketYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the tool verifies the payment on-chain, executes the purchased function, and returns the result, but it omits failure behavior, permission requirements, idempotency, and what happens if verification fails.

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?

Two tightly written sentences front-load the precondition and then describe the verification and execution flow. There is no redundant or filler language.

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

Completeness2/5

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

This is a complex mutation-style tool with eight parameters, no annotations, no output schema, and 0% schema description coverage. The description explains the workflow but not the roles of several required parameters, failure modes, or the shape of the returned function result, so it is not complete enough for the complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description should compensate. It mentions tx_hash, payment_id, purchase_ticket, and commerce_scope, adding that the transaction hash must be mined, but it omits explanation of job_id, function_name, buyer, and the nested args object, leaving half the parameters undocumented.

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?

The description states a specific action: submit a mined transaction hash to complete a purchase, verify payment on-chain, and execute the purchased function. It clearly follows prepare_purchase.payment_plan and is distinguishable from get_purchase_status, which would only check status.

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 gives a clear precondition: use this after paying with prepare_purchase.payment_plan. It does not explicitly say when not to use it or point to get_purchase_status for polling, but the sequencing guidance is strong.

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.

Resources