New Your team’s decisions, in one playbook every coding agent works from. Never answer your agent twice

wallet_buy

Get a link to buy credits for your wallet. Use this to purchase credits that power AI tools. $10 = 1000 credits. Each AI call costs ~1 credit. After purchasing, use your API key with the AI tools.

SERVERX402 Middleware SOURCE@gadgethumans/x402
Critical RISK CLASS
Category Financial
Parameters 00 required
Recommended Approval-gatedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/com-gadgethumans-swarm-x402-middleware/wallet-buy.md

What wallet_buy does on X402 Middleware

AI agents use wallet_buy to commit financial operations through X402 Middleware, usually the final step of a payment, billing, or trading workflow. A call moves real money.

Why wallet_buy is rated Critical

This tool initiates a financial transaction — purchasing credits for a wallet. Even though it returns a 'link' rather than directly charging, it is the entry point to a financial commitment (real money exchanged for credits). This falls squarely in the Financial category. Severity is high because an AI agent could misuse this to trigger unwanted purchases or repeatedly initiate payment flows.

From the tool's definition "buy credits for your wallet", "purchase credits", "$10 = 1000 credits"

Questions about wallet_buy

What does the wallet_buy tool do? +

Get a link to buy credits for your wallet. Use this to purchase credits that power AI tools. $10 = 1000 credits. Each AI call costs ~1 credit. After purchasing, use your API key with the AI tools. It is categorised as a Financial tool in the X402 Middleware MCP Server, which means it involves financial transactions. Block by default and require explicit approval.

How do I enforce a policy on wallet_buy? +

Register the X402 Middleware MCP server in PolicyLayer and add a rule for wallet_buy: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches X402 Middleware. Nothing to install.

What risk level is wallet_buy? +

wallet_buy is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit wallet_buy? +

Yes. Add a rate_limit block to the wallet_buy rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block wallet_buy completely? +

Set action: deny in the PolicyLayer policy for wallet_buy. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides wallet_buy? +

wallet_buy is provided by the X402 Middleware MCP server (@gadgethumans/x402). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on X402 Middleware, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of X402 Middleware's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.