Skip to main content
Glama

Private LLM text completion (paid, x402)

chat_text

Get the paid endpoint for OpenAI-compatible chat completions — frontier and open-weight models (DeepSeek, GPT, GLM, Qwen, Gemini, Llama, Kimi, Grok, Claude; list under textModels in GET /v1/agent/models). PAID call, two rails: x402 (endpoint answers 402, wallet settles, retry with PAYMENT-SIGNATURE → {choices, usage}) or account API key (x-api-key: lp_… — create at https://livepairai.com/dashboard/settings after signing up; bills prepaid credits, no 402). Price = estimated input tokens × input rate + max_tokens × output rate — set max_tokens tight to bill tight. Metering keeps token counts only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoText model id (default: deepseek/deepseek-v4-flash)
payerNoYour 0x… wallet — applies your volume-tier discount; must equal the wallet signing the payment
promptYesThe text request — your user message
maxTokensNoOutput cap, billed at this amount (<= 8192, default 1024)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only give readOnly=false/openWorld/destructive=false, but the description discloses the full payment mechanics: 402 response flow, wallet settlement, PAYMENT-SIGNATURE retry, prepaid-credit billing, the exact pricing formula, and that metering retains token counts only. This is exactly the kind of behavioral detail annotations cannot carry.

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

Conciseness3/5

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

It is front-loaded with the core purpose, but the body is a single dense paragraph of stacked parentheticals and em-dashes that is hard to parse. Nearly all content is relevant, yet the packing hurts readability and would benefit from sentence separation.

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?

With no output schema, the description compensates by naming the response shape ({choices, usage}), explaining auth requirements, model discovery location, and the billing model. An agent has everything needed to invoke it correctly.

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 baseline is 3, but the description adds real meaning beyond the schema: it ties max_tokens directly to billing ('set max_tokens tight to bill tight') and explains that payer must equal the signing wallet to earn the volume-tier discount.

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?

The description states a specific verb and resource — 'paid endpoint for OpenAI-compatible chat completions' — and enumerates the model families served, so the agent knows exactly what the tool does. It references the sibling endpoint GET /v1/agent/models for textModels, aiding routing, but never names siblings like quote_price or list_models as distinct alternatives.

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?

It gives clear when-to-use context by laying out the two payment rails (x402 vs account API key) and the conditions that select each (402 settlement vs prepaid credits). It stops short of telling the agent when NOT to use this tool or to route pricing estimation to quote_price first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources