Skip to main content
Glama

Experiment Topup

experiment_topup
Read-onlyIdempotent

How to add prepaid credits for experiments (and your current balance). Payment is x402, USDC on Base, paid in-band by any wallet-equipped agent: POST https://gateway.pipeworx.io/credits/topup?amount_usd=10 responds HTTP 402 with payment requirements; retry with PAYMENT-SIGNATURE to settle and the credits land instantly. Example: experiment_topup({})

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "amount_usd": 25
    },
    "name": "experiment_topup"
  }
}

Input Schema

NameRequiredDescriptionDefault
amount_usdNoIntended top-up amount in USD (1-500), echoed into the instructions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / amount_usd / description
      Previous value: -"Intended top-up amount in USD (1-500) — echoed into the instructions"New value: +"Intended top-up amount in USD (1-500), echoed into the instructions"
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Adds real behavioral context beyond the annotations: the 402 challenge/retry flow, the settlement header, and instant crediting. However, it is ambiguous whether the tool itself performs the payment or merely returns instructions for the agent to execute the HTTP call, which matters because readOnlyHint=true only makes sense under the latter reading. That ambiguity is a meaningful transparency gap for a money-adjacent tool.

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?

Front-loads the purpose, then the payment mechanics, then a call example, with no filler sentences. The endpoint URL and header names are dense but each earns its place by telling the agent exactly what to do next.

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?

There is no output schema, so the description must convey what comes back; it partially does (a 402 with payment requirements, then instant credit) but never states the tool's own return shape or how the balance is reported. For a zero-required-parameter tool that is otherwise simple, this is adequate but leaves a real gap.

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% and the single parameter is already documented as the intended USD amount echoed into the instructions. The description reinforces this with a concrete amount_usd=10 URL example but adds no range, validation, or default semantics beyond the schema. Baseline 3 applies.

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: adding prepaid credits for experiments, plus reporting current balance. It is clearly distinct from the experiment_* siblings, which operate on experiments rather than billing. The framing as 'How to add...' is slightly instructional rather than declarative, but the purpose is unambiguous.

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?

Explains the payment mechanism (x402, USDC on Base, in-band by a wallet-equipped agent) and gives a concrete amount example, which implies the prerequisite of a funded wallet. It never states when to call this versus alternatives such as list_subscriptions, nor when not to call it, so usage selection is only implied.

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.