Skip to main content
Glama

Torivane Logistics Engine

reconcile_outcome

Idempotent

POST /machine/v1/shipments/{logical_shipment_id}/outcomes; scope outcome:write

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": {
      "idempotency_key": "<idempotency_key>",
      "logical_shipment_id": "<logical_shipment_id>",
      "request": "<request>"
    },
    "name": "reconcile_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes
idempotency_keyYes
receipt_referenceNo
logical_shipment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

D1.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and idempotentHint=true, so the description must add only incremental context — and it does contribute the required 'outcome:write' scope, which is real authorization information not present in the annotations. However, it says nothing about what state is written, whether reconciliation is terminal or repeatable, or what side effects propagate to other systems despite the open-world hint. With annotations carrying the safety profile, a 3 is appropriate, but the mutation's effect remains opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short, but its brevity is under-specification rather than economy — it is a mechanical endpoint stub with no explanatory sentence. There is no structure beyond verb, path and scope, so an agent cannot front-load understanding from it.

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

Completeness1/5

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

This is a write tool with a nested required payload, const-constrained fields, idempotency semantics and no output schema, and the definition supplies none of the context needed to call it correctly. An agent would have to infer every parameter's meaning from the schema alone, with zero guidance on the reconciliation workflow.

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

Parameters1/5

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

Schema description coverage is 0% across four parameters, including a nested request object with required fields and two const values, so the description carries the full burden and fails it. Only logical_shipment_id appears, and only as a URL template placeholder. Nothing explains idempotency_key (length 8–128), receipt_reference, or the request fields like provider_event_ref and qualified_grouping.

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

Purpose2/5

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

The description is a raw route string: 'POST /machine/v1/shipments/{logical_shipment_id}/outcomes; scope outcome:write'. It reveals the HTTP verb and resource path but never states in plain terms what reconciling an outcome means or what effect it has on a shipment. The name 'reconcile_outcome' is essentially restated rather than explained, and no sibling (e.g. reassess_shipment, diagnose_evidence) is distinguished.

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

Usage Guidelines1/5

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

There is no when-to-use, when-not-to-use, or prerequisite guidance. The agent learns nothing about when reconciliation is appropriate versus reassessment or diagnosis, or what must exist beforehand. Only the OAuth scope is given, which is about authorization, not usage context.

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