Skip to main content
Glama

Mercadopleis

prepare_order_action

Prepare (never sign or send) the transaction for a buyer follow-up on an order: approve_delivery (after verifying the deliverable), open_dispute, or claim_timeout_refund (seller missed the deadline). Checks the on-chain status first. The transaction must come from the buyer wallet that funded the order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
chainIdNo
orderIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/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 well: it discloses that the tool never signs or sends, that it checks on-chain status first, and that the caller must be the wallet that funded the order. It omits what the prepared output actually is (unsigned tx vs. calldata) and any error/revert behavior, which keeps it from 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.

Conciseness4/5

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

The main clause is front-loaded and the parenthetical conditions add real information rather than filler; nothing is padded. It is slightly dense with stacked clauses in a single long opening sentence.

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 preparation tool with no annotations and no output schema, the description covers the safety and authorization story well but leaves two gaps: the unexplained chainId parameter and the absence of any statement about what the prepared transaction looks like when returned.

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 0%, so the description must compensate. It meaningfully explains the 'action' enum values and their preconditions, and orderId is implied by 'an order', but chainId is never mentioned and no parameter types or formats are clarified.

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 verb ('Prepare ... the transaction') and resource (buyer follow-up actions on an order), and enumerates the three supported actions by name. It is unmistakably distinct from every sibling, none of which prepare order transactions.

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 per-action conditions (approve_delivery after verifying the deliverable; claim_timeout_refund when the seller missed the deadline) and a clear precondition that the transaction must come from the funding buyer wallet. It does not name explicit alternatives or when-not-to-use cases, so it falls short of a 5.

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.