Skip to main content
Glama

optimoroute

Get order completion details

optimoroute_get_completion_details
Read-only

Get the completion status of up to 500 orders (unscheduled, scheduled, on_route, servicing, success, failed, rejected, cancelled) with service start/end times and positions, proof-of-delivery form data (notes, signature and photo URLs, barcodes), the tracking URL and optionally customer feedback. Read-only despite using POST. OptimoRoute: POST /get_completion_details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ordersYesOrders to target, each {"orderNo": "..."} or {"id": "..."}. At most 500.
includeCustomerFeedbackNoInclude the customer's rating and comment, if customer feedback is configured.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Goes beyond the readOnlyHint annotation by warning 'Read-only despite using POST,' which disarms the natural assumption that POST mutates data, and by capping the request at 500 orders. It does not mention rate limits or error behavior, but the key behavioral surprise is disclosed.

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?

A single dense sentence front-loads the core action and packs statuses, payload, and the POST caveat without filler. It is long, but nearly every clause carries distinct information, so little is wasted.

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?

With no output schema, the description carries the return-value burden itself and does so by listing service times, positions, POD form data, tracking URL, and optional feedback. Combined with the 500-order cap, an agent has everything needed to invoke and interpret the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the description need not document the two parameters, and it correctly does not. It loosely mirrors the optional feedback flag ('optionally customer feedback') but adds no syntax or semantics beyond what the schema already states, so baseline 3 applies.

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 ('Get') and resource ('completion status of orders') and enumerates the exact status values returned along with the payload contents (times, positions, POD data, tracking URL). This clearly separates it from siblings like get_orders or get_events that return other data.

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

Usage Guidelines3/5

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

The purpose implies when to call it (after orders have been serviced), but there is no explicit when-to-use guidance or named alternative for related queries. The sibling update_completion_details is the obvious counterpart and is never referenced, so routing between reading and writing completion details is left to inference.

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.