Skip to main content
Glama

run

Execute a prompt on an automatically selected low-latency model and return the response. Optionally restrict to free models, a provider, or a quality tier.

Instructions

Run a prompt on the fastest available model and return the response.

Use when the user wants to execute a prompt. Picks the fastest responding model automatically (with optional fallback). Set free_only=True when the user asks for a free model only.

Args: prompt: The user message to send system_prompt: Optional system prompt (e.g. "You are a Python expert") model_id: Specific model to use (skips scanning). Use list_models() to browse. provider: Limit to a specific provider (nvidia, groq, etc.) min_tier: Minimum quality tier when auto-selecting (default "A") free_only: If true, only consider models marked as free (default false) max_tokens: Max response tokens (default 4096) temperature: Sampling temperature (default 0.0 for deterministic)

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": {
      "prompt": "<prompt>"
    },
    "name": "run"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes
min_tierNoA
model_idNo
providerNo
free_onlyNo
max_tokensNo
temperatureNo
system_promptNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.7.0

TDQS

A3.7/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 burden; it does disclose the notable behavior that a model is auto-selected for speed, that scanning is skipped when model_id is supplied, and that fallback exists. It says nothing about failure behavior, latency/cost implications, or rate limits, which matter for a network-backed generation call.

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?

Front-loaded with the one-sentence purpose before the Args block, and the free_only conditional is surfaced early. The Args list largely mirrors the schema property names, which is mild redundancy, but each entry adds semantics rather than just restating types.

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 eight-parameter tool with no annotations, the description covers the selection logic and all parameters adequately, and an output schema exists so return values need not be described. It still omits tier enumeration for min_tier and any indication of error/fallback outcomes, leaving gaps for a fairly complex tool.

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 description coverage is 0%, so the description must compensate, and it does: all eight parameters are explained, with added meaning such as 'skips scanning' for model_id, 'only consider models marked as free' for free_only, and 'default 0.0 for deterministic' for temperature. The gap is min_tier, where 'A' is given but the available tier values are never enumerated.

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 opening sentence gives a specific verb and resource ('Run a prompt on the fastest available model and return the response') plus the key automatic-selection mechanism. It does not explicitly distinguish itself from siblings like ask, batch_run, or compare, so an agent must infer the boundary.

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?

States a usage trigger ('Use when the user wants to execute a prompt') and adds concrete conditions: set free_only=True when a free model is requested, and use list_models() to browse models for model_id. It lacks explicit when-not guidance or contrast with single-shot alternatives like ask, leaving some routing inference to the agent.

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