Skip to main content
Glama

cos_route_model

Read-onlyIdempotent

Recommends optimal model based on historical success rates for complexity, domain, and dimensions. Handles cold-start by returning default recommendations.

Instructions

Recommend optimal model based on historical outcome data.

Cold start (<10 outcomes): returns static default from performance.md. Warm: queries success rates per model for the given complexity+domain.

Args: complexity: Cynefin classification (CLEAR/COMPLICATED/COMPLEX/CHAOTIC). dimensions: Number of problem dimensions (default 1). domain: Task domain (e.g. "BACKEND"). Optional.

Returns: str: JSON with recommended_model, confidence, reason, fallback_model.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainNo
complexityYes
dimensionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already indicate readOnly, idempotent, and non-destructive behavior. The description adds valuable behavioral details: the cold-start fallback to a static default, warm queries over success rates, and the JSON return structure. This goes beyond the annotations without contradicting them.

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?

The description is well-structured with clear sections (intro, Args, Returns) and is front-loaded with the main purpose. Every sentence contributes value: the cold/warm logic, parameter details, and return type are all relevant and concise.

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?

Given the moderate complexity, the description covers the essential aspects: the decision logic, parameter semantics, and return format. It does not mention potential errors or more detailed output field descriptions, but the presence of an output schema and annotations reduces the need. Slightly more detail on the fallback_model and performance.md would elevate completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries full responsibility for parameter meaning. It thoroughly explains each parameter: complexity with Cynefin enum values, dimensions with a default, and domain with an example and optional status. This compensates fully for the missing schema documentation.

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 opens with a specific action ('Recommend optimal model') and resource ('based on historical outcome data'), clearly distinguishing it from sibling tools like cos_route_skill. It further clarifies the cold-start and warm-start logic, making the tool's purpose unambiguous.

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

Usage Guidelines3/5

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

The description provides clear context on when the tool is used (cold vs warm), but it does not state explicit alternatives or when-not-to-use. Given the presence of cos_route_skill and other route-related siblings, naming an alternative would have improved guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kouroshez/coding-os'

If you have feedback or need assistance with the MCP directory API, please join our Discord server