Skip to main content
Glama

ask-qwen

Send natural-language prompts to Qwen for code generation, review, refactoring, explanation, sandboxed testing, and large-file analysis, with @ references to include files.

Instructions

model selection [-m], sandbox [-s], and changeMode:boolean for providing edits

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": "ask-qwen"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional model to use (e.g., 'qwen-turbo'). If not specified, uses the default model (qwen-plus).
promptYesAnalysis request. Use @ syntax to include files (e.g., '@largefile.js explain what this does') or ask general questions
sandboxNoUse sandbox mode (-s flag) to safely test code changes, execute scripts, or run potentially risky operations in an isolated environment
changeModeNoEnable structured change mode - formats prompts to prevent tool errors and returns structured edit suggestions that Claude can apply directly
chunkIndexNoWhich chunk to return (1-based)
chunkCacheKeyNoOptional cache key for continuation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

C2.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it largely fails. It does hint that changeMode 'returns structured edit suggestions that Claude can apply directly' and that sandbox isolates risky execution, which is useful, but it omits the basic behavior of a prompt-answering tool: that it invokes an external model, likely latency and rate considerations, and how chunked responses behave.

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

Conciseness2/5

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

It is short, but shortness here is under-specification rather than conciseness. The single fragment is not front-loaded with a purpose statement, so the reader gets parameter trivia before any explanation of what the tool is.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, no annotations, no output schema, and undocumented chunking/continuation semantics, the definition should do far more. The only context given is what each flag does, leaving the core question of what ask-qwen accomplishes unanswered.

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 100%, so the bar is baseline 3 even without param explanation in the description. The mention of '-m' and '-s' flags adds a minor CLI mapping, but for prompt, chunkIndex, and chunkCacheKey the description adds nothing beyond the schema, and chunkIndex/chunkCacheKey are never mentioned.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description never states what the tool does. It opens with a bare parameter fragment ('model selection [-m], sandbox [-s], and changeMode:boolean for providing edits') and only the tool name hints that it sends a prompt to Qwen. An agent cannot tell from this text whether it answers questions, runs code, or edits files, nor how it differs from siblings like explain-code or generate-code.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: no statement of which requests belong here versus explain-code, review-code, generate-code, or brainstorm. The nearest thing to guidance is 'sandbox ... to safely test code changes', which implies a use case for one flag rather than for the tool.

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