Skip to main content
Glama

samsara_optimize_route

Reorder stops on a route to minimize distance, time, or fuel consumption while preserving stop data.

Instructions

Optimize route stop order to minimize distance/time. This is a value-add feature that reorders stops for efficiency while preserving all stop data and IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
routeIdYesRoute ID to optimize
optimizationGoalNoWhat to optimize fordistance

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0-beta.1

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It discloses that the tool reorders stops for efficiency while preserving data and IDs, hinting at non-destructive behavior. However, it does not state if the tool is read-only or modifies the route in the database, leaving some ambiguity.

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?

Two sentences, both purposeful and front-loaded with key information. No wasted words.

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?

Given the low parameter count and no output schema, the description adequately covers input semantics. However, it lacks details on return value or potential side effects (e.g., does it update the route in the system or just suggest ordering?). For a value-add feature, more context on outcome would improve completeness.

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%, so baseline is 3. The description adds value by clarifying the optimization preserves stop data/IDs, which is relevant to understanding the impact of parameters like optimizationGoal. For 'routeId', the description implies it must be an existing route. For 'optimizationGoal', the description's 'minimize distance/time' aligns with the enum options. This adds moderate context beyond the schema.

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

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool optimizes route stop order to minimize distance/time. The verb 'optimize' is specific enough, and 'route stop order' clarifies the resource. However, it does not distinguish itself from other route-related tools like samsara_get_route or samsara_update_route, which could also relate to route data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions it preserves all stop data and IDs, hinting it is safe to use. However, it provides no explicit guidance on when to use this tool vs alternatives (e.g., manual reordering via samsara_update_route). No context on prerequisites like route must exist or be active.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AutomationSquadOS/mcp-samsara'

If you have feedback or need assistance with the MCP directory API, please join our Discord server