Skip to main content
Glama

Prepare $0-Upfront 1-Click Execution (Pay 10% From Operation)

prepare_execution

Generate ready-to-sign 0x/Jupiter swap calldata or an Aave v3 borrow batch with TaxRail's 10% verified-savings fee embedded, enabling tax-optimized execution before dossier and CSV claims.

Instructions

FREE pre-execution step: returns ready-to-sign 0x v2 / Jupiter swap calldata or Aave v3 atomic borrow batch with TaxRail's exact 10% verified-savings fee embedded inside the operation ($0 upfront). Broadcast the tx and call claim_dossier to unlock SpecID lots & CSV.

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": {
      "planId": "<planId>"
    },
    "name": "prepare_execution"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYes
buyAssetNo
takerAddressNo
borrowerAddressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

B3.1/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 burden, and it does add real context: the step is free upfront, the 10% fee is embedded inside the operation rather than charged separately, and the output is unsigned calldata the agent must broadcast itself. It omits important traits such as whether calldata expires, which chains are supported, auth/API-key requirements, or whether calling it has any side effects on server state.

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 definition is two tight sentences with the key qualifier ('FREE pre-execution step') front-loaded, followed immediately by the return type and the next action. The marketing-style framing ('$0 upfront', 'exact 10% verified-savings fee') is slightly promotional but still conveys substantive fee behavior.

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 high-stakes tool that produces signable on-chain calldata, yet there are no annotations and no output schema, so the description must explain the response. It only names the return categories generically without describing the fields (tx target, value, chain, calldata payload), and it leaves all four input parameters undocumented, which is insufficient for a tool the agent will hand to a signer.

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% across four parameters, and the description does not explain any of them explicitly. `planId` (the sole required field), `buyAsset`, `takerAddress`, and `borrowerAddress` are only obliquely gestured at by mentions of 'swap' and 'borrow batch', leaving the agent to guess which address field applies to which operation type.

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 names a specific action and output: it returns ready-to-sign 0x v2 / Jupiter swap calldata or an Aave v3 atomic borrow batch, making the tool's role in the flow unambiguous. It also sequences the agent toward `claim_dossier`, but it doesn't distinguish itself from other preparation-adjacent siblings like `pre_trade_check` or `compare_borrow_vs_sell`, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through the workflow instruction to broadcast the tx and then call `claim_dossier` to unlock SpecID lots and CSV, which tells the agent what comes before and after. However, there is no explicit statement of when to use this versus alternatives, no prerequisites (e.g., a plan must already exist via `unlock_tax_plan`), and no exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.