Skip to main content
Glama
quackai-org

@quackai/q402-mcp

Official
by quackai-org

q402_stake

Stake Q (QuackAI) tokens on BNB Chain gaslessly, selecting lock tiers from 30 to 180 days for APRs between 10% and 40%. Preview the stake first, then confirm to execute.

Instructions

WRITE - MOVES FUNDS. Stakes the Agent Wallet's Q (QuackAI) token into QuackAiStake on BNB Chain, gaslessly. Server-managed Agent Wallet path (Mode C): the server holds the encrypted key, signs the stake, and sponsors gas. Pick a lock tier (stakeType 0-3): 0=30d/10%, 1=60d/15%, 2=120d/32%, 3=180d/40% APR - longer lock, higher APR. Q is BNB-only. amount accepts "max" (stake the wallet's whole Q balance).

REQUIRES CONFIRMATION - like q402_pay, refuses to execute unless confirm:true. Call FIRST without confirm to preview (amount, tier, lock, wallet); show the user, get approval, THEN re-call with confirm:true + the consentToken.

SANDBOX BY DEFAULT - no funds move unless a live Multichain key (q402_live_*) is configured AND Q402_ENABLE_REAL_PAYMENTS=1.

RETRY SAFETY - on status="uncertain" (broadcast unconfirmed) the stake MAY have settled; do NOT blindly retry. The server dedupes identical (tier, amount) calls for 15 min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesHuman-readable Q amount to stake, e.g. "1000", or "max" for the whole Q balance.
confirmNoMUST be true to actually stake - only after the user approved this exact stake. Omit to preview.
walletIdNoOptional Agent Wallet address to stake from. Defaults to the owner's default wallet.
stakeTypeYesLock tier 0-3 (0=30d/10% … 3=180d/40% APR). Longer lock = higher APR.
consentTokenNoTwo-phase consent token. Leave unset on the first call 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 the full burden. It discloses WRITE/MOVES FUNDS, gasless execution, server-managed key path, confirmation requirement, sandbox default, and retry safety with dedup, all beyond what structured annotations would provide.

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?

Well-structured with headers for confirmation, sandbox, and retry safety. Every sentence provides necessary operational detail, making the length justified and front-loaded with the WRITE-MOVES FUNDS warning.

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?

Despite no output schema, it covers operational workflow (preview/confirm, sandbox flag, retry safety) and references response status ('uncertain'). It doesn't fully describe the response shape, but the critical usage scenarios are all addressed.

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 100%; all five parameters have descriptions that already explain 'max', tier APR, consentToken flow, etc. The description adds no significant new meaning beyond the schema, so 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?

States clearly it 'Stakes the Agent Wallet's Q (QuackAI) token into QuackAiStake on BNB Chain, gaslessly.' Verb+resource+chain makes it distinct from siblings like q402_unstake and q402_pay.

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 workflow: call first without confirm to preview, then re-call with confirm:true + consentToken; sandbox default and retry safety are also covered. It references q402_pay as a similar pattern but doesn't explicitly name alternatives for staking.

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