Skip to main content
Glama

roma__CreateDatasourceInfo

Creates a ROMA Connect data source for an application by defining its type, name, connection details, and instance/project context.

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": {
      "app_id": "<app_id>",
      "content": "<content>",
      "datasource_name": "<datasource_name>",
      "datasource_type": "<datasource_type>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "roma__CreateDatasourceInfo"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYes数据源所属应用ID
contentYes数据源详细信息
project_idYes项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。
descriptionNo数据源描述
instance_idYes实例ID
datasource_nameYes数据源名称,数据源名称不能包含&、<、>、"、'、(、) ,长度为1~255字符
datasource_typeYes数据源类型

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/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 beyond the verb. It does not say what permissions are required, whether datasource_name must be unique, whether the call is idempotent on repeat, or what happens when conflicting credentials are supplied. Only the bare fact that this is a write/create operation is conveyed.

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?

The text is a single front-loaded noun phrase with zero filler, but it is under-specified rather than concise in a useful way; the '[ROMA]' tag consumes a third of the content without adding meaning. There is no wasted sentence, but there is also very little substance.

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?

This is a complex 7-parameter mutation with a deeply nested content object whose required sub-fields vary by datasource_type across 35 enum values, and there are no annotations or output schema to compensate. The critical fact that content fields are conditional on the chosen datasource_type is left entirely implicit, making the description inadequate for the tool's complexity even given the rich schema.

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 content object documents dozens of type-specific fields in detail, so the schema itself does the parameter work. The description adds nothing on top of it, which fits the baseline of 3 for high-coverage schemas.

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 (创建/数据源), so an agent immediately knows this creates a data source record in ROMA. It does not differentiate from siblings such as roma__UpdateDatasourceInfo or roma__DeleteDatasourceInfoById, but the create semantics are unambiguous.

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 when-to-use guidance, no prerequisite information (e.g. that a valid instance_id/project_id must already exist), and no mention of the related update/delete/test siblings. The agent must infer all routing decisions from the name alone.

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