Skip to main content
Glama

omp_ask

Ask the local omp model read-only questions, review code, get architecture advice, or diagnose issues without modifying files; use cwd for code-aware answers and session IDs for follow-ups.

Instructions

以只读模式调用本机 omp 进行问答、代码审查、架构建议或问题诊断(禁止修改文件与执行写入命令)。重要提示:调用本工具及向用户汇报结果时,必须明确告知用户当前通过 omp 调用的模型名称(以返回结果中的模型提示行为准)。

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": "omp_ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo可选的项目工作目录(供 omp 只读检索代码)。
modelNo可选,指定本次调用使用的 omp 模型(如 openai-codex/gpt-6.2-sol 或模糊名称);不传则使用本机 omp 默认模型。
promptYes要向 omp 提问或审查的内容。
thinkingNo可选,覆盖本次思考深度。
session_idNo可选,传入上次返回的 session_id 以继续同一多轮会话。
timeout_secondsNo超时时间(秒),默认 300。
allow_codebase_readNo是否允许 omp 使用只读工具(read/grep/glob)查看 cwd 下的代码(默认 true;设为 false 则纯文本问答)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the key trait: strictly read-only, no file writes or write commands. It also surfaces an operational duty (report the invoked model name from the result) that would be invisible otherwise, though it says nothing about the call being synchronous/long-running or how failures surface.

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?

Two front-loaded sentences: the first defines the operation and its safety constraint, the second adds a required reporting behavior. Dense and largely waste-free, though the model-name reporting instruction is stated verbosely enough to slightly dilute the core purpose.

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?

For a 7-parameter tool with no output schema, the description covers purpose, the read-only contract, and the multi-turn session capability implied by the schema. The remaining gap is that return-contents and blocking behavior are not described, which matters somewhat given there is no output schema.

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 every parameter (cwd, model, prompt, thinking, session_id, timeout_seconds, allow_codebase_read) is already fully documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline of 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?

States a specific verb and resource ('以只读模式调用本机 omp') plus concrete use cases (问答、代码审查、架构建议、问题诊断). It does not name or differentiate itself from siblings such as omp_run_task or omp_start_task, so an agent must infer that this is the synchronous read-only Q&A path rather than the task-based one.

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 clear usage context by enumerating intended scenarios and an explicit prohibition (禁止修改文件与执行写入命令), which tells the agent when the tool is appropriate. It stops short of naming the task-oriented siblings as alternatives or stating when-not to use it in favor of them.

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