Skip to main content
Glama

aanet_deposit

Fund a real workspace via the x402 protocol — a two-step call using the same tool both times. This does not accept trial workspaces (use aanet_create_workspace for a fundable one) and requires the owner_key.

Step 1 — call with only api_key/workspace_id/amount_usd: returns an x402
PaymentRequired challenge offering both Base-USDC and Solana-USDC as
payment options; nothing is charged yet. Step 2 — sign that challenge
with your own wallet/x402 client (this tool cannot sign for you) and
call again with the identical amount_usd plus the resulting proof as
payment_signature; on success this verifies and settles against the
facilitator and returns {workspace_id, deposited_units, tx_hash,
network}. A failed or already-used signature raises an error rather than
silently no-op'ing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyYesBearer credential for this workspace: either the owner_key returned once by aanet_create_workspace/aanet_create_trial_workspace, or a sub-key returned by aanet_mint_subkey. Sent under the hood as `Authorization: Bearer <api_key>`. Owner-only tools reject a sub-key with a 403.
amount_usdYesDeposit amount in US dollars as a decimal string, e.g. "1.00". Minimum $0.25.
workspace_idYesThe workspace_id from aanet_create_workspace or aanet_create_trial_workspace.
payment_signatureNoLeave unset on your first call to receive the payment challenge. Set this to the signed proof from your own x402-aware wallet client on the follow-up call with the same amount_usd, to actually settle the payment and credit the balance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / amount_usd / description
      Added value: +"Deposit amount in US dollars as a decimal string, e.g. \"1.00\". Minimum $0.25."
    • addedInput schema / properties / api_key / description
      Added value: +"Bearer credential for this workspace: either the owner_key returned once by aanet_create_workspace/aanet_create_trial_workspace, or a sub-key returned by aanet_mint_subkey. Sent under the hood as `Authorization: Bearer <api_key>`. Owner-only tools reject a sub-key with a 403."
    • addedInput schema / properties / payment_signature / description
      Added value: +"Leave unset on your first call to receive the payment challenge. Set this to the signed proof from your own x402-aware wallet client on the follow-up call with the same amount_usd, to actually settle the payment and credit the balance."
    • addedInput schema / properties / workspace_id / description
      Added value: +"The workspace_id from aanet_create_workspace or aanet_create_trial_workspace."
  2. First observed

TDQS

A4.7/5.0
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 of behavioral disclosure. It explicitly states that the first call does not charge anything, that the second call verifies and settles payment, and that a failed or already-used signature raises an error rather than silently no-op'ing. It also notes that the tool cannot sign for the user, which is critical behavioral context. This fully compensates for the lack of annotations.

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?

The description is well-structured with clear step-by-step instructions separated by newlines. It front-loads the key information about the two-step nature and the constraint on trial workspaces. Every sentence adds value, covering prerequisites, the two steps, the return value, and error behavior. It is appropriately sized for the complexity without being verbose.

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

Completeness5/5

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

Given the tool's complexity (two-step x402 protocol), the description is complete. It covers the full flow, prerequisites (owner_key), error handling, and the return structure (workspace_id, deposited_units, tx_hash, network). There is no output schema, so describing the return format is essential and is provided. The description leaves no gaps that an agent needs to invoke the tool correctly.

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?

The input schema has 100% coverage of all 4 parameters, each with detailed descriptions (e.g., api_key explains it can be owner_key or sub-key, amount_usd explains decimal string and minimum, payment_signature explains the two-step usage). Since the schema already provides comprehensive semantics, the description adds marginal value by reinforcing the two-step flow, but does not need to compensate for any gaps. Baseline 3 is appropriate as the schema does the heavy lifting.

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 states the tool's purpose: to fund a real workspace via the x402 protocol. It specifies the action (fund), the resource (workspace), and the method (x402 protocol). It also distinguishes itself from the sibling aanet_create_workspace, noting that trial workspaces are not accepted, which helps differentiate it in the context of sibling tools like aanet_create_trial_workspace.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance: it tells the user to call the tool in two steps, explains the exact sequence (first call without payment_signature to get a challenge, then second call with the signed proof), and states that trial workspaces should not be used (use aanet_create_workspace instead). It also indicates that the tool requires the owner_key, and that the tool cannot sign the challenge itself, so sign with an external client. This is comprehensive and leaves no ambiguity about usage.

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