Skip to main content
Glama

bowire.assert

Append Newman-style assertions to a step in a stored recording, verifying HTTP/gRPC status or JSON body fields during replay.

Instructions

Append a test assertion onto a step inside an on-disk recording. Targets either ~/.bowire/recordings.json (when recordingId is set) or the supplied recordingPath. The assertion shape matches the Newman-style probe Bowire runs after replay: { path, op, expected }. Supported ops: eq, ne, gt, gte, lt, lte, contains, matches, exists, notexists, type. Use path="status" to assert on the HTTP/gRPC status name; otherwise path is a JSONPath rooted at the response body. Returns the assertion id + the step it was attached to.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opYesOperator: eq, ne, gt, gte, lt, lte, contains, matches, exists, notexists, type.
pathYesAssertion path. Use "status" for the status-name slot, or a JSONPath like "$.users[0].id" for a response field.
expectedYesExpected value. For exists / notexists / type the value semantics are op-specific (type takes a string like "number").
stepIndexYes0-based index of the step inside the recording.
recordingIdNoRecording id to target — looked up inside ~/.bowire/recordings.json. Mutually exclusive with recordingPath.
recordingPathNoPath to a stand-alone recording JSON file to mutate. Mutually exclusive with recordingId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does reasonably well: it discloses this is a mutating append to an on-disk file, names the default file path, and states the return value (assertion id + attached step). It omits whether existing assertions are replaced vs. appended, permission needs, and failure modes for a non-existent recording.

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?

Front-loaded with the core action, then targeting, then the assertion shape and ops, then the return value. Four dense sentences with no filler, though the op enumeration slightly duplicates the schema enum list.

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

Completeness5/5

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

With no output schema, the description supplies the return shape (assertion id + step), covers the assertion object format across two storage modes, and documents all six parameters including target resolution. Nothing an agent needs to invoke correctly is missing.

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 baseline is 3, but the description adds value beyond the schema: the mutual exclusivity of recordingId/recordingPath and the file-resolution behavior for recordingId are not in the schema descriptions. It also reinforces the path='status' special case and op-specific expected semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Append), resource (test assertion), and target (a step inside an on-disk recording), which is unambiguous and distinct from every sibling tool. An agent can identify exactly what this does without opening the schema.

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?

Explains target selection clearly: recordingId resolves against ~/.bowire/recordings.json, otherwise the supplied recordingPath is used, and the two are mutually exclusive. It doesn't name an alternative tool or state exclusions, since no sibling overlaps, but the operational context is explicit.

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