Skip to main content
Glama

Set automation key

set_automation_key
DestructiveIdempotent

Set or clear a test case's automation key: the test id an uploaded automated result must carry to link to this case. Keys are unique per project (trimmed, at most 200 characters, no line breaks or tabs); a key another case holds is refused with AUTOMATION_KEY_TAKEN naming that case. Pass key null or empty to clear it. Requires project, caseId and key.

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": {
      "project": "<project>",
      "caseId": "<caseId>",
      "key": "<key>"
    },
    "name": "set_automation_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe automation key (e.g. the Playwright title path or JUnit classname.name); null or empty clears it.
caseIdYesTest case id.
projectYesProject id the test case belongs to. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted.
releaseFromDeletedCaseNoWhen a deleted case still holds the key, take it from that case (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project / description
      Previous value: -"Project id the test case belongs to. Numeric id from get_projects (same as in the app URL); not the project name."New value: +"Project id the test case belongs to. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses non-obvious behavior: keys are unique per project, whitespace is trimmed, length is capped at 200, line breaks/tabs are rejected, and a collision produces AUTOMATION_KEY_TAKEN naming the offending case. It does not state what happens to a key the same case already holds when a new one is set, nor whether the removed key is recoverable after clearing.

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?

The definition opens with the verb and the concept, then layers constraints, error behavior, and the clearing rule in four tight sentences. Every sentence carries operational information with no filler.

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

Completeness4/5

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

For a destructive, idempotent mutation with full schema coverage, the description covers validation, collision handling, and clearing semantics well. The remaining gap is that no output schema exists and the description never indicates what a successful call returns, so an agent cannot anticipate the response shape.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all four parameters, making 3 the baseline. The description nonetheless adds meaning beyond the schema by stating the per-project uniqueness constraint and the AUTOMATION_KEY_TAKEN failure mode, which no schema field expresses.

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 names a specific verb+resource ("Set or clear a test case's automation key") and defines the concept inline as "the test id an uploaded automated result must carry to link to this case." It does not, however, explicitly contrast itself with the sibling reader get_case_by_automation_key, leaving that routing to the name alone.

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

Usage Guidelines4/5

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

It gives the operative usage rule for clearing ("Pass key null or empty to clear it") and explains the purpose context (linking uploaded automated results). It stops short of explicitly naming alternatives or when-not-to-use conditions, so it is strong but not a full routing statement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.