Skip to main content
Glama

What a detour code opens

get_detour
Read-onlyIdempotent

Resolves a DETOUR-XXX code for the connected person: which drive it is on, the event, whether it is worth it (a stop) or dodge it (a way around), the streak and offer lines, and the link that opens it. Codes are per person and per day; a code that has passed says so. Use when the person says or pastes a code. Needs a connected account.

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": {
      "code": "<code>"
    },
    "name": "get_detour"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe code, like DETOUR-KQM.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, non-destructive read. The description adds genuinely non-obvious behavior: codes are scoped per person and per day, an expired code reports that it has passed, and a connected account is required. Return contents are partly described, but with an output schema present the remaining burden is light.

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-loads the resolution outcome, then the per-person/per-day constraint, then the trigger and the account prerequisite. Dense but every clause carries information; the middle clause listing all return fields is slightly list-heavy but still earns its place given no prose elsewhere.

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?

An output schema exists so return values need not be spelled out, and the description still covers auth requirement, code scoping, and expiry behavior. The only real gap is not naming a sibling for browsing versus resolving codes, which is minor for a single-parameter read 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 100% (the code param already documents the DETOUR-KQM format), so baseline is 3. The description adds the meaningful scoping semantics that the schema cannot express: the code is per person and per day and may be expired, which tells the agent what a valid vs. stale input means.

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?

States a specific verb+resource (resolves a DETOUR-XXX code) and then enumerates exactly what resolution yields: drive, event, stop-vs-dodge verdict, streak/offer lines, and the opening link. This makes it clearly distinct from siblings like my_detours (listing) and circle_along_the_way, so an agent can route between them without opening schemas.

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 a concrete trigger: 'Use when the person says or pastes a code.' That is clear usage context. It does not, however, name the alternative to use for browsing codes (my_detours) or state when not to call it, so it stops short of explicit when/when-not routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources