Skip to main content
Glama

model_switch

Switch active AI models by lane and percentage for canary rollouts, promote to full traffic with mandatory human approval, or rollback model and weight versions with audit logging.

Instructions

模型灰度切换——按档位切换活动模型(percent<100 灰度,100 强制人审)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
laneNo档位(缺省 executor)executor
nameNo目标模型名(action=rollback 可省略;rollback-weights 必填)
actionNo动作:switch(默认)/ rollback(模型级)/ rollback-weights(权重版本级——local-path 模型)switch
commentNo备注(灰度依据 / 回滚原因,写入事件留痕)
percentNo灰度比例 1-99;100/缺省 = 晋升全量(强制人审)
target_versionNo权重版本回滚目标(rollback-weights 可选——缺省回拨上一版本)
human_confirmedNo🔴 人工确认(晋升 percent=100 时必填 true——false/缺省挂起等人审)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

The description carries the full burden since no annotations exist. It usefully discloses the grayscale vs full promotion behavior and the mandatory human review at 100, but it does not mention state-change risk, reversibility, the human_confirmed hang condition, or event-trail behavior—all significant for a production model switch.

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?

One compact sentence with the core semantics front-loaded; every phrase carries meaning and nothing is wasted. It is well-sized for the task.

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

Completeness3/5

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

For a 7-parameter mutating tool with no annotations and no output schema, the description plus rich schema covers parameter meaning but leaves out the switch-flow lifecycle (e.g., pending human review, rollback semantics, event logging implied by comment). It is adequate but has clear gaps.

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 all 7 parameters. The description adds a little context by linking percent to grayscale vs full human review, but no supplementary meaning beyond the schema; baseline 3 is appropriate.

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 identifies a specific operation—switching the active model by lane/gear—and states the core percent semantics (grayscale below 100, full promotion with mandatory human review at 100). It does not explicitly contrast with sibling tools like model_register or model_unregister, so it stops short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use guidance or alternatives are given; the agent must infer from the action enum. There is no exclusion such as 'for model registration use model_register', so guidance is effectively absent.

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

Deploy Server

Other Tools