Skip to main content
Glama

roma__ExportApiDefinitionsV2

Exports API definitions from a ROMA group as a Swagger-compliant JSON, YAML, or YML file for documentation, migration, or integration.

Instructions

[ROMA] 导出分组下API的定义信息,导出文件内容符合swagger标准规范。

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": {
      "group_id": "<group_id>",
      "instance_id": "<instance_id>",
      "project_id": "<project_id>"
    },
    "name": "roma__ExportApiDefinitionsV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
apisNo导出的API ID列表
typeNo导出的API定义的格式json
defineNo导出API的定义范围:spec
env_idNoAPI分组发布的环境ID
versionNo导出的API定义版本,默认为当前时间
group_idYesAPI分组ID
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior3/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. It does disclose one real behavioral fact beyond the schema: the exported payload conforms to the swagger specification. It says nothing about whether the export is synchronous, whether permissions/instance access are needed, how the resulting file is delivered (raw body, URL, base64, task id), or that export is a non-mutating read.

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

Conciseness4/5

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

Two tight clauses: what it exports, then what the exported file looks like. Front-loaded with the verb and resource, no filler. It is arguably under-specified rather than verbose, which is the opposite conciseness failure.

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?

With 8 parameters, 3 required, no annotations and no output schema, the description must carry more weight than it does. The critical unknown for an export tool — what the caller receives back (download URL, binary, async task, base64) and any size or permission constraints — is absent, as is the relationship between the apis, define, env_id and version parameters.

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?

Schema description coverage is 100%, so baseline is 3, but this description adds zero parameter meaning — nothing about apis vs define interaction (e.g. whether apis narrows the export when define=spec), how env_id or version affects the output, or that project_id/instance_id are path-scoped identifiers. It repeats the schema rather than enriching it, so slightly below baseline.

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?

Description gives a specific verb (导出/export) and resource (分组下API的定义信息 / API definitions under a group), plus the output standard (swagger). It implicitly distinguishes itself from ROMA's live-data export sibling by scoping to plain API definitions, but it never names or contrasts with ExportLiveDataApiDefinitionsV2 or the APIG variants.

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 / when-not-to-use guidance and no alternative named. An agent cannot tell from the text whether this is the right export tool versus roma__ExportLiveDataApiDefinitionsV2, apig__ExportApiDefinitionsV2, or the async variant; only the resource name in the tool name hints at the distinction.

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