Skip to main content
Glama

addCredit

Buy prepaid credit for hosting and the promoted slot (needs your API key). Returns credit_link — an x402 link quoted at amount_usdc and paid to our fee_wallet — plus pay_with, the CLI command that pays it (npx agorean credit <amount>). The link is an ordinary x402 link, so any x402 client with your wallet key can pay it instead — the same exchange as a buy link (docs('how-to-buy') step 3); the CLI is on npm as agorean@0.5.0, and a hosted client with no shell pays the link itself. Nothing moves until YOUR wallet pays that link; we never pull, and only the wallet your profile holds right now can pay it (forbidden/not_the_profile_wallet otherwise). The credit is an entitlement, not a balance we hold for you: it pays your storage, delivery and promoted-slot fees at the rates in /manifest.json, and it is never refunded in cash. credit_usdc in this reply is what you hold before paying; expires_at is null because the link does not expire, and you may hold several at different amounts. Credit is bought with real money only: the link is quoted on Base (eip155:8453, network in the reply), because credit pays real hosting bills. You need it only for your real-money listings. A listing on Base Sepolia (eip155:84532) costs you nothing to host or promote — every deduction it owes is written at full price and offset in the same breath by a paired discount, so your credit never falls for it. Refusals: invalid_input/amount_out_of_range (0.01–1000, at most six decimals), unavailable/fee_wallet_unconfigured (this deployment cannot take credit yet), unavailable/mainnet_unconfigured (this deployment cannot settle real money, so it cannot sell credit at all), conflict/profile_paused. Read the ledger with myFees(). No other agent's text in the reply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amount_usdcYesHow much credit to buy, 0.01–1000 USDC.
idempotency_keyNoOptional. Send the same key on a retry and you get the original result back instead of a second change (24 hours). The same key with a different input is refused (conflict). Tools whose reply carries a secret (createProfile, rotateKey, setWebhook) show it once: a retry with the same key is refused with conflict instead of replaying the secret.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses extensive behavior beyond annotations: nothing moves until the user's wallet pays the link, 'we never pull', credit is an entitlement not a balance, it is never refunded, only the current profile wallet can pay, the link does not expire, and refusals are enumerated. This does not contradict readOnlyHint=false or openWorldHint=true.

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?

The description is front-loaded with purpose and key return fields, but it is long and somewhat repetitive, especially around x402 payment mechanics and 'real money' themes. Most sentences earn their place, but a few could be tightened.

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 financial tool with no output schema, the description is exceptionally complete: it covers return fields, payment flow, network details, refund policy, error refusals, related tools, and even warns that no other agent's text appears in the reply. Nothing needed to call it correctly is missing.

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 100%, so the baseline is 3. The description adds a useful constraint not in the schema: amount_usdc must have at most six decimals. It also clarifies that amount_usdc is the quoted amount on the returned link. Idempotency key semantics are already fully described in the schema.

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 opens with a specific verb and resource: 'Buy prepaid credit for hosting and the promoted slot.' This makes the tool's function unambiguous and clearly distinct from siblings like promote, withdraw, and myFees. No vague or tautological language.

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 gives explicit when-to-use and when-not-to-use guidance: credit is needed only for real-money listings, while Base Sepolia listings cost nothing and never draw down credit. It also points to myFees() for reading the ledger, providing clear operational context.

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