Skip to main content
Glama

Write a sell for my wallet to sign

prepare_sell
Read-onlyIdempotent

Writes a sell as unsigned transactions for your own wallet to sign. The nest holds no keys and sends nothing. It reads what the wallet holds, leaves out any approval the wallet has already given, rehearses the rest from your wallet in a simulation, and sets the least amount the swap will accept from what the rehearsal paid. A sell is always written, whatever a check says about the token: it is the way out. Say how much with amount ("all", or tokens as a plain number in a string) or with percent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromYesThe wallet that holds it and will sign.
tokenYesThe token to sell.
amountNo"all", or how many tokens, as a plain number in a string.
percentNoInstead of amount: this share of what the wallet holds.
slippageBpsNoHow far below the rehearsed amount the swap may fill before it reverts. 100, one percent, when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

The description adds significant behavioral detail beyond annotations: 'The nest holds no keys and sends nothing,' 'reads what the wallet holds, leaves out any approval the wallet has already given, rehearses the rest from your wallet in a simulation,' and sets the minimum acceptable amount. These explain the read-only, idempotent nature consistent with annotations.

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 description is slightly long but each sentence adds value: purpose, safety, process, and usage options are all covered. It is front-loaded with the core action and structured logically.

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 implies the return (unsigned transactions) and explains key behaviors like simulation and slippage. It covers all parameter usage and edge cases (existing approvals, 'all' amount) sufficiently for an agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all parameters have descriptions. The description adds practical guidance for amount ('all' or plain number) and percent, clarifying the choice between them. This goes beyond schema to improve selection.

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?

The description states a specific verb and resource: 'Writes a sell as unsigned transactions for your own wallet to sign.' It clearly distinguishes from prepare_buy and practice_sell by focusing on real sells and unsigned transactions. The phrase 'the way out' reinforces its purpose.

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 description implies usage (when you want to sell) and clarifies that a sell is always written regardless of token checks, but it does not explicitly name alternatives or when not to use this tool. It provides context but lacks explicit exclusion guidance.

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.