Skip to main content
Glama

Set AI lane model

set_ai_lane_model

Choose the model one AI lane runs on (the twin of ankra ai lanes set): lane is one of the lanes get_ai_settings lists (stack READMEs, code review, troubleshooting, deploy analysis, CI/CD generation), model_key a catalog key from list_ai_models or an exact OpenRouter model id. It changes which provider every member's work on that lane is sent to and who pays for it. Needs ai.manage (organisation owners and admins).

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": {
      "lane": "<lane>",
      "model_key": "<model_key>"
    },
    "name": "set_ai_lane_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
laneYesThe lane, as get_ai_settings lists it.
model_keyYesA catalog key from list_ai_models, or an exact OpenRouter model id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say this is not read-only, not idempotent, and not destructive. The description adds real behavioral context beyond them: the change reroutes every member's work on that lane to a different provider and changes who pays for it, and the caller must hold ai.manage as an owner or admin. That org-wide blast radius and auth requirement are exactly what an agent needs before mutating.

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?

The core action and its scope are front-loaded in the first clause, and the remaining sentences each carry distinct information (valid lane source, valid key source, blast radius, permission). It is a single dense sentence chain with mild repetition of the schema's parameter wording, but little genuine 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 two-parameter mutation with an output schema absent and annotations only covering safety flags, the description covers the action, valid inputs, permission gate, and organizational impact. It does not say whether the change takes effect immediately or how to revert it via clear_ai_lane_model, which is a minor remaining gap.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks by spelling out example lane values (stack READMEs, code review, troubleshooting, deploy analysis, CI/CD generation) in a schema with no enums. The model_key explanation largely repeats the schema wording, which keeps this from a 5.

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 a specific verb and resource: 'Choose the model one AI lane runs on', plus the CLI twin `ankra ai lanes set`. It distinguishes the tool from related siblings by naming get_ai_settings as the lane source and list_ai_models as the model source, so an agent understands the exact scope without opening a 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?

It gives concrete context for when and how to use the tool: the lane must come from get_ai_settings and the model_key from list_ai_models or an exact OpenRouter id, and it states the required ai.manage permission. It stops short of explicitly naming the counterpart clear_ai_lane_model as the way to unset a lane, so the when-not case is only implied.

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.