Skip to main content
Glama

write_steps

DestructiveIdempotent

Create or replace reusable step classes that package journey actions once, letting tests call them to stay short and avoid duplicate recordings.

Instructions

Create or replace a steps class in package steps: reusable journeys written once and called by any test, so tests stay short and one recording serves them all. It holds steps only, never tests.

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_name": "<file_name>",
      "content": "<content>"
    },
    "name": "write_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes
file_nameYesFor example Orders.java

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; 'Create or replace' corroborates both and tells the agent what is overwritten (an existing steps class). It stops short of describing failure modes or whether the whole file is replaced versus merged, which is the remaining gap beyond annotations.

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 sentences, verb-first and front-loaded, with the constraint ('steps only, never tests') placed last for emphasis. The clause 'so tests stay short and one recording serves them all' is rationale padding but still carries useful intent.

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 two-parameter write tool with no output schema and full annotation coverage, the description covers purpose and file location intent but leaves file path resolution and overwrite granularity unspecified. Adequate, but an agent would need to guess on the mechanics.

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

Parameters2/5

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

Schema coverage is only 50% and the description adds nothing about either parameter — it never clarifies whether file_name is a bare name, a path, or package-relative, nor that content is the Java class source. 'Package steps' hints at Java context but does not document the inputs.

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?

Names a specific verb ('Create or replace'), a specific resource ('a steps class in package steps'), and states the content boundary ('holds steps only, never tests'), which implicitly separates it from write_test. An agent can tell what it produces without opening the schema, though the sibling it contrasts with is never named.

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 rationale ('reusable journeys written once and called by any test') implies when this tool is appropriate rather than a test file, but there is no explicit when-to-use/when-not statement or named alternative. Guidance is inferable, not stated.

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