Skip to main content
Glama

workspace__BatchDeleteSubJobs

Deletes Workspace sub-jobs by specified job IDs or by status (SUCCESS or FAILED) within a project, allowing cleanup of completed or failed tasks.

Instructions

[WORKSPACE] 该接口用于删除子任务。

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": {
      "project_id": "<project_id>"
    },
    "name": "workspace__BatchDeleteSubJobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idsNo任务ID列表,只能删除SUCCESS、FAILED两种状态。job_ids和delete_by_status必传一个。
project_idYes项目id。
delete_by_statusNo通过任务状态删除,只能删除以下的两种状态 SUCCESS:成功。 FAILED:失败。job_ids和delete_by_status必传一个。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 burden of behavioral disclosure, and it provides none: it does not state that this is an irreversible destructive operation, note the constraint that only SUCCESS/FAILED tasks can be removed (which the schema mentions but the description does not reinforce), or describe any confirmation/permission requirements. The only behavioral signal is the word 'delete'.

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

Conciseness3/5

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

It is a single short sentence with no padding, so it is concise, but the '[WORKSPACE]' prefix is tag noise and brevity here reflects under-specification rather than disciplined editing. Nothing is front-loaded because there is essentially no content to order.

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?

This is a destructive batch mutation with zero annotations and no output schema, a case where the description must explain risk, eligibility, and side effects. The rich schema partially compensates on parameters, but the description leaves the behavioral dimension entirely uncovered.

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 job_ids, project_id, and delete_by_status all documented including the 'job_ids and delete_by_status, exactly one required' rule and the status restrictions. The description adds no meaning beyond the schema, so the baseline of 3 applies.

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

Purpose3/5

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

The description does state a verb and resource (delete sub-jobs), so it is not empty, but it merely restates the tool name 'BatchDeleteSubJobs' without explaining what a sub-job is or how it differs from siblings such as BatchDeleteAppSubJobs and BatchDeleteImageSubJobs. An agent cannot tell from this text which of the near-identical batch-delete tools targets which resource.

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, no prerequisites, and no mention of alternatives. The description never says when this should be preferred over ListItaSubJobs, RetryJobs, or the app/image sub-job variants, leaving all routing to inference from the name.

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

Deploy Server

Other Tools