Skip to main content
Glama

GOLDDIGGER $GDIG

Build a stake transaction

build_stake_transaction
Read-only

Returns an UNSIGNED base64 Solana transaction that stakes amount GDIG from wallet into tier (0 Bronze 1y 2%, 1 Silver 2y 4%, 2 Gold 3y 6%, 3 Platinum 4y 8%, 4 Diamond 5y 10%). The wallet owner must sign and send it. Locks tokens; early exit costs 10% of principal.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "wallet": "<wallet>",
      "tier": "<tier>",
      "amount": "<amount>"
    },
    "name": "build_stake_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierYes
amountYesGDIG amount
walletYesSolana wallet address (base58)

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 declare readOnlyHint=true, and the description is consistent with that by making clear the tool only returns an unsigned transaction and does not submit it. Beyond the annotations it discloses genuinely valuable behavior: the returned payload requires external signing, tokens become locked, and early exit forfeits 10% of principal — financial consequences an agent would otherwise not know.

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?

Front-loads the return type and the operation in the first clause, then packs the tier legend, the signing requirement, and the lock/penalty warning into minimal prose. The long tier parenthetical is information-dense and every clause earns its place.

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 correctly explains what is returned (an unsigned base64 transaction) and what the caller must do next. It omits error conditions and any note on transaction expiry or recomputation, but for a three-parameter builder it is otherwise sufficient to invoke 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 67% and the schema only bounds `tier` to 0-4 without meaning; the description fills that gap by mapping each integer to a named tier, lock duration, and APY. It also clarifies `amount` is denominated in GDIG, adding meaning beyond the bare 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?

Names a specific verb and artifact: returns an UNSIGNED base64 Solana transaction that stakes GDIG. It also distinguishes itself from the sibling build_claim_rewards_transaction by naming the exact operation (staking into a tier) and the token involved.

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 clearly through 'The wallet owner must sign and send it', which tells the agent this is a prepare-then-sign step in a larger flow. However, it never states when to prefer this over consulting get_staking_terms for tier details, nor does it give any exclusions or preconditions such as checking existing positions first.

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