Skip to main content
Glama

drs__BatchUpdateUser

Batch-configures users and roles to migrate for database migration jobs, including password resets, account selection, and privilege synchronization.

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

Input Schema

NameRequiredDescriptionDefault
jobsYes批量更新迁移用户请求列表
project_idYes租户在某一region下的project ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the full burden of disclosure falls on the description. It says the tool 'batch-sets' users and roles, but it never states whether existing selections are overwritten, whether the operation is reversible, what permissions or job state are required, whether it applies to all jobs in the batch or partially succeeds, or that passwords may be written through the payload. These omissions are material for a mutation tool with an unannotated safety profile.

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?

One sentence that front-loads the migration context before the tool's action; there is no filler. It could still be strengthened by a clause on scope or effect, but nothing present is wasted.

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?

The schema is unusually rich and fully described, with no output schema, so the description does not need to explain the return values. Still, for a batch mutation with zero annotations and a deeply nested payload, the description should cover the required job state, the side effects, and the partial-failure behavior; instead it stops at naming the tool's purpose.

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 nested jobs/list/user_roles structure is documented field by field (job_id, is_migrate_user, is_set_password, is_transfer, roles, privileges, and so on). The description adds no meaning beyond that, such as how list and user_roles interact, or when is_sync_object_privilege (PG-specific) should be set. The baseline of 3 is correct when the schema does the heavy lifting.

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 states a specific verb and resource in Chinese: this API '批量设置需要迁移的用户和角色' (batch-sets the users and roles that need migrating), plus the context that users are handled separately during DRS database migration. An agent can tell what the tool does. It does not, however, distinguish it from siblings like BatchSetPolicy, BatchSetObjects or BatchResetPassword, which also configure batch job settings.

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?

Context for use is implied: this tool is used during the database migration flow, when user migration has to be handled separately from other objects. There is no explicit statement of when not to use the tool, nor a pointer to an alternative such as BatchResetPassword or BatchSetObjects when the task is about passwords or objects instead of user and role selection.

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