Skip to main content
Glama

Connect to my adapter

use_adapter
Idempotent

Switch the current session between a real OBD-II adapter and the built-in mock by passing a serial: or tcp: connection string, without editing settings or restarting the server.

Instructions

Switch this session to a real adapter, or back to mock, without editing settings or restarting. Use the connection value from find_adapter (serial:...) or a WiFi address (tcp:192.168.0.10:35000). The adapter is checked first; if it does not answer, the current connection is kept. Only the adapter is contacted, not the vehicle. The change lasts until the server restarts; to keep it, the user sets Adapter connection in the Claude Desktop extension settings (or OBD2MCP_CONNECTION). Clearing codes on a real vehicle stays disabled. Ask the user before switching.

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": {
      "connection": "<connection>"
    },
    "name": "use_adapter"
  }
}

Input Schema

NameRequiredDescriptionDefault
baudNoSerial baud rate, only if find_adapter reported one other than 38400
connectionYesserial:<port>, tcp:<host>:<port>, or mock

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (openWorldHint, idempotent, non-destructive) it discloses genuinely useful behavior: the adapter is probed first and the current connection is retained on failure, only the adapter is contacted and not the vehicle, and the change is session-scoped until server restart. It also states the persistence path (extension settings or OBD2MCP_CONNECTION) and a safety constraint (clearing codes on a real vehicle stays disabled).

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 critical action is front-loaded, followed by value formats, failure behavior, persistence, and safety caveats in a logical order. Every sentence carries information, though the persistence and settings sentences could be merged for tighter flow.

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

Completeness5/5

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

For a two-parameter, non-read-only session mutation with no output schema, the description covers fallback behavior, durability of the change, the safety constraint, and the user-consent requirement. An agent has everything needed to call it correctly and to warn the user about non-persistence.

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, but the description adds value by showing literal value formats (serial:..., tcp:192.168.0.10:35000, mock) and by pointing at find_adapter as the source of the connection string. The baud parameter is left entirely to the schema, which is acceptable given its description there.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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: switch this session's connection to a real adapter or back to mock. It also distinguishes itself from the discovery sibling by telling the agent to take the connection value from find_adapter rather than discovering it here.

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?

It gives concrete conditions for use (use the value from find_adapter, or a WiFi address) and a clear prerequisite ('Ask the user before switching'). It stops short of stating when not to use it, e.g. when the current connection is already correct, but the routing context is otherwise clear.

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