Skip to main content
Glama

modo_use_instance

Claims a Modo instance for the current chat and returns the token needed on later Modo calls, with an option to take over an instance already in use.

Instructions

Claim a Modo instance for this chat and get the token to pass as 'instance' on every further Modo call. Without pid/port it takes a free instance (Modo's main one first). An instance another chat uses is refused unless take_over=true -- ask the user before taking it over, the other chat may be in the middle of work. Give your current token as instance to switch: its claim is released.

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": "modo_use_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
portNo
instanceNoThis chat's Modo instance token (modo-xxxxxx) from modo_use_instance or modo_launch_instance. Pass it on every call once you have one; leave empty only while a single chat works with Modo.
take_overNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations only say this is not read-only, not destructive, and closed-world, so the description carries most of the behavioral load and does disclose the important traits: claims can be refused for instances in use, take_over overrides that at risk to another chat, and switching releases the prior claim. However, it does not state what happens on failure (error vs. fallback) despite an output schema existing, leaving some state-mutation behavior implicit.

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?

Three tight sentences, each carrying distinct information: purpose and return value come first, then default targeting, then the takeover warning and switch behavior. No filler or restatement of the name.

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 four-optional-parameter claim tool with a defined output schema, this covers purpose, defaults, safety around takeover, and switching. What is missing is lifecycle guidance for the no-instance case and error handling, which matters because this tool gates every other Modo call.

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 only 25%, but the description compensates by explaining the semantics of pid/port (targeting a specific instance, with free-instance fallback and Modo's main instance preferred), take_over (an override requiring user consent), and instance (a claimed token that also enables switching). It never explicitly defines what pid and port address individually, which is the remaining shortfall.

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?

States a specific verb ('Claim'), resource ('a Modo instance for this chat'), and outcome ('get the token to pass as instance on every further Modo call'). The agent can tell this is a claim/bind operation, not a launch or list operation, though siblings like modo_launch_instance are never named or contrasted.

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?

Gives clear when-to-use context: call this to obtain the token used on all further calls, omit pid/port to take any free instance, and pass the current token to switch. It also sets a consent gate before take_over. It does not say what to do when no instance exists at all (presumably modo_launch_instance), which is the one gap.

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