Skip to main content
Glama

coc__GetScriptJobBatch

Retrieves details for a script job execution batch and returns a paginated list of instances in that batch, with status filtering and marker-based paging.

Instructions

[COC] 查询:批次详情,分页获取批次中的实例列表。

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": {
      "batch_index": "<batch_index>",
      "execute_uuid": "<execute_uuid>",
      "limit": "<limit>"
    },
    "name": "coc__GetScriptJobBatch"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes分页参数:每页返回记录个数限制
markerNo分页参数:上一页最后一个记录id
statusNo实例执行状态
batch_indexYes批次index
execute_uuidYes脚本工单的执行Id,取自executeJobScript和ListJobScriptOrders返回体中

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses only that results are paginated; it says nothing about read-only safety semantics (only implied by '查询'), permission requirements, error conditions for an invalid batch_index, or what the paging marker returns when exhausted — significant gaps for a five-parameter tool with no annotation coverage.

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 compact sentence with the operation and the pagination trait front-loaded, with no redundant wording. It is only slightly too terse to be fully self-explanatory, but structurally efficient.

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 five parameters, three of them required path values, an enum filter, cursor pagination, no output schema, and no annotations, the description should explain the relationship between the batch path parameters and the status/marker filters. It covers essentially none of this, leaving the definition thin relative to the tool's complexity.

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 all five parameters including limit, marker, status enum, batch_index and execute_uuid are already documented in the schema. The description adds no additional meaning about their interaction, so the baseline 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 names a concrete action and resource — retrieving batch details and paginating the instance list inside a batch — which is more specific than the tool name alone. However, it does not differentiate itself from close siblings such as ListScriptJobBatches (lists batches) or GetScriptJobInfo, leaving the agent to infer that this one drills into a single batch's instances.

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 guidance on when to prefer this over ListScriptJobBatches or GetScriptJobInfo, and no stated prerequisites such as needing an execute_uuid obtained from ExecuteScript. The agent must derive the usage context entirely from the parameter names and the single-word '查询' (query) prefix.

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