Skip to main content
Glama

roma__CreateLiveDataApiScriptV2

Create backend API scripts for a ROMA instance to define data or function API logic using instance, API, and project IDs.

Instructions

[ROMA] 在某个实例中创建后端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": {
      "instance_id": "<instance_id>",
      "ld_api_id": "<ld_api_id>",
      "project_id": "<project_id>"
    },
    "name": "roma__CreateLiveDataApiScriptV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptsNoAPI脚本信息列表
api_typeNoAPI类型
ld_api_idYes后端API的编号
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.5/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 discloses almost nothing: it does not say whether creation is idempotent, whether it overwrites existing scripts, what permissions are needed, or how api_type=data versus function changes behavior. The only hint ('在某个实例中') repeats a required parameter rather than adding operational context.

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 single bracketed sentence is front-loaded and free of filler, but for a five-parameter mutation with a nested scripts array it is under-specified rather than truly concise. Nothing is wasted, but nothing beyond the minimum is delivered.

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?

Given a create operation with a nested object array, a conditional required field (ds_id when api_type=data), no annotations and no output schema, the description should explain side effects and constraints. It supplies only a restatement of the title, leaving the agent to reconstruct intent 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 the required instance_id, ld_api_id, project_id, api_type and the nested scripts fields are all documented in the schema itself. The description adds no meaning about how the scripts array is applied or how api_type governs which script fields matter, so baseline 3 applies.

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

Purpose3/5

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

The description pairs a specific verb with an object ('在某个实例中创建后端API脚本'), so the broad action is understandable. However, it never explains what a '后端API脚本' is relative to the sibling create tool roma__CreateLiveDataApiV2, nor how the script payload relates to the API being created, leaving an agent unable to distinguish the two without opening the schema.

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 statements (e.g. that the target ld_api_id must already exist), and no mention of alternatives such as CreateLiveDataApiV2 or UpdateLiveDataApiV2. The agent must infer that this tool attaches scripts to an existing backend API purely from the required ld_api_id.

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