Skip to main content
Glama

Calls to buy PT-USDG

pt_buy
Read-onlyIdempotent

Build the unsigned calls that buy PT-USDG with USDG for a wallet on Robinhood Chain: an approval of exactly that USDG to Pendle's router, if needed, then the router's swap, paying the PT-USDG to the wallet itself with a minimum out. Nothing is signed or sent: the wallet signs and sends them in order. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesThe wallet on Robinhood Chain (0x...).
amount_usdgYesUSDG to spend, e.g. 100.
slippage_bpsNoSlippage margin in basis points under the quote, 0 to 500. Default 100 (1%), 10 for a redemption.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/idempotentHint annotations: it clarifies that read-only here means building unsigned calldata that is never signed or sent, discloses the conditional approval step ('if needed'), the approval amount ('exactly that USDG'), the recipient ('paying the PT-USDG to the wallet itself'), and the required ordering. This resolves the apparent tension between readOnlyHint=true and a buy operation.

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?

A single dense but well-ordered sentence front-loads the action and follows with the call sequence; every clause carries information. Slightly heavy with parentheticals but no wasted text.

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?

With no output schema, the description should say something about the returned calls; it explains their content and ordering but not the shape of the response. For a 3-parameter, fully documented, annotation-covered tool, this is nearly complete, with only the return format left implicit.

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 100%, so the schema already documents address, amount_usdg, and slippage_bps. The description adds only the 'minimum out' concept, which loosely maps to slippage_bps, but gives no added syntax or range detail. Baseline 3 is appropriate.

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?

Specific verb+resource: 'Build the unsigned calls that buy PT-USDG with USDG for a wallet on Robinhood Chain.' This clearly distinguishes it from siblings pt_sell, pt_redeem, and pt_quote, and even describes the exact call sequence (approval then router swap).

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 flow description ('if needed' approval, 'wallet signs and sends them in order'), but there is no explicit when-to-use guidance or named alternative such as running pt_quote first to obtain the quote that 'minimum out' references. Nothing tells the agent when not to use it.

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