Skip to main content
Glama

write_test_run

Record a test plan run by assigning Passed, Failed, Blocked, OnHold, or NotRun status to each test case, with optional comments.

Instructions

Record a run of a test plan, with a result per test case (Passed, Failed, Blocked, OnHold, NotRun).

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": {
      "testPlan": "<testPlan>"
    },
    "name": "write_test_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
resultsNo
testPlanYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.2.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / results / items / properties / testCase / anyOf
      Removed value: -[
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "pattern": "^\\d+$",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / results / items / properties / testCase / type
      Added value: +"number"
    • removedInput schema / properties / testPlan / anyOf
      Removed value: -[
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "pattern": "^\\d+$",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / testPlan / type
      Added value: +"number"
  2. First observedv1.0.1

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. It implies a write but never says whether a new run is created, whether results are appended or replace prior ones, whether re-recording the same plan is allowed, or what permissions/identifiers are required. Only the status vocabulary is disclosed, and that is already in the schema enum.

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

Conciseness5/5

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

A single front-loaded sentence with the action first and the payload detail second; every clause adds information and there is no redundant framing.

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?

For a mutation tool with no annotations, no output schema, and zero documented parameters, the definition is too thin. It omits run identity semantics, replacement/append behavior, error conditions for unknown test cases, and anything about the returned record, which an agent would need to call this safely.

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 0%, so the description must compensate. It clarifies the meaning of the results array (one result per test case) and its status field, but says nothing about the `name` parameter or that `testCase` is a numeric identifier, and never states that results is optional while testPlan is required.

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 gives a specific verb and resource ("Record a run of a test plan") plus the payload shape (a result per test case), which is enough to distinguish it from write_test_cases. It stops short of naming any sibling or stating the contrast 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 when-to-use guidance, no precondition such as the test plan already existing, and no mention of alternatives (e.g. write_test_cases for defining cases vs. recording a run). The agent must infer the role of this tool purely from the name and one sentence.

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