Skip to main content
Glama

drs__ValidateJobName

Validates a DRS task name before creation, checking length, starting letter, allowed characters, and uniqueness to prevent invalid or duplicate names.

Instructions

[DRS] 创建任务时对任务名称进行校验。

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

Input Schema

NameRequiredDescriptionDefault
nameYes- 迁移、同步、灾备、订阅任务名称,名称在4位到50位之间,必须以字母开头,可以包含字母、数字、中划线或下划线,不能包含其他特殊字符,任务名称不能重复。
typeYes任务类型。
project_idYes租户在某一Region下的Project ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing: it does not say whether the call is read-only, what the response looks like on success versus failure (an exception? a boolean?), whether the name-uniqueness check is scoped to project_id, or whether any rate limits apply. The only behavioral signal is the implicit claim that this is a non-mutating check performed at creation time.

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?

A single front-loaded sentence with zero padding, which is structurally clean. Its brevity is achieved by omission rather than by tight writing, so it is concise but thin.

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?

For a three-required-parameter validation tool with no annotations and no output schema, the description should say what a successful versus failed validation yields and how the result should gate job creation. None of that is present, and with no output schema the return behavior is documented nowhere.

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%, and the name property already documents the 4–50 character range, leading-letter rule, allowed characters, and uniqueness constraint, so the schema does the heavy lifting. The description adds no meaning beyond that — it does not explain, for example, how the `type` enum affects validation rules.

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?

The description gives a specific verb+resource ("校验" + "任务名称") and scopes it to job creation, so the agent knows it is a name-availability/format check rather than a mutation. It does not, however, distinguish this from sibling validation tools such as codeartsbuild__CheckJobNameIsExists or the batch-validate tools, leaving the agent to infer which validator applies to 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"创建任务时" implies the trigger point — call this before creating a job — which is useful implied guidance. There is no explicit statement of when not to call it, no mention of what to do with the result (e.g., proceed only if valid), and no named alternative for validating other resource types.

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