Skip to main content
Glama

x402_llmchat_post_v1_chat

Submits chat completion prompts to OpenRouter models using pay-per-call USDC pricing, so agents can obtain LLM inference without an OpenRouter API key and with live model-price validation.

Instructions

llmchat — Pay-per-call LLM chat completions via OpenRouter — 437 models, 4 price tiers ($0.005-$0.25). Live model-price validation; agents get frontier inference without an OpenRouter API key. [POST /v1/chat] $0.005-0.25 USDC on eip155:8453. Example: {"messages":[{"role":"user","content":"..."}]} — $0.005, cheap models

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_llmchat_post_v1_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does disclose key behavior: it is a paid call, cost is $0.005–0.25 USDC on eip155:8453, pricing is validated live, and no OpenRouter API key is required. It omits failure/refund semantics and response format, which are relevant for a metered call but not fatal.

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?

Front-loaded with the core identity and cost, then endpoint and example. Dense but efficient, though the dash-and-bracket formatting and repeated price range ($0.005-$0.25 appears twice) add mild clutter.

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?

For a metered chat endpoint with no annotations and no output schema, the description covers payment rail, price band, auth model, and request body shape — enough to call it correctly. Gaps remain around how to select among 437 models and what the response looks like, but the essential context is present.

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 coverage is 100%, so the baseline is 3; the description adds real value by giving a concrete body example ({'messages':[{'role':'user','content':'...'}]}) for a body parameter whose schema is only a generic free-form object. The restart and operationId parameters, which carry retry/idempotency semantics, are not addressed in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (pay-per-call LLM chat completions via OpenRouter) plus the endpoint [POST /v1/chat] and model count. It distinguishes itself as the cheap tier by noting '4 price tiers' and 'cheap models,' but never names the _pro/_max/_ultra siblings as the higher-tier alternatives, so sibling differentiation is only implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Offers implied guidance: 'agents get frontier inference without an OpenRouter API key' and 'cheap models' suggest when this is the right choice over the pricier siblings. However, there is no explicit when-to-use/when-not statement and no alternative named, so the agent must infer routing from the price hints.

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

Deploy Server

Other Tools