Skip to main content
Glama

drs__CollectColumns

Collects column metadata for specified database tables in a DRS job, letting you refresh information from the node when needed.

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": {
      "db_object_infos": "<db_object_infos>",
      "job_id": "<job_id>",
      "project_id": "<project_id>"
    },
    "name": "drs__CollectColumns"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes任务ID。
project_idYes租户在某一Region下的Project ID。 获取方法请参见[获取项目ID。](https://support.huaweicloud.com/api-drs/drs_api_0106.html)
db_object_infosYes指定数据库表信息
is_force_refreshNo是否从Node获取最新的列信息

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/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 behavioral burden, yet it discloses nothing about whether this is a synchronous or asynchronous collection, whether it requires the job to exist or be in a particular state, what happens on repeated invocation, or what the is_force_refresh behavior entails. The only hint at behavior lies in the schema's parameter description, not in the tool description.

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 short sentence with no filler or redundancy, front-loaded with the service tag and the action. It is efficient, though brevity here comes at the cost of substance rather than from removing waste.

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 tool with four parameters and no output schema, no annotations, and an unclear async/sync profile, the description is too thin. It does not explain what is returned, whether collection is job-scoped, or how the results relate to the sibling Collect tools, leaving real gaps for an agent.

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 each parameter (job_id, project_id, db_object_infos, is_force_refresh) documented in the schema itself. The description adds no meaning beyond that, so the baseline of 3 applies.

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 names a specific verb and resource: collect column information for specified database tables, prefixed with the [DRS] service tag. It is distinguishable from a generic query because it scopes to columns of given tables. It does not however differentiate itself from closely related siblings such as drs__CollectDbObjectsInfo or drs__CollectDbObjectsAsync, so it stops short of a 5.

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 use this tool, when not to, or which sibling to prefer (for example CollectDbObjectsInfo for table-level metadata vs this tool for column-level metadata). An agent must infer usage entirely from the name and schema.

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