Skip to main content
Glama

Prepare a pool price correction

prepare_fix_pool_price
Read-only

Run the interface-equivalent phased fix-price workflow: provide exact pending pool-price read calldata, then exact router quote calldata, then approvals and target-price execution calldata. The wallet never constructs a route or transaction.

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": {
      "chain_id": "<chain_id>",
      "sender": "<sender>",
      "core_address": "<core_address>",
      "pool_id": "<pool_id>",
      "base_token": "<base_token>",
      "target_price": "<target_price>"
    },
    "name": "prepare_fix_pool_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
senderYesaddress
pool_idYesdecimal or 0x-hex integer
chain_idYesEVM chain ID
base_tokenYesToken; zero address = native
core_addressYesaddress
quote_resultNo
target_priceYesQuote per whole raw base token (decimals only, multiplier not applied); convert a share price first: × base ÷ quote multiplier
swap_deadline_minutesNoEkubo router route deadline; default 30
pending_current_sqrt_ratioNodecimal integer

Output Schema

NameRequiredDescriptionDefault
execution_plan_referenceNoartifact_reference; pass unchanged

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / target_price / description
      Added value: +"Quote per whole raw base token (decimals only, multiplier not applied); convert a share price first: × base ÷ quote multiplier"
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With readOnlyHint=true already declaring the safety profile, the description adds genuinely useful behavior: the tool is phased and 'the wallet never constructs a route or transaction,' so the caller must supply exact calldata at each step. It omits what is returned per phase and whether any state changes on-chain, but the core invocation contract is disclosed.

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?

Two sentences, front-loaded with the workflow action, with no filler. The density is appropriate for a multi-phase prepare tool, though 'interface-equivalent' is unexplained vocabulary that costs a little clarity.

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?

Given nine parameters, a nested quote object, and an output schema, the description covers the phase model but not prerequisites, sequencing across multiple calls, or the meaning of pending_current_sqrt_ratio and swap_deadline_minutes. It is minimally sufficient to attempt invocation, but an agent would still need to consult the schema heavily.

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 description coverage is 89%, so parameter meaning is largely carried by the schema. The description loosely maps inputs to workflow phases ('pending pool-price read calldata' ↔ pending_current_sqrt_ratio, 'router quote calldata' ↔ quote_result), but the wording calls them calldata while the schema expects a decimal integer and a structured quote object, which could mislead rather than clarify.

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 verb and resource — running a phased fix-price workflow for a pool price correction — and enumerates the three data phases (pending price read, router quote, approvals/execution). It is clearly distinct from siblings like prepare_pool_initialization or prepare_manual_pool_boost, but the jargon 'interface-equivalent' adds little and no sibling is named explicitly.

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?

The ordering constraint ('pending pool-price read calldata, then router quote calldata, then approvals and target-price execution calldata') implies when this tool is invoked and in what sequence. However, there is no statement of preconditions (e.g., pool must be initialized, approvals required) or when to prefer this over a plain quote or boost tool.

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.