Skip to main content
Glama

token4u_wallet

Manage a local x402 wallet for USDC micropayments on Base: check status, create a keypair, or receive funding and self-custody guidance.

Instructions

Manage local x402 wallet — create keypair, check status, and get funding guidance.

This is a pure external x402 mode: the MCP server manages a local wallet (~/.token4u-mcp/wallet.json, 0o600). All payments go through on-chain x402 USDC transactions on Base network. No token4u account or internal wallet required.

Actions:

  • status (default): Show local wallet address and whether it is newly created.

  • create: Generate a new local wallet keypair or load an existing one. The private key is stored at ~/.token4u-mcp/wallet.json with 0o600 permissions and never leaves this machine.

  • setup: Show step-by-step funding instructions — how to send USDC on Base to your local wallet address, and how to export the private key for self-custody.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoWhich wallet operation to performstatus
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so thoroughly. It discloses the wallet file location and permissions (~/.token4u-mcp/wallet.json, 0o600), that the private key never leaves the machine, how create loads or generates a keypair, and the underlying network (Base USDC). This far exceeds the minimum required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded with the main purpose, followed by a concise context paragraph and an action list. Every sentence contributes useful information without fluff, making it scannable and appropriately sized for the tool's complexity.

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?

Given it has only one parameter, no annotations, and no output schema, the description is exceptionally complete. It explains the tool's purpose, all three actions with their effects, underlying network details, security properties, and prerequisite context (no token4u account needed), leaving no critical gaps for an agent to select and invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema covers the single parameter 'action' with an enum and description, the description adds substantial meaning by explaining what each enum value does: status shows address/newly-created flag, create generates/loads a keypair with security details, and setup provides funding/export steps. This goes well beyond the schema's minimal 'Which wallet operation to perform.'

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 states a specific verb and resource: 'Manage local x402 wallet — create keypair, check status, and get funding guidance.' It clearly distinguishes from sibling tools (token4u_chat, token4u_consumption) by focusing solely on wallet operations and explicitly noting this is for external x402 mode without a token4u account.

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 provides clear usage context: it is for 'pure external x402 mode' and notes 'No token4u account or internal wallet required,' which implies when to use this tool over alternatives that might require an account. However, it does not explicitly state when not to use it or name alternative tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Token4uAi/token4u-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server