Skip to main content
Glama
quackai-org

@quackai/q402-mcp

Official
by quackai-org

q402_unstake

Unstake matured Q from QuackAiStake on BNB back to your wallet gaslessly. Exit one matured stake by record index or all at once, with user confirmation.

Instructions

WRITE - MOVES FUNDS. Unstakes the Agent Wallet's matured Q from QuackAiStake on BNB back to the wallet, gaslessly (Mode C, server-signed, relayer-sponsored gas). Unstake is PER-RECORD: QuackAiStake exits one matured stake at a time by its index. Pass ith (a record index from q402_stake_positions) to exit one stake, or all: true to exit EVERY matured stake (one tx per record). A stake can only be unstaked after its lock elapses.

REQUIRES CONFIRMATION (confirm:true + consentToken) and the same SANDBOX / live-key gate + uncertain-retry semantics as q402_stake. Use q402_stake_positions first to see which records are exitable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoExit EVERY matured stake (one on-chain exit per record). Mutually exclusive with ith.
ithNoRecord index to exit (one matured stake). From q402_stake_positions. Must be >= 1.
confirmNoMUST be true to actually unstake - only after user approval. Omit to preview.
walletIdNoOptional Agent Wallet address. Defaults to the owner's default wallet.
consentTokenNoTwo-phase consent token. Leave unset to preview + get a token; re-call with confirm:true + this token.
Behavior5/5

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

No annotations are provided, so the description carries full burden. It discloses this is a WRITE operation that moves funds, explains the gasless mechanism (Mode C, server-signed, relayer-sponsored gas), per-record execution, confirmation requirements (confirm:true + consentToken), and references 'uncertain-retry semantics' and gates from q402_stake. This is rich behavioral context.

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 relatively long but well-structured with clear labels (WRITE, PER-RECORD, REQUIRES CONFIRMATION) and front-loads the purpose. Every sentence contributes essential information about execution mode, parameter semantics, or prerequisites. Slight density but appropriate for the complexity.

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?

The tool is complex (per-record unstaking, confirmation flow, gasless execution), and the description covers prerequisites, parameter semantics, and safety checks. It does not detail return values for preview vs confirm, but given no output schema exists, this is not strictly required. It also references 'uncertain-retry semantics' without expounding, which is a minor gap.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds substantial meaning beyond the schema: it explains that 'all' and 'ith' are mutually exclusive, indicates 'ith' originates from q402_stake_positions, and describes the two-phase consent/confirmation flow. This goes beyond the basic property descriptions in 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?

The description clearly identifies the tool's action: unstaking matured Q from QuackAiStake on BNB back to the wallet. It specifies the resource (Agent Wallet's stake), the protocol (QuackAiStake), and the network (BNB), and distinguishes it from siblings like q402_stake_pending or other actions.

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?

Provides explicit guidance: use q402_stake_positions first to identify exitable records, and explains the 'ith' vs 'all' distinction. It notes a stake can only be unstaked after its lock elapses, giving a clear precondition. Does not explicitly mention alternatives, but names the prerequisite tool and gives context for when this tool is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/quackai-org/q402-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server