Skip to main content
Glama

coder chat completions

coder_chat_completions
Read-only

OpenAI-compatible chat completions on Qwen 2.5 Coder 32B for code generation, review and fixes. Set your OpenAI SDK base URL to https://agentrxi.com/v1/coder and pay per token with x402 instead of an API key: $1.98 per million input and $3 per million output tokens, minimum $0.002 a call, at most $0.0173. 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. Costs $0.0173 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoIgnored; always qwen2.5-coder-32b
streamNo
messagesYes
max_tokensNo
temperatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint/openWorldHint; the description adds substantial behavioral context the annotations do not: per-token pricing, a $0.002 minimum and $0.0173 maximum per call, 'upto' payers billed only for tokens used, streaming support, and a 2048 output-token cap. It is marred only by the trailing flat 'Costs $0.0173 USDC per call' which reads as a per-call price rather than a ceiling and is mildly inconsistent with the earlier min/max statement.

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 what the tool is and the model, followed by integration and cost details. Dense and mostly waste-free, though the pricing sentences repeat the cost figure and could be tightened.

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 still tells the agent the response shape matches OpenAI, that streaming is supported, and the output-token ceiling. Payment, endpoint, and model behavior are all covered, so nothing blocking a correct invocation is missing.

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 only 20%, so the description must carry weight, and it does: it explains that `model` is ignored and locked to qwen2.5-coder-32b, that `stream` is honored (streaming supported), and that `max_tokens` is capped at 2048. `messages`/`temperature` semantics are left to OpenAI-shape familiarity, hence not a 5.

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?

States a specific verb+resource (OpenAI-compatible chat completions) plus the exact backing model (Qwen 2.5 Coder 32B) and the intended work (code generation, review, fixes). This differentiates it from the many generic chat_completions/qwen_chat_completions siblings without needing to open any schema.

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?

Gives operational setup guidance (point the OpenAI SDK base URL at the /coder endpoint, pay via x402) but never states when to pick this over the sibling chat_completions, qwen_chat_completions, or kimi_code_chat_completions. Usage is only implied by the 'code generation' framing.

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