Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
X402AI_DRY_RUNNoSet to 1 for quote-only mode; paid tools return the price quote and never sign. No key needed.
X402AI_MAX_SESSION_USDNoTotal amount the server may spend per process. Defaults to 0.25. An invalid value stops the server at startup.0.25
X402AI_BUYER_PRIVATE_KEYNoBuyer private key in hex. Needed only for paid tools; never logged and scrubbed from error messages.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
embedA

Compute a text embedding vector. Costs $0.01 (USDC on Base) per call. Spends real money; subject to a per-payment and per-session cap. Pass the text in input (max 3000 chars).

summarizeA

Summarize text. Costs $0.02 (USDC on Base) per call; takes 5-16 s. Spends real money; subject to a per-payment and per-session cap. Pass the text in input (max 3000 chars).

askA

Ask a question and get an answer. Costs $0.04 (USDC on Base) per call; takes 5-16 s. Spends real money; subject to a per-payment and per-session cap. Pass the question in input (max 3000 chars).

healthA

Free. Check GET /health on api.x402ai.dev and show local session spend. No key needed.

inspectA

Free, never signs or pays. Fetch an https URL unpaid, decode its x402 payment-required header, and check it with Coinbase CDP validate and merchant discovery. Sends the URL to api.cdp.coinbase.com.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: embed computes vectors, summarize condenses text, ask answers questions, health checks service/session spend, and inspect handles unpaid x402 URL diagnostics. Health and inspect are both free diagnostics, but their descriptions make the boundary clear.

Naming Consistency4/5

The tool names are short lowercase single words with mostly action verbs (embed, summarize, ask, inspect), and only health is a noun. This is a minor deviation from a strict verb pattern but remains highly readable and predictable.

Tool Count5/5

Five tools is well-scoped for a small paid AI API surface: three paid operations plus two diagnostic utilities. Each tool earns its place without an excessive surface.

Completeness4/5

The surface covers the core paid AI operations and includes health/session-spend and x402 inspection utilities. A minor gap is the absence of a dedicated pricing, balance, or payment-status tool beyond local session spend in health.

Maintenance

ActivityMaintained
ResponsivenessNo issues