Skip to main content
Glama

Export a regression test

export_regression
Read-onlyIdempotent

Run policy_check with caller-supplied records (no receipts or required-signature mode) and return it as a CI regression: curbi.regression JSON with each reply's expected verdict and rules, plus a dependency-free node:test file that replays it against the Check API. Expectations come from the checker, never from the caller. Nothing is stored. A pass grants no execution authority.

Input Schema

NameRequiredDescriptionDefault
casesNoUp to 50 replies checked against the same policy. Send reply or cases, not both.
replyNoOne agent reply to check. Send reply or cases, not both.
titleNoTitle for the regression file.
policyYesYour rules. Set at least one of prices, forbid or actions; validate_policy lints a policy before use. Ready-made policies: https://curbi.io/policies/
recordNoWhat actually happened, supplied by the caller and not verified by Curbi. A claimed action passes only when its operation is DONE here.
verifyNoExports use caller records, so only "optional" is accepted.
versionNoRegression format version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the read-only, idempotent, and non-destructive annotations, it discloses that expectations are checker-derived, nothing is stored, and a pass grants no execution authority. It also explains that the generated test subsequently replays the regression against the Check API, clarifying an important runtime behavior.

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?

Four compact sentences front-load the operation and outputs, then efficiently cover expectation provenance, persistence, and authority. Although the opening sentence is dense, every clause contributes useful scope or behavioral information and there is no filler.

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?

Despite the complex nested inputs and absence of an output schema, the description identifies the source operation, supported record mode, both generated artifacts, their CI purpose, and key trust and storage constraints. Together with the fully documented schema, this provides enough context to invoke the tool and interpret its outputs correctly.

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 the schema already documents the inputs comprehensively. The description helpfully relates records and replies to policy_check and checker-derived expectations, but most parameter-specific meaning and constraints still come entirely from the structured schema.

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?

The description states that the tool runs policy_check and exports the result as curbi.regression JSON plus a dependency-free node:test file. This specific CI-export purpose clearly distinguishes it from directly checking a policy with policy_check or using the other siblings.

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?

The CI-regression framing establishes the intended workflow, while "caller-supplied records" and "no receipts or required-signature mode" scope the supported scenario. It does not explicitly say when to use policy_check instead or provide other when-not routing guidance.

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.

Resources