Skip to main content
Glama

Liquid Agent

Sell (redeem) basket shares

stocks_sell
Read-onlyIdempotent

Free. Cash out: redeem basket shares to USDC, or take the raw stock tokens in-kind (works any block, no vault needed, anyone holding shares can sell). Returns an UNSIGNED transaction {to, data, value, chainId} on Base; nothing happens until you sign it with your own wallet and broadcast it. Liquid never holds keys or funds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vaultYesVault whose shares you hold.
inKindNotrue = receive the 4 stock tokens instead of USDC.
sharesYesShares to redeem (18 decimals; see stocks_portfolio).
minUsdcOutNoOptional slippage floor in USDC-6.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoContract to call
dataNoCalldata, sign and broadcast as-is
modeNopermit: sign typedData first
nextNoWhat to do next
afterNoWhat to do after it confirms
stepsNoWhen two transactions are needed (approve, then deposit), sign and send them in order
valueNoNative value, always 0
chainIdNoChain id (8453 = Base)
typedDataNoEIP-712 permit to sign off-chain (free, no gas)
attributionNoERC-8021 builder attribution suffix info

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations mark readOnlyHint=true on what sounds like a sell, and the description proactively resolves that tension: it returns an UNSIGNED transaction and 'nothing happens until you sign it', plus 'Liquid never holds keys or funds'. That is exactly the context annotations cannot convey. It does not cover rate limits or failure modes, so 4 rather than 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?

Tight and front-loaded: the action, the two payout modes, the prerequisites, and the return shape all land in the first half. It is dense but every clause carries information; no filler or repetition.

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

Completeness5/5

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

For a transaction-building tool with a full input schema, an output schema, and safety annotations, the description supplies the remaining unknowns an agent needs: chain (Base), fee (Free), custody model, and the unsigned-then-sign workflow. Nothing required to invoke it correctly is missing.

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 vault, inKind, shares, and minUsdcOut are all documented in the schema itself; the baseline is 3. The description adds only the general 'no vault needed' framing, which arguably sits oddly against the required vault parameter, and adds no format or units detail beyond the schema.

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?

States a specific verb and resource ('redeem basket shares to USDC, or take the raw stock tokens in-kind') and immediately contrasts the two exit paths. An agent can distinguish this from stocks_buy and stocks_send without opening any schema.

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?

Gives real context for when this applies: 'works any block, no vault needed, anyone holding shares can sell', which tells the agent this path has no vault-deployment prerequisite. It does not explicitly name a sibling alternative or an exclusion case, 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.