Skip to main content
Glama
adyoi
by adyoi

detect_model

Identify the active model by resolving it from environment variables, configuration files, or command-line arguments.

Instructions

Detect the model in use from env/config/arg.

Input Schema

NameRequiredDescriptionDefault
modelNo
project_rootNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • addedInput schema / properties / project_root / maxLength
      Added value: +4096
  2. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, yet it says nothing about precedence between env, config, and arg, what happens when no model is detected, or whether the call is read-only and side-effect free. The mention of resolution sources is the only behavioral hint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence with no wasted words, but it is terse to the point of under-specification rather than dense with useful information. The most important detail, the precedence order, is compressed into an ambiguous slash-list.

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

Completeness2/5

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

With no annotations and no output schema, the description should explain what is returned (e.g., the detected model name, or a fallback) and how detection failure is reported, but it does none of this. For a detection tool whose whole value is the resolution logic, this is a notable gap.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, but 'env/config/arg' only loosely maps to the 'model' parameter and leaves 'project_root' completely unexplained (presumably the location of the config to inspect). Neither parameter's format, defaults, or interaction is clarified.

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 states a specific verb and resource ('Detect the model in use') and adds the resolution sources ('env/config/arg'), so an agent knows what the tool returns conceptually. However, it does not distinguish itself from siblings like get_model_profile, set_model, or model_decision, which all concern model configuration.

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?

There is no guidance on when to call this instead of get_model_profile or model_decision, and no preconditions or exclusions are stated. The agent must infer usage entirely from the tool name.

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