Skip to main content
Glama

Prepare a QWallet deposit

prepare_qwallet_deposit
Read-onlyIdempotent

Prepare unsigned deposit transactions into an enrolled QWallet: an exact ERC-20 approval when the allowance is short, then depositNative or depositToken. Deposits need no post-quantum signature.

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": {
      "owner": "<owner>",
      "verifier": "<verifier>",
      "pool": "<pool>",
      "publicKey": "<publicKey>",
      "asset": "<asset>",
      "amount": "<amount>"
    },
    "name": "prepare_qwallet_deposit"
  }
}

Input Schema

NameRequiredDescriptionDefault
poolYes
assetYesETH (native) or an ERC-20 address in the pool policy.
chainNoRobinhood Chain (4663). Other chains use qhooks.com/qwallets in a browser.
ownerYes
amountYesRaw integer units of the asset (USDG has 6 decimals; ETH 18).
tokensNoERC-20 asset policy fixed at pool deployment. Default: [USDG]. Pass the same list for every later call on that pool.
verifierYes
publicKeyYesThe owner's SLH-DSA-SHA2-128s public key (32 bytes, 0x-hex). Generated and kept by the agent; never send a secret key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavioral context: the result is unsigned transactions, the ERC-20 approval is exact (not unlimited), it is emitted only when allowance is short, and no post-quantum signature is needed. It stops short of stating what the returned payload looks like or whether the approval tx must be submitted before the deposit tx.

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?

Two sentences, front-loaded with the action and resource, then the mechanism and the signature caveat. No filler and no repetition of the title.

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

Completeness3/5

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

For an 8-parameter preparation tool with no output schema, the description should say what is returned (single tx vs. approval+deposit sequence, field shape) and whether transactions must be submitted in order. The gas/nonce/chain assumptions and the browser fallback for other chains also live only in the schema.

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?

With 63% schema coverage, the schema already documents asset, amount, tokens, chain and publicKey. The description adds flow-level meaning (asset type determines depositNative vs depositToken, approval sized exactly to the shortfall) but does not clarify the undocumented parameters such as verifier, owner, or pool beyond their patterns.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Prepare unsigned deposit transactions into an enrolled QWallet') and names the concrete outputs (approval, depositNative, depositToken). Deposit is distinguishable from the setup/withdraw siblings by name and content, though the description never explicitly frames itself against them.

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?

'into an enrolled QWallet' implies the prerequisite that setup has already run, and 'when the allowance is short' implies the tool inspects allowance state. There is no explicit when-not guidance and no pointer to an alternative tool (e.g., for other chains, which is only mentioned inside the chain parameter description of the schema).

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.