Skip to main content
Glama

checkOptimization

Check the status and results of a route optimization job. Returns the optimized route when complete. Authenticate with either (otpCode + otpEmail) or mroApiKey.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
otpCodeNo6-digit one-time code (required if mroApiKey is not provided)
jobTokenYesJob token returned from startOptimization
otpEmailNoEmail address (required if mroApiKey is not provided)
mroApiKeyNoMyRouteOnline API key (alternative to otpCode + otpEmail, obtained from MyRouteOnline support)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.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 carries the burden. It explains the return condition ('when complete') and authentication modes, but does not disclose behavior when the job is incomplete, error handling, or polling semantics. This is a moderate gap.

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 concise sentences; the key purpose is front-loaded and every sentence adds relevant information. No filler or redundancy.

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?

With no output schema, the description states the main return value (optimized route) and covers authentication. It is sufficient for a simple polling tool, though more detail on non-complete states or result format 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 coverage is 100%, so the baseline is 3. The description adds value by explicitly defining the authentication alternatives (otpCode+otpEmail vs mroApiKey) and indicating jobToken comes from startOptimization, enriching the schema descriptions.

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 clearly states the tool checks the status and results of a route optimization job, using 'Check' as the verb and specifying the resource. It distinguishes itself from siblings like startOptimization (which starts jobs) and emailResults (which emails results).

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?

The description implies the tool is used after startOptimization by referencing the jobToken returned from that function, and clarifies authentication choices. It does not explicitly say when not to use it or name alternatives, but the context is sufficient.

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