Skip to main content
Glama

Beggar Bot

pendle_swap_tx

Build an unsigned Pendle router tx to buy/sell PT, YT or LP (or any token) with approval check, output amount and price impact. Paid: $0.02 USDC via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pendle_swap_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNofrom
chainNochain
amountNoamount
token_inNotoken_in
recipientNorecipient
token_outNotoken_out
slippage_bpsNoslippage_bps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 disclose key behaviors: the transaction is unsigned (not broadcast), an approval check is included, and the result surfaces output amount and price impact. It also flags a real operational constraint — a $0.02 USDC x402 payment — which is exactly the kind of trait annotations would otherwise supply. It omits whether the approval check can produce a separate approval tx and any chain support limits.

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 sentences, front-loaded with the core action and capability set, with the payment caveat appended where it does not obstruct scanning. No filler wording.

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

Completeness4/5

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

For a 7-parameter build tool with no annotations and no output schema, the description covers the essential unknowns: unsigned output, approval handling, returned amounts/price impact, and cost. Remaining gaps — chain coverage and which parameters are actually mandatory — are moderate but not blocking.

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 nominally 100%, but the schema descriptions merely restate the property names ("from": "from"), so no real meaning is conveyed there. The tool description does not compensate — it says nothing about from vs recipient, amount units/decimals, or slippage_bps, and does not resolve why required is empty for a swap build. Baseline 3 applies, but the added value over the schema is close to zero.

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 gives a specific verb and resource ("Build an unsigned Pendle router tx") and names the exact instruments it handles (PT, YT, LP, or any token), which clearly separates it from pendle_markets/pendle_positions and from non-Pendle swap builders. It stops short of explicitly contrasting itself with the many sibling swap-build tools.

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 by the phrase "to buy/sell PT, YT or LP" and by the "approval check" mention, so an agent can infer this is the Pendle-specific swap construction step. There is no explicit when-to-use/when-not guidance, no mention of prerequisites such as a prior quote, and no pointer to alternatives like swap_best_quote.

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.