Skip to main content
Glama

dataartsstudio__UpdateApi

Modify an existing DataArts Studio API by ID, including its name, path, protocol, authentication, request parameters, backend configuration, and visibility 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": {
      "api_id": "<api_id>",
      "project_id": "<project_id>"
    },
    "name": "dataartsstudio__UpdateApi"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo请求体内容描述,仅注册类API使用。
nameNoapi 名称
pathNoAPI路径。
tagsNo标签。
api_idYesAPI ID。
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

D1.5/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 burden of behavioral disclosure, yet it says nothing about required permissions, whether the update is a full replace or a partial merge, whether unpublished/published APIs are affected, or whether changes are reversible. For a mutation tool with 24 parameters this is a complete gap.

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?

It is short but by under-specification rather than economy; there is no front-loaded statement of what the tool does beyond the name. A single four-word sentence cannot be called well-structured here.

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?

Given a 24-parameter mutation with deeply nested objects, enums, and no output schema or annotations, the description is wholly inadequate for an agent to invoke it correctly; it omits every non-obvious constraint that the schema alone cannot convey.

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 24 parameters and only 71% schema description coverage, the description must compensate, but it adds no meaning beyond the schema. Conditional fields (body only for register-type APIs, groovy_content only for Groovy APIs, datasource_config_list for Groovy) are documented only inside the schema, not in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description '更新API' restates the tool name (UpdateApi) with no added scope: it does not say which API fields can be updated, what the update semantics are, or how it differs from dataartsstudio__CreateApi, dataartsstudio__ShowApi, or the sibling apig__UpdateApi tools. It identifies the verb and resource but is essentially tautological.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: no prerequisites, no mention of when to prefer CreateApi over UpdateApi, and no statement about what kinds of APIs (configuration, script, Groovy, register) this applies to even though the schema enumerates those types.

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