Skip to main content
Glama

roma__ListDatasourceColumns

Lists all fields in a specified table within a ROMA data source to inspect schema or map columns for integration tasks.

Instructions

[ROMA] 获取数据源中中某个表中所有字段

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": {
      "datasource_id": "<datasource_id>",
      "instance_id": "<instance_id>",
      "position": "<position>",
      "project_id": "<project_id>"
    },
    "name": "roma__ListDatasourceColumns"
  }
}

Input Schema

NameRequiredDescriptionDefault
db_nameNo数据库名称,只支持MRSHIVE,FIHIVE类型的数据源
positionYes数据源所在任务位置
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
table_nameNo字段所在的表名
instance_idYes实例ID
datasource_idYes数据源ID

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, and it says almost nothing. It does not confirm the operation is read-only, does not mention auth or instance/project scoping requirements, does not disclose pagination or result limits, and does not note that db_name only applies to MRSHIVE/FIHIVE sources. Only the bare 'get' verb implies a read.

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?

It is a single, front-loaded sentence with no filler, which is appropriate for a simple list tool. It loses a point for the duplicated character typo '中中' and because brevity here comes at the cost of substance rather than from efficiency.

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 six parameters, four of them required path/query identifiers, no annotations, and no output schema, the description should explain what the returned column records look like and how db_name and position affect results. It leaves all of that undocumented, so an agent cannot tell what it will receive or what conditions gate a successful call.

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 every parameter, including the SOURCE/TARGET enum for position and the db_name applicability note, is already documented in the schema. The description adds no meaning beyond that, which is the baseline 3 case 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 names a specific verb and resource: '获取...所有字段' (get all columns) for a table within a datasource. That is clearly distinguishable from mutation siblings like CreateDatasourceInfo or DeleteDatasourceInfoById. It does not, however, differentiate itself from the nearest sibling, ListDatasourceTables, so an agent must infer that this tool returns columns rather than tables.

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 explicit when-to-use guidance, no when-not-to-use, and no named alternative. The 'table in a datasource' phrasing hints at the context, but nothing states that a valid datasource_id and table_name must already exist, or when to choose this over ListDatasourceTables or dataartsstudio__ListColumns.

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