Skip to main content
Glama
Apidog MCP Server

Apidog MCP Server

by ivanherula

create_test_case

Create a new API test case for a specific endpoint using apiDetailId and responseId, with steps, expected results, priority, and tags.

Instructions

Create a new test case. Requires apiDetailId (from list_endpoints) and responseId.

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": {
      "apiDetailId": "<apiDetailId>",
      "name": "<name>",
      "path": "<path>"
    },
    "name": "create_test_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesTest case name
pathYesAPI path (e.g. /v2/users/{userId})
typeNoTest case type
stepsNoTest steps
statusNoStatus
tagIdsNoTag IDs to assign
priorityNoPriority (e.g. P0, P1, P2, P3)
categoryIdNoCategory ID
responseIdNoThe response definition ID (must be a string — Apidog internal API requires string type)
apiDetailIdYesThe API endpoint ID
descriptionNoDescription
preconditionNoPrecondition text
expectedResultNoOverall expected result

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.1/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 behavioral burden and discloses almost nothing: no statement about what a duplicate test case does, whether tagIds/categoryId must reference existing records, or what the caller gets back. Worse, it says responseId is required while the schema lists only apiDetailId, name, and path as required, so the description actively misleads on a creation prerequisite.

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 short sentences, front-loaded with the operation and followed by the key dependency. It is tight and readable, though the second sentence spends its space on an inaccurate required-field claim rather than on information an agent cannot already get from the schema.

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?

This is a 13-parameter mutation tool with no annotations and no output schema, so the description should be doing much more work than two sentences. It leaves the nested steps array, tag assignment, and the response/return shape entirely unexplained, and misstates which parameters are mandatory.

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 all 13 parameters are already documented in the schema and the baseline is 3. The description adds a little by naming the origin of apiDetailId via list_endpoints, but it covers only 2 of 13 fields and omits meaningful semantics for priority, status, type, and steps.

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?

States a specific verb and resource ("Create a new test case"), so an agent immediately knows the operation. It does not distinguish itself from the sibling bulk_create_test_cases, so a caller must infer the singular-vs-batch split rather than being told.

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 one concrete prerequisite chain by pointing at list_endpoints as the source of apiDetailId, which is real routing help. It offers no guidance on when to prefer this over bulk_create_test_cases, nor any prerequisite about tags/categories needing to exist first.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.