Skip to main content
Glama

Add funds

ringkit_top_up
DestructiveIdempotent

Step 6: Fund the wallet. Add funds (min $10). Returns a checkoutUrl that the human must open and pay (you can't pay), or null when credited immediately (dev). A retried identical call returns the same checkout URL; pass a new idempotencyKey to start a second top-up of the same amount. Identical requests are deduplicated for 24 hours; use a new idempotencyKey only to deliberately repeat the action.

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": {
      "amountCents": "<amountCents>"
    },
    "name": "ringkit_top_up"
  }
}

Input Schema

NameRequiredDescriptionDefault
returnToNowallet
businessIdNoDefaults to the business of the API key in the Authorization header.
amountCentsYes
idempotencyKeyNoOptional. Retries of the same call should reuse it (the stored result comes back); a new value deliberately repeats an identical call. The MCP POST's Idempotency-Key header takes precedence.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the tool returns a checkoutUrl the agent cannot itself pay, that null means immediate credit in dev, that retries return the same URL, and that identical requests dedupe for 24 hours. These are exactly the operational facts an agent needs and none are in the minimal annotations.

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-loaded with the step label and the core action, then the return behavior, then idempotency. The final sentence restates the dedupe/idempotency point already made one sentence earlier, which is slight redundancy but not harmful.

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?

For a money-moving tool with annotations covering safety and idempotency, and no output schema, the description supplies the return contract, the payment handoff, and retry semantics. The only material gap is the meaning of the returnTo parameter, which would let an agent choose between wallet and onboarding flows deliberately.

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 50%. The description reinforces the $10 minimum for amountCents and elaborates the idempotencyKey repeat semantics, which is useful but largely mirrors the schema's own description. The returnTo enum (wallet vs onboard) is never explained in either place, leaving one parameter opaque.

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?

"Step 6: Fund the wallet. Add funds (min $10)" names a specific verb and resource, and the follow-up sentence states the return shape (checkoutUrl or null). It is unmistakably distinct from read-only siblings like ringkit_get_wallet or ringkit_list_ledger.

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?

The "Step 6" framing positions the call inside the onboarding flow and "you can't pay" tells the agent this must be handed to a human, which is real when-to-use guidance. The idempotency paragraph explains when to repeat versus retry. It stops short of naming an explicit alternative (e.g. ringkit_put_auto_refill) or a when-not-to-call condition.

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