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.

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": {
      "policy": "<policy>"
    },
    "name": "export_regression"
  }
}

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. Changed1 schema field changed
    • addedInput schema / properties / policy / properties / forbid / items / properties / match
      Added value: +{
      +  "description": "Default \"word\": whole words, plus English endings. \"prefix\" also matches words that start with the phrase, for languages that add endings (\"garanti\" catches \"garantili\"); it can over-match (\"free\" would catch \"freedom\"), so use it per rule.",
      +  "enum": [
      +    "word",
      +    "prefix"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that nothing is stored, that a pass grants no execution authority, that expectations originate from the checker rather than the caller, and exactly what the output artifacts are. These are precisely the non-obvious behavioral facts an agent needs before invoking an export tool, and none of them duplicate the readOnly/idempotent hints.

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?

Four short sentences, front-loaded with the core operation and followed by output shape and safety caveats; almost nothing is wasted. The opening sentence is clause-heavy (parenthetical scope restriction plus two output artifacts), which slightly slows parsing but is dense rather than padded.

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 takes responsibility for describing the return values — the regression JSON with per-reply expected verdicts and rules, plus the generated node:test file — and it explains the trust boundary (expectations from the checker). For a seven-parameter export tool this covers everything an agent needs to call it 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% and the nested policy/record/case properties are documented in detail, so the schema carries the parameter burden. The description adds only one semantic point beyond it — the verify mode is limited to optional because records are caller-supplied — with no detail on cases vs reply exclusivity, title, or version.

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 action (run policy_check over caller-supplied records and package the results as a CI regression) and names both artifacts produced: a curbi.regression JSON file and a node:test replay file. It explicitly contrasts itself with the sibling policy_check by noting the caller-record / no-signature-mode subset, so an agent can tell the two apart without opening either 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?

Implies the selection rule by scoping this tool to caller-supplied records with no receipts or required-signature mode, which tells the agent to reach for policy_check when real receipts or verification are needed. It does not explicitly state exclusions against validate_policy or verify_bundle, so the routing is clear but not exhaustive.

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