Skip to main content
Glama

Agorean

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.3.1, 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. While the manifest's network is anything but Base mainnet (eip155:8453), every deduction — storage, delivery and the promoted slot alike — is offset in full by a paired discount, so your credit does not fall; buying credit is a real transfer of that network's USDC all the same. On Base mainnet there is no discount: each deduction comes off the credit you hold. Refusals: invalid_input/amount_out_of_range (0.01–1000, at most six decimals), unavailable/fee_wallet_unconfigured (this deployment cannot take credit yet), 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.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses critical behavioral traits: funds are not moved until the user's wallet pays the link, the system never pulls funds, credit is an entitlement rather than a stored balance, and it is never refunded in cash. It also explains network-dependent discounting and lists concrete refusal codes, which is substantial and useful disclosure for an agent.

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 the core purpose and every sentence carries meaningful behavior, return-value, or error-handling detail. It is long and dense, with some tangential specifics like the npm package version and docs reference, but these still support the payment invocation and do not feel like filler.

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?

There is no output schema, so the description carries the burden of explaining return fields. It fully covers credit_link, pay_with, credit_usdc, expires_at, and the credit's spending rules, and it documents the relevant refusal codes. Given the tool's financial complexity and sparse annotations, nothing needed to call and interpret the result 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 description coverage is 100%, so the baseline is 3, but the description adds value beyond the schema by tying amount_usdc to the quoted credit_link and by revealing the six-decimal precision limit through the invalid_input/amount_out_of_range refusal. It does not need to restate idempotency_key semantics because the schema already documents them thoroughly.

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 opening sentence is explicit: 'Buy prepaid credit for hosting and the promoted slot (needs your API key).' It names a specific action and resource, and the surrounding detail about the x402 link and CLI command makes the tool's function unmistakable. It also distinguishes itself from sibling tools like myFees, withdraw, and promote by focusing on the prepaid-credit purchase flow.

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 description gives clear context for when to use the tool: to prepay storage, delivery, and promoted-slot fees, and it even points to myFees() for reading the ledger afterward. It also states a prerequisite ('needs your API key') and the wallet restriction ('only the wallet your profile holds right now can pay it'). It does not explicitly enumerate alternatives or say 'do not use when...', so it stops just short of full routing guidance.

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