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://agents.citiviewgroup.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

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description goes well beyond them: streaming support, a hard 2048 output-token cap, per-token pricing with a minimum and maximum per call, the 402-quote semantics, and the fact that 'upto' payers are billed only for tokens actually used. For a metered external call, these cost and limit disclosures are exactly the behavioral context an agent needs before invoking it.

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 purpose and endpoint are front-loaded, which is good, but the pricing is stated twice ('$1.98 per million input and $3 per million output' and again 'Costs $0.0173 USDC per call'), and the 402/'upto' explanation is dense. Some sentences are load-bearing, others repeat.

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?

With no output schema, the description carries the return-value burden and does so by stating the response shape matches OpenAI and that streaming is supported. Combined with cost, token cap, and payment semantics, an agent has enough to call and interpret the tool, though error/permission behavior beyond the 402 flow is unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 20% (just the ignored 'model' field), but the description compensates by asserting OpenAI-identical request/response shape and noting the model field is ignored. It still says nothing about max_tokens (though the 2048 cap hints at it), temperature, or the messages structure, so it only partly closes the coverage gap; 3 is the fair baseline here.

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 names the specific model (Qwen 2.5 Coder 32B) and the intended workload (code generation, review and fixes), which is a concrete verb+resource+scope statement. It distinguishes itself from the many generic chat_completions siblings by being code-focused, but never explicitly names the nearest alternatives such as kimi_code_chat_completions or qwen_chat_completions, so differentiation is inferred rather than stated.

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?

It gives concrete setup guidance (point the OpenAI SDK base URL at the /v1/coder endpoint) and the payment scheme, which implies when to use it. However, there is no explicit when-not guidance and no routing to sibling models, even though the sibling list contains at least one other code-oriented chat tool.

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