Skip to main content
Glama

task_submit

Dispatch a long-running task asynchronously and return a task ID immediately while a background subprocess runs the full seven-gate workflow; accepts 'prod' or a whitelisted task file path.

Instructions

异步派发一件长任务,立取任务号,工位子进程后台跑全链(七步闸口)。 source 取值:'prod'=内建生产件;或任务文件路径——仅允许白名单目录 <JIUSHU_HOME>/tasks/(或 JIUSHU_TASKS_DIR)下的文件(v0.1.3 H-1 修复), 白名单外路径在模块执行前即拒收。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "task_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoprod

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it discloses asynchronous dispatch, immediate task number return, background subprocess execution of the full chain, and rejection of whitelist-external paths before module execution. It omits some operational details such as idempotency, concurrency behavior, or permission requirements, but covers the core mutation and failure boundary.

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?

The description is front-loaded with the core purpose and then details the source parameter constraints. It is dense but efficient; the version-fix parenthetical and seven-step gate reference add minor implementation detail without derailing the main instruction.

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 one-parameter asynchronous submission tool with an output schema, the description is largely complete: it explains the action, source values, path whitelist, rejection behavior, and background execution model. The main gap is guidance on interacting with the resulting task via sibling tools such as task_status.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single optional `source` parameter, so the description must compensate. It fully explains that `source` can be `'prod'` for the built-in production item or a task file path restricted to whitelist directories under `<JIUSHU_HOME>/tasks/` or `JIUSHU_TASKS_DIR`, including the rejection behavior for out-of-whitelist paths.

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?

The description states a specific action and resource: asynchronously submitting a long task, receiving a task number immediately, and running the full chain in a background worker subprocess. This is clearly distinguishable from sibling tools like task_resume and task_status, which imply resuming or checking tasks rather than submitting them.

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?

The description implies this is for long-running asynchronous work and notes source constraints, but it does not explicitly say when to use task_submit versus task_status or task_resume. The usage context is inferable but lacks explicit routing guidance.

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