Skip to main content
Glama

omp_run_task

Delegate coding, refactoring, debugging, or verification tasks to a local omp agent in a specified project directory, with read/write access and auto-approved tool calls.

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>",
      "cwd": "<cwd>"
    },
    "name": "omp_run_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYes目标项目目录的绝对路径。
modelNo可选,指定本次任务使用的 omp 模型;不传则使用本机 omp 默认模型。
toolsNo可选,逗号分隔的 omp 内置或扩展工具白名单;不传则使用本机 omp 默认工具集。
promptYes清晰、有边界的任务说明与验收标准。
thinkingNo可选,覆盖本次思考深度。
session_idNo可选,传入上次返回的 session_id 继续同一会话。
timeout_secondsNo超时时间(秒),默认 600。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 substantial work: it discloses that the call blocks until completion, that the delegated agent may read, write, and execute commands, and that tool calls are auto-approved without further confirmation. What it omits is equally relevant behavior — what happens when timeout_seconds elapses (does the task keep running at the omp side?), and whether it can then be stopped via omp_cancel_task.

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 sentences, capabilities and permissions front-loaded, no redundant restatement of the name. The second sentence is an operational mandate about reporting the model name rather than tool-selection information, which is useful but sits slightly outside a pure description.

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

Completeness3/5

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

For a 7-parameter, non-annotated, no-output-schema mutation-capable tool, the description covers the risk profile and the synchronous contract but says nothing about the shape of the returned result beyond the model hint line — no mention of session_id being returned for continuation, of partial output on timeout, or of failure modes.

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 already carries its own explanation, and the baseline of 3 applies. The description adds only a weak hint about the model parameter by pointing at the 'model hint line in the returned result', without explaining precedence, defaults, or how session_id interacts with model selection.

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 ('synchronously delegate') and resource ('run an omp task in the target project directory'), and enumerates the task classes covered: coding, refactoring, debugging, verification. The word 'synchronously' implicitly separates it from omp_start_task, but the description never names that sibling, so an agent must infer the async counterpart on its own.

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?

Usage is implied through the listed task types (coding/refactoring/debugging/verification) and the 'synchronous' framing, but there is no explicit when-to-use versus omp_start_task / omp_task_status / omp_cancel_task, and no guidance on long-running work or when to prefer a background start. The agent must derive routing from names alone.

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