Skip to main content
Glama

roma__DebugApiV2

Debug an API definition in a specified runtime environment by sending requests with method, path, headers, query parameters, and optional body; requires permission to operate the API.

Instructions

[ROMA] 调试一个API在指定运行环境下的定义,接口调用者需要具有操作该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>",
      "instance_id": "<instance_id>",
      "method": "<method>",
      "mode": "<mode>",
      "path": "<path>",
      "project_id": "<project_id>",
      "scheme": "<scheme>"
    },
    "name": "roma__DebugApiV2"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo请求消息体,最长2097152字节
modeYes调试模式
pathYesAPI的请求路径,需以"/"开头,最大长度1024
queryNo查询参数,每个参数值为字符串数组,每个参数名称有如下约束:
stageNo调试请求指定的运行环境,仅在mode为CONSUMER时有效,未提供时有如下默认值:
api_idYesAPI的编号
domainNoAPI的访问域名,未提供时根据mode的取值使用如下默认值:
headerNo头域参数,每个参数值为字符串数组,每个参数名称有如下约束:
methodYesAPI的请求方法
schemeYesAPI的请求协议
app_keyNo调试请求使用的APP的key
app_secretNo调试请求使用的APP的密钥
project_idYes项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。
instance_idYes实例ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully explain behavior. It usefully discloses the authorization requirement, but it omits the key behavioral facts for a debug tool: whether a live request is actually sent to the endpoint, whether the call has side effects, whether a test history is recorded, and whether the request can destroy data. For a 14-parameter request-execution tool, this is a significant gap.

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?

The description is a single front-loaded sentence with no wasted words and immediately states the resource and the permission condition. However, it is terse for a tool this complex.

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?

The tool has 7 required of 14 parameters, nested header and query objects, an enum, no output schema, and no annotations, yet the description is only one sentence. It does not explain the mode semantics that govern whether stage, domain, or app_key are used, nor what the debug call returns or does to the environment, leaving the agent under-informed for a complex invocation.

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 schema already documents the 14 parameters, including mode, stage, domain defaults, and app_key/app_secret. The description adds no parameter-level meaning beyond this, so the baseline score 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 uses a specific verb (调试/debug) and resource (API definition) and states the scope: the specified runtime environment. It's clear what the tool does, but it doesn't distinguish this tool from its close sibling roma__DebugLiveDataApiV2, which also debugs APIs.

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

Usage Guidelines3/5

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

The description gives context for using the tool: debug an API definition in a given runtime environment, and the caller needs permission to operate that API. It names no alternatives, no exclusions, and no prerequisites beyond the permission note; therefore, the correct tool must be inferred from the name.

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