Skip to main content
Glama
This connector has been deprecated

Replaced by rent.dev.

Duplicate listing. rent.dev is listed from the official MCP Registry as dev.rent/rent, and that listing is the maintained one.

Top up the balance

rent_topup

Needs a rent.dev account: sign in when your client offers it, or call rent_signup first. method "card": answers a pay link for a person (valid 24 hours; Stripe Checkout, no API key needed). On clients that take URL elicitation the link is shown to the person first, then the tool answers it. method "x402": charges USDC over MCP with x402. The first call answers isError with the PaymentRequired object (amount = credits + 5.5%; sign within its maxTimeoutSeconds, 120 s); retry the same call with the PaymentPayload in _meta["x402/payment"]. The paid call settles, credits, and answers the SettleResponse in _meta["x402/payment-response"]. The balance shows card payments once Stripe confirms them; check with rent_get_balance.

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": {
      "method": "<method>",
      "amount_usd": "<amount_usd>"
    },
    "name": "rent_topup"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodYes
amount_usdYesCredits in USD, e.g. "5.00". Card links round up to the cent.

Output Schema

NameRequiredDescriptionDefault
methodYes
resultNo
statusYespay_link: a person pays at checkout_url. settled: credited. pending: poll operation_id with rent_get_operation.
x402_urlNoThe same top-up over HTTP x402.
operationNo
amount_usdYesCredits bought, in USD (fees come on top).
expires_atNoWhen checkout_url stops working (24 hours).
elicitationNoThe person's answer to the pay-link prompt, on clients that showed it.
checkout_urlNoCard pay link, no API key needed.
operation_idNo

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 (which only declare it is a non-read-only, open-world, non-idempotent, non-destructive call), the description discloses the full behavioral contract: 24-hour link validity, Stripe Checkout with no API key, URL elicitation behavior, the x402 first-call 402/isError pattern, the 120 s maxTimeoutSeconds signing window, the 5.5% surcharge, retry-with-PaymentPayload mechanics, and where the SettleResponse appears. The asynchronous settlement caveat for card payments is exactly the kind of non-obvious behavior an agent would otherwise get wrong.

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?

Dense but nearly every clause carries operational information, and the prerequisite is front-loaded before the method branches. Some phrasing is terse to the point of being hard to parse on first read ("answers a pay link", "answers isError", "then the tool answers it"), which costs a little clarity.

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?

For a payment tool with a two-step protocol flow, it covers everything needed to invoke correctly: auth prerequisite, method-specific behavior, retry semantics with the exact _meta keys, timing constraints, and post-payment verification. With an output schema present, it correctly does not spend words describing return shapes.

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 50%: amount_usd is documented in-schema, but the method enum has no per-value description there, and the description fills that gap thoroughly by explaining what each method value does and its side effects. It also adds meaning the schema lacks, such as the x402 amount being credits plus 5.5% and card links rounding up to the cent.

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?

The description implies the action through its two method flows ("answers a pay link", "charges USDC", "settles, credits") and names the balance as the object, so an agent can tell this purchases credits rather than moving money out. It never states the purpose in one plain sentence up front, relying on the title and the method details to carry it, but it is distinguishable from siblings like rent_get_balance and rent_quote.

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?

It gives a concrete prerequisite (needs a rent.dev account; sign in or call rent_signup first) and explains the selection between the two method values: "card" for a person-facing pay link, "x402" for programmatic USDC over MCP. It also routes to rent_get_balance for confirming card payments. It stops short of explicit when-not guidance, e.g. minimum amounts or when topup is unnecessary.

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