Skip to main content
Glama

Set LLM Model

llm_set_model

Set the preferred LLM model for an agent. Search by name or keyword (e.g., 'opus', 'claude-sonnet', 'gpt-4o', 'deepseek', 'llama'). Any model available on OpenRouter can be used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesModel name or keyword to search for
agent_nameYesName of the agent to set model for (e.g., 'clawros', 'rokha-agent', 'moros')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already convey the mutation profile (readOnlyHint=false, destructiveHint=false). The description adds behavioral nuance beyond those flags: the search is keyword-based rather than requiring an exact model ID, and any OpenRouter model is accepted. This helps the agent understand partial matching behavior and the valid value space.

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 with no filler. The primary action is stated first, followed by actionable search examples and a succinct scope statement about OpenRouter. Every sentence earns its place.

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 setter with no output schema, the description covers the essential call semantics: what it does, how to search, and what values are valid. It doesn't describe success/failure return behavior, but that's a minor gap for a simple set operation.

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. The description adds value by giving concrete query examples ('opus', 'claude-sonnet', 'gpt-4o', 'deepseek', 'llama') and clarifying that keyword/partial matching is acceptable, going beyond the schema's generic 'Model name or keyword to search for'.

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 clearly identifies the action ('Set') and resource ('preferred LLM model for an agent'). The verb is specific and unambiguous, and the focus on setting (as opposed to the sibling llm_get_model's getting) distinguishes the tool without needing to open the 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?

The description gives concrete usage context: search by name or keyword, with realistic examples. It establishes when to call this tool (when an agent's model needs to change) but does not explicitly mention the sibling llm_get_model or state when not to use it. Clear context with no exclusions earns a 4.

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.