Skip to main content
Glama

dataartsstudio__CreateBizMetric

Creates a business metric in DataArts Studio to define measurement goals, formulas, refresh intervals, and ownership for analytics governance.

Instructions

[DATAARTSSTUDIO] 创建业务指标。

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": {
      "biz_catalog_id": "<biz_catalog_id>",
      "definition": "<definition>",
      "destination": "<destination>",
      "expression": "<expression>",
      "interval_type": "<interval_type>",
      "name": "<name>",
      "owner": "<owner>",
      "owner_department": "<owner_department>",
      "project_id": "<project_id>",
      "time_filters": "<time_filters>"
    },
    "name": "dataartsstudio__CreateBizMetric"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo编码,更新时必填,创建时为空,ID字符串。
l1No主题域分组中文名,只读,创建和更新时无需填写。
l2No主题域中文名,只读,创建和更新时无需填写。
l3No业务对象中文名,只读,创建和更新时无需填写。
codeNo指标编码,只读。
guidNo资产同步后的guid,只读。
nameYes指标名称。
unitNo计量单位。
ownerYes指标责任人。
remarkNo备注。
statusNo实体的发布状态,只读,创建和更新时无需填写。
measureNo度量对象。
new_bizNo业务版本管理,只读。
biz_typeNo业务实体类型。
create_byNo创建人,只读。
update_byNo更新人,只读。
biz_metricNo生产环境创建表状态
definitionYes指标定义。
dimensionsNo统计维度。
expressionYes计算公式。
name_aliasNo指标别名。
project_idYes项目ID,获取方法请参见[项目ID和账号ID](projectid_accountid.xml)。
create_timeNo创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。
data_originNo数据来源。
destinationYes设置目的。
update_timeNo更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。
time_filtersYes统计周期(时间限定)。
approval_infoNo审批信息,只读参数。业务对象最近一次的审批信息,包括审批的业务详情、审核人信息、审核时间等。
interval_typeYes刷新频率。DAY
apply_scenarioNo应用场景。
biz_catalog_idYes归属的流程架构的ID,ID字符串。
summary_statusNo生产环境创建表状态
general_filtersNo统计口径和修饰词。
biz_catalog_pathNo归属的流程架构路径,只读。
owner_departmentYes指标管理部门。
technical_metricNo关联技术指标,ID字符串。
self_defined_fieldsNo自定义项
technical_metric_nameNo关联技术指标名称,只读。
technical_metric_typeNo业务实体类型。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.4/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, and it discloses nothing beyond the name. It does not mention that this is a write operation creating a persistent metric, whether creation triggers approval (approval_info/biz_status are present but read-only), what permissions or project scoping are required, whether the metric starts in DRAFT status, or what happens on failure.

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 short sentence contains no waste, but for a 39-parameter mutation tool it is severely under-specified rather than concise. There is no structure, no front-loaded summary of required inputs, and no context that would help the agent size the operation.

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 39 parameters, 10 required fields, nested objects, six enums, no annotations, and no output schema, one sentence is completely inadequate. An agent would need to reverse-engineer the entire creation contract, including the approval and publication model, from the schema alone.

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 one of the 39 parameters, including required fields like biz_catalog_id, definition, expression, interval_type, and time_filters, is already documented in the schema. 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 gives a specific verb and resource ('创建业务指标' / create business metric), which is clearly distinct from DeleteBizMetric, UpdateBizMetric, or ShowBizMetricById by name. It does not, however, differentiate itself from CreateDesignCompoundMetric or explain what kind of metric object this creates, so sibling routing rests entirely on the tool name.

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 versus UpdateBizMetric (which handles the same object with an 'id'), CreateDesignCompoundMetric, or the design-metric creators. No prerequisites are stated, such as needing a valid biz_catalog_id, project_id, or an approval workflow, leaving the agent to infer usage entirely from the 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