Skip to main content
Glama

cloudtest__CreateApiTestSuiteByRepoFile

Creates an API test suite by importing a Swagger 2.0 YAML or JSON file from a repository branch, enabling tests to be generated from existing API specs.

Instructions

[CLOUDTEST] 通过导入仓库中的文件生成接口测试套

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": {
      "file_path": "<file_path>",
      "project_id": "<project_id>",
      "repository_branch": "<repository_branch>",
      "repository_id": "<repository_id>",
      "testsuite_name": "<testsuite_name>"
    },
    "name": "cloudtest__CreateApiTestSuiteByRepoFile"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes仓库中yaml或json文件的相对路径,仅支持swagger 2.0版本的yaml和json文件
project_idYes项目ID,固定长度32位字符(字母和数字)。
repository_idYes仓库id
testsuite_nameYes要生成的测试套名称
repository_branchYes仓库分支

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It implies a write/create operation but says nothing about permissions required, what happens if a suite with the same name exists, whether the import is synchronous, or what is returned (no output schema exists either). Only the swagger 2.0 constraint, which is already in the schema, adds any behavioral detail.

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?

A single compact sentence with the action and mechanism front-loaded; nothing is wasted. It is arguably too terse rather than verbose, but structurally it is clean.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-required-parameter creation tool with no annotations and no output schema, the description covers the core action but leaves out side effects, failure modes, and any notion of the response. It is minimally viable but not sufficient for confident invocation in edge cases.

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%, and every parameter (file_path, project_id, repository_id, testsuite_name, repository_branch) is documented in the schema with examples and constraints. The description adds no parameter 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 states a specific verb and resource: generate an API test suite (生成接口测试套) by importing a file from a repository (通过导入仓库中的文件). This clearly distinguishes it from the sibling case-creation tools like CreateTestCase, though it does not name any alternative explicitly.

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 creating a suite manually or via other tools, and no prerequisites are stated (such as the file needing to be committed to the branch first, or whether the suite name must be unique). The agent must infer usage entirely.

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