Skip to main content
Glama

x402_network_info

Lists all available APIs in the x402 API Network with details on pricing, status, and capabilities. This free tool helps users discover pay-per-use APIs that accept USDC micropayments on Base network.

Instructions

List all APIs in the x402 API Network with pricing, status, and capabilities. This tool is FREE — no payment required.

The x402 API Network provides pay-per-use APIs accepting USDC micropayments on Base (L2 Ethereum).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of the `x402_network_info` tool, which queries the status of various APIs in the x402 network and returns their health, pricing, and configuration status.
    // ─── Tool: x402_network_info (FREE) ─────────────────────────────────────────
    
    server.tool(
      "x402_network_info",
      `List all APIs in the x402 API Network with pricing, status, and capabilities.
    This tool is FREE — no payment required.
    
    The x402 API Network provides pay-per-use APIs accepting USDC micropayments on Base (L2 Ethereum).`,
      {},
      async () => {
        const walletConfigured = !!PRIVATE_KEY;
        const healthChecks = await Promise.allSettled(
          Object.entries(APIS).map(async ([key, api]) => {
            const health = await checkHealth(api.baseUrl);
            return { key, ...api, ...health };
          })
        );
    
        const results = healthChecks.map((r) => {
          if (r.status === "fulfilled") return r.value;
          return {
            key: "unknown",
            name: "Unknown",
            healthy: false,
            error: "Check failed",
          };
        });
    
        return textResult({
          network: "x402 API Network",
          blockchain: "Base (L2 Ethereum)",
          token: "USDC",
          wallet_configured: walletConfigured,
          payment_mode: walletConfigured
            ? "Automatic x402 payments enabled"
            : "Free test endpoints only — set X402_PRIVATE_KEY for paid access",
          apis: results.map((r: any) => ({
            id: r.key,
            name: r.name,
            status: r.healthy ? "online" : "offline",
            price: r.price,
            description: r.description,
            base_url: r.baseUrl,
            error: r.healthy ? undefined : r.error,
          })),
        });
      }
    );
Behavior3/5

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

With no annotations provided, the description carries the full burden. It successfully discloses cost behavior (free, no payment required) and network context (USDC on Base). However, it fails to disclose safety characteristics (read-only vs. destructive), rate limits, or return format details that would help an agent understand execution risks.

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 consists of three efficient sentences with zero waste. It is properly front-loaded with the action/purpose, followed by behavioral constraints (free), and closes with network context. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (zero parameters, no output schema, no annotations), the description provides sufficient context for an agent to invoke it correctly. It explains the tool's purpose, cost model, and network context. A minor gap is the lack of explicit read-only safety assurance given the absence of annotations.

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?

The input schema contains zero parameters. Per evaluation guidelines, zero-parameter tools receive a baseline score of 4, as there are no parameter semantics to clarify beyond what the empty schema already communicates.

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 ('List') and clear resource scope ('all APIs in the x402 API Network'), including what's returned ('pricing, status, and capabilities'). This effectively distinguishes it from action-oriented siblings like x402_scrape_url or x402_send_email by positioning it as a discovery/metadata tool rather than an execution tool.

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 contextual guidance by emphasizing 'This tool is FREE — no payment required,' which is critical usage context given the x402 Network involves USDC micropayments. However, it does not explicitly state when to prefer this over specific siblings or when to avoid it (e.g., when you already know the API you want to use).

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/jameswilliamwisdom/x402-mcp-server'

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