Skip to main content
Glama

models

Manage agent-model registry entries: list, retrieve, create, update, and promote provider configurations across staging and prod environments.

Instructions

Agent-model registry (agent_models). action: list | get | create (name, provider, model_string, ...) | update (model_id + fields) | promote (model_id, target_env) — clones the model to the sibling env, idempotent on (name, environment).

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": {
      "action": "<action>"
    },
    "name": "models"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
nameNoModel registry name (unique per environment).
actionYesOperation to run: list | get | create | update | promote. The tool description lists what each action needs.
model_idNoagent_models UUID.
providerNoLLM provider id (see runtime.llm_factory.SUPPORTED_PROVIDERS).
is_activeNoWhether the model is selectable.
target_envNopromote: environment to clone the model into.
temperatureNoDefault temperature.
extra_configNoJSON object of provider-specific settings.
model_stringNoProvider model name, e.g. gemini-3-pro.
max_output_tokensNoDefault max output tokens.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose two valuable traits for promote — cloning into the sibling environment and idempotency on (name, environment) — but says nothing about collision behavior on create, whether update overwrites unspecified fields, or permission requirements for prod writes.

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?

Two dense lines: resource identity first, then an action-to-parameter grammar, then the one non-obvious behavioral note. The abbreviated '...' is the only looseness and it is clearly intentional.

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 an 11-parameter, five-action tool with an output schema and full schema coverage, most needs are met, but the description documents inputs for create/update/promote only — get and list requirements (model_id for get, filter behavior for list) are left entirely to inference.

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 exceeds it by binding parameters to actions, so an agent knows model_id is the update/promote key and name/provider/model_string are create fields. It omits which parameters get and list require.

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?

Names the specific resource (agent-model registry, agent_models) and enumerates the five supported verbs with their distinguishing payloads. An agent can tell this is the model registry rather than the profile or agent-type tools, though it never names a sibling explicitly.

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?

Maps each action to the inputs it requires (create takes name/provider/model_string; update takes model_id + fields; promote takes model_id + target_env), which is real per-action selection guidance. It stops short of stating exclusions or prerequisites, e.g. whether a model must exist before promote or when to prefer update over create.

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