Skip to main content
Glama

chat completions

chat_completions
Read-only

OpenAI-compatible chat completions on Meta Llama 3.1 8B, fast general chat. Set your OpenAI SDK base URL to https://agentrxi.com/v1 and pay per token with x402 instead of an API key: $0.135 per million input and $1.152 per million output tokens, minimum $0.002 a call, at most $0.0053. The 402 quotes your request's maximum; "upto" payers are charged only the tokens used. Same request/response shape as OpenAI (streaming supported), up to 2048 output tokens. Pass model to use any model listed at /v1/models (priced per that model). Costs $0.0053 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoOptional: llama-3.1-8b-instruct (default), qwen3-30b-a3b, gemma-4-26b, glm-4.7-flash, gpt-oss-20b or mistral-small-3.1-24b
streamNo
messagesYes
max_tokensNo
temperatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld; the description goes well beyond them with pricing per million input/output tokens, a per-call floor and ceiling, 402-quote semantics, the 'upto' payer billing rule, the 2048 output-token cap, streaming support, and the no-API-key x402 auth model. That is exactly the monetary and auth context an agent needs before invoking.

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?

The most important facts (what it is, base URL, pricing) are front-loaded, but the pricing is restated redundantly: 'at most $0.0053' early and 'Costs $0.0053 USDC per call (x402)' at the end, with x402 appearing three times. Trimming the duplicated cost sentences would tighten it without losing information.

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 paid, no-output-schema generative endpoint the description covers auth, billing, model selection, streaming, and the output-length cap, so an agent can call it correctly. Minor gaps remain: message-format expectations are delegated to 'same as OpenAI' and non-402 error behavior is unstated.

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 description coverage is only 20%, so the description must compensate, and it does: it clarifies model behavior (default llama-3.1-8b-instruct, any /v1/models entry, priced per model), implies max_tokens via the 2048 output ceiling, and covers stream via 'streaming supported'. Only temperature and the messages shape ('same as OpenAI') are left implicit.

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: 'OpenAI-compatible chat completions on Meta Llama 3.1 8B, fast general chat.' It also hints at its generic role by noting you can 'pass model to use any model listed at /v1/models,' but it never names the many sibling chat_completions tools it overlaps with, so differentiation is only partial.

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?

'fast general chat' and the note that model can point at any /v1/models entry imply when this endpoint is appropriate, and setup (base URL, x402 payment) is explained. However, with dozens of sibling model-specific chat tools, no explicit routing guidance ('use this for X, use qwen_chat_completions for Y') is given.

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