Skip to main content
Glama

Check a prompt change before merging

check_change

Check a changed prompt or a different model against a saved test before it is merged. Runs the candidate on the test's cases and compares it with the test's saved answers. Returns a check_id at once; call get_check for the verdict: pass, review or fail. Spends account credit, up to most_it_can_cost_usd.

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": {
      "test_id": "<test_id>"
    },
    "name": "check_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoA name for it, such as the PR.
modelNoThe candidate model id.
promptNoThe candidate prompt text.
systemNoThe candidate system message.
test_idYes
max_spend_usdNoRefuse the check if it could cost more than this.
baseline_modelNoWhich of the test's models to compare with, if it has several.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare it is not read-only and is open-world, but say nothing the agent needs operationally; the description fills that in by disclosing the asynchronous pattern (returns check_id immediately), the three verdict outcomes, and that the call spends account credit with a configurable cost ceiling. That is meaningful behavior beyond structured fields. It omits what happens when the projected cost exceeds the cap and whether a check can be cancelled or re-run.

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?

Three sentences, each doing distinct work: what it does, what it returns and who to call next, and what it costs. The essential precondition ("before it is merged") is front-loaded and there is 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 seven-parameter, asynchronous, credit-spending operation with no output schema, the description supplies the two things an agent most needs: the immediate return value and how to retrieve the actual result and its verdict values. It is slightly thin on the comparison semantics — e.g. what a "review" verdict means versus "fail" — which the agent cannot infer without opening the test itself.

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 description coverage is 86%, so the schema already carries most parameter meaning and the baseline is 3. The description adds real semantics the schema does not — that a check consumes account credit and that the spend parameter acts as a refusal threshold rather than a budget. However, it refers to the cost parameter as "most_it_can_cost_usd" while the schema names it max_spend_usd, a naming mismatch that could momentarily confuse an agent mapping the sentence onto the schema.

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 gives a specific verb and resource — run a changed prompt or model against a saved test, then compare to the test's saved answers — which is clearly a regression check rather than an ad-hoc prompt run. It does not explicitly name a sibling alternative (test_prompt, run_loaded_prompt), so the boundary with those is left implicit, but the merge-gating framing is distinctive enough to guide selection.

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?

"before it is merged" states the condition under which this tool is the right call, and the follow-up instruction ("call get_check for the verdict") routes the agent to the correct next step. It stops short of naming an alternative for a case where no saved test exists, so there are no explicit when-not rules.

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.