Skip to main content
Glama

Qwen2.5 Coder 32B, code LLM API: pay per call, no API key

ai_model_qwen_coder
Read-only

Chat with Alibaba's Qwen2.5 Coder 32B code model (Apache 2.0) through one paid HTTP call: send a prompt and an optional system prompt, get the answer, up to 1,024 output tokens. Also reachable as model "qwen-coder" on the OpenAI-compatible /v1/chat/completions. No account or provider key. Use when an agent wants this model by name. Example: prompt=Explain HTTP status code 402 in one sentence.. Price $0.005/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "ai_model_qwen_coder"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesUser prompt, up to 8,000 characters
systemNoOptional system prompt, up to 2,000 characters
maxTokensNoMaximum output tokens, 1-1024 (default 400)
temperatureNo0-1.5 (default 0.6)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / maxTokens / maximum
      Previous value: -9007199254740991New value: +1024
    • changedInput schema / properties / maxTokens / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly, openWorld, non-idempotent, non-destructive, and the description reinforces each with reasons: 'Reads or computes only and changes nothing' matches readOnlyHint, and 'each call is charged, so repeats are not free' explains idempotentHint=false. It adds cost ($0.005/call via x402 USDC or card key, failed calls free), no-account/low-friction access, and token ceilings — all behavior beyond the structured fields.

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 model identity and the prompt-in/answer-out contract, then pricing and payment mechanics. It is a dense single paragraph where the example and the inline '. Price $0.005/call' construction read slightly cluttered, but nearly every clause carries decision-relevant information.

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 correctly states what comes back ('get the answer', capped at 1,024 output tokens). For a paid, stateless chat endpoint it covers the remaining agent-critical facts: cost per call, free failures, no key required, and the alternate endpoint. Nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so prompt, system, maxTokens and temperature are already fully documented in the schema itself. The description only echoes the prompt/system pair and the 1,024-token output cap, adding no syntax or usage nuance for temperature or maxTokens that the schema lacks. Baseline 3 applies when the schema carries parameter meaning.

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?

Names the exact model (Qwen2.5 Coder 32B, Alibaba, Apache 2.0) and a concrete verb/resource pair: send a prompt and optional system prompt, get an answer. The line 'Use when an agent wants this model by name' distinguishes it from the other ai_model_* siblings without needing their schemas.

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?

Gives an explicit selection rule ('use when an agent wants this model by name'), a worked example (prompt=Explain HTTP status code 402), and a documented alternative access path via the OpenAI-compatible /v1/chat/completions endpoint. It stops short of naming sibling tools or stating when not to use it, so it is clear context rather than full routing.

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