Skip to main content
Glama

host_swap_instructions

Provides machine search paths, API key locations, and OpenAI-compatible base_url/model_id so host agents can switch apps like Cursor or Claude Code to a free model-radar model.

Instructions

Tell the host agent where to search the machine to swap in a model-radar model.

Returns: (1) Where model-radar stores API keys. (2) OpenAI-compatible base_url and model_id for the given model (or a recommended min_tier model). (3) Per-app search locations for Cursor, Claude Code, Open Interpreter, OpenClaw — with paths for Linux, Mac, Windows, and WSL (e.g. ~/.cursor, /mnt/c/Users//.cursor). The host can search these paths and set base_url + model_id + API key so the app uses a free model from model-radar.

Args: model_id: Specific model_id (e.g. llama-3.3-70b-versatile). Omit to get a recommended model at min_tier. provider: Limit to this provider when choosing a recommended model. min_tier: When model_id is omitted, recommend a model at this tier or better (default A).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "host_swap_instructions"
  }
}

Input Schema

NameRequiredDescriptionDefault
min_tierNoA
model_idNo
providerNo

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.6/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, and it does disclose what is returned (key storage locations, base_url/model_id, per-app OS-specific paths). However, it never states that it is purely informational/read-only, does not say whether actual keys are returned or just paths, and gives no note about modifying host configs. Useful context, but gaps remain for an unannotated tool.

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?

The structure is clear and front-loaded: a one-line purpose, then Returns and Args blocks. The per-app/OS enumeration is dense but earns its place by telling the host where to look; wording is largely economical.

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 3-parameter, zero-required instruction tool with an output schema present, the description covers purpose, all three parameters, and the shape of the response. The main remaining gap is routing versus sibling setup tools, which a complete definition would address.

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 0%, so the description must compensate, and it does: model_id gets an example, min_tier gets a default and 'this tier or better' semantics, and provider is scoped to recommended-model selection. It also explains the conditional interaction (min_tier applies only when model_id is omitted), which the bare schema does not convey.

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 opens with a specific verb and resource: 'Tell the host agent where to search the machine to swap in a model-radar model,' and the Returns section clarifies it emits key locations, base_url/model_id, and per-app search paths. This is clearly a read-out/instruction tool, not a model call. It does not differentiate itself from plausible siblings like setup_guide or setup_workflow, so it stops short of a 5.

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?

Usage is only implied: the host agent is told to search the returned paths and set base_url + model_id + API key. The Args section gives conditional guidance ('Omit to get a recommended model at min_tier'), but there is no explicit when-to-use this versus setup_guide/setup_workflow, or when not to use it.

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