Skip to main content
Glama

magpie_ask

Sends a prompt to a specified Magpie gateway model and optionally adds local text-file context, with size limits to prevent oversized requests.

Instructions

向 Magpie 网关上的指定模型发送提示词,可选附带本地文本文件内容作为上下文(自动限制单文件与总大小)。

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": {
      "model": "<model>",
      "prompt": "<prompt>"
    },
    "name": "magpie_ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo可选项目工作目录路径,用于将该次调用归入对应的项目分仓面板。
modelYes目标模型或路由 ID(可通过 magpie_list_models 查询)。
effortNo可选推理强度档位(low | medium | high | xhigh | max)。
promptYes发送给目标模型的用户提示词。
role_nameNo可选成员职能显示名(如"标语创意"、"架构顾问"、"文档提炼"),用于看板主标题展示。
thread_idNo可选工作线 ID,若存在则自动将该任务归入对应 thread。
file_pathsNo可选本地文本文件路径列表,安全读取后拼入请求上下文。
max_tokensNo可选最大输出 token 数(正整数)。启用 effort 或调用推理模型时建议不传或设为 >= 2048(显式带 effort 且 < 1024 时服务端将自动放宽至 2048 以避免思考链耗尽导致空回复)。
temperatureNo可选采样温度(通常在 0 到 2 之间)。
system_promptNo可选的系统提示词,用于约束角色、输出格式或评审口径。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one genuinely useful behavior beyond the schema: attached files are automatically capped per file and in total. However, it says nothing about latency, cost, streaming, failure/retry behavior, or what a caller gets back — relevant gaps for a tool that makes a remote model call.

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?

A single front-loaded sentence with no filler; the core action comes first and the optional file-context caveat follows. It is efficient, though the extreme brevity is part of why other dimensions are thin.

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 ten parameters, no annotations, and no output schema, the description should do more. It never indicates what the call returns, whether the invocation is synchronous, or how fields like thread_id, cwd, and role_name affect the request beyond what the schema already says.

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%, with each of the ten parameters documented and the effort enum and max_tokens/effort interaction already spelled out in the schema. The description adds only the file-size capping note and otherwise restates what the schema already provides, so the baseline 3 applies.

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 states a specific verb and resource: send a prompt to a chosen model behind the Magpie gateway, with optional local file context. That is enough for an agent to recognize the tool, but it does not distinguish it from siblings such as magpie_review_files or claude_run, which also dispatch work to models.

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 explicit when-to-use or when-not-to-use guidance, and no alternative is named. The agent must infer from the purpose alone that this is the generic ask-a-model tool rather than the file-review or swarm orchestration paths.

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