Skip to main content
Glama

gate_model_change

Check a model change before it ships: a fine-tune, a weight edit, a merge, or switching to a different model. The current model (base) and the changed one (candidate) answer the same audit messages with the bot's instructions, plus a fixed set of everyday-skill prompts (facts, arithmetic, formats, other languages, refusals, coherence). The gate fails if the candidate is measurably worse on any rule or skill, and returns the replies that got worse. Each side is {"model": id} (with key_id for a connected key), {"ref": "handle/model"} for a model hosted on Weightship, or {"replies": {message_id: text}} for a model you ran yourself (get the messages with get_gate_messages).

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": {
      "base": "<base>",
      "candidate": "<candidate>"
    },
    "name": "gate_model_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYesThe model in use now.
promptNoOr the bot's system prompt, to make a new audit for the gate.
skillsNoAlso check everyday skills (default true).
audit_idNoAn existing audit whose messages to use.
candidateYesThe changed model.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true) by disclosing the evaluation procedure — both models answer the same audit messages plus a fixed skill set (facts, arithmetic, formats, languages, refusals, coherence) — and the failure criterion ('measurably worse on any rule or skill') and return payload ('the replies that got worse'). It does not say whether the call blocks until the gate finishes or must be polled via get_gate_result, nor anything about cost or latency of running two models, which is a material omission for a tool that fans out model calls.

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 purpose in the first clause, then procedure, then failure condition, then input shapes — a sensible ordering. The final sentence packing three object shapes into one run-on sentence is dense but every element is load-bearing, so there is little true waste.

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 5-parameter tool with nested objects and no output schema, it covers purpose, evaluation method, pass/fail semantics, and the return value. The remaining gap is operational: whether the gate is synchronous or requires a follow-up get_gate_result poll, which an agent needs in order to invoke 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%, but the nested base/candidate objects have no properties defined, so the description's three accepted shapes ({model, key_id}, {ref: handle/model}, {replies: {...}}) carry real weight the schema does not. It also implicitly explains audit_id (via get_gate_messages) and prompt, but says nothing about how skills=false changes the gate or how audit_id interacts with base/candidate, leaving the combination semantics underspecified.

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 and resource ('Check a model change before it ships') and enumerates the change types it covers: fine-tune, weight edit, merge, or model switch. An agent can tell immediately that this is a pre-ship regression gate comparing base vs candidate, which is distinct from siblings like get_gate_messages or test_prompt_rules.

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?

Gives a clear trigger condition ('before it ships') and explicitly routes to get_gate_messages when the agent needs the audit messages for the replies form. It does not contrast with test_prompt_rules, get_rulebench_report, or retest_prompt, so an agent choosing between several evaluation tools still has to infer the boundary.

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