Skip to main content
Glama

dataartsstudio__CreateApi

Creates a new API in Huawei Cloud DataArts Studio with project, path, request, backend, and authentication settings.

Instructions

[DATAARTSSTUDIO] 创建API。

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

Input Schema

NameRequiredDescriptionDefault
bodyNo请求体内容描述,仅注册类API使用。
nameNoapi 名称
pathNoAPI路径。
tagsNo标签。
managerNoAPI审核人。
api_typeNo
log_flagNo是否启用访问日志
protocolNo
auth_typeNo
catalog_idNo目录ID
project_idYes项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。
visibilityNo
descriptionNoapi 描述
publish_typeNo
request_typeNo
request_parasNoAPI请求参数列表。
backend_configNoAPI后端配置。仅注册类API使用
groovy_contentNoGroovy文本,仅Groovy类API使用。
data_mask_parasNo数据脱敏配置。
data_mask_switchNo数据脱敏开关。
retention_periodNo最低保留期限,单位小时。
datasource_configNo
datasource_config_listNo多数据源配置信息,仅Groovy类API使用。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.2/5.0
Behavior1/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 'create'. It does not mention that required fields vary by api_type (register APIs need body/backend_config, Groovy needs groovy_content, configuration needs datasource_config), nor auth requirements, publication state, or the effect of data_mask_switch and visibility.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is short but under-specified rather than concise; it omits everything an agent needs. The '[DATAARTSSTUDIO]' prefix is the only structural signal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 23-parameter, deeply nested creation tool with no annotations and no output schema, a one-line description is wholly inadequate. Nothing about the polymorphic api_type requirements or the create semantics is communicated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 23 parameters and only 70% schema description coverage, the description needs to compensate for the gap but adds zero parameter information. The enum-driven api_type branching and the nested datasource_config/backend_config structures are completely unexplained in the description.

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 clear verb and resource (创建API / create an API), which is unambiguous on its own. However, it offers no differentiation from the many sibling creation tools (apig__CreateApi, roma__CreateApiV2, dataartsstudio__UpdateApi), so an agent cannot tell which one applies from the text alone.

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 prerequisites, and no mention of alternatives or when not to use this tool. The agent must infer everything 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