Skip to main content
Glama
nbrain-mena-logistics-wasl-dispatch

nbrain-mena-logistics-wasl-dispatch

reconcile_last_mile_cod_manifest

Reconciles a courier’s COD and RTO manifest against remitted cash, then computes merchant net settlement with VAT for accurate last-mile payout reconciliation.

Instructions

Reconcile a courier's Cash-on-Delivery (COD) & Return-to-Origin (RTO) manifest and compute merchant net settlement.

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": {
      "shipments": "<shipments>",
      "courier_remitted_cash": "<courier_remitted_cash>"
    },
    "name": "reconcile_last_mile_cod_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
shipmentsYes
vat_rate_pctNo
courier_remitted_cashYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it says nothing about whether reconciliation persists state, is a pure calculation, or what happens when courier_remitted_cash does not match the shipment-level COD totals. For a financial settlement operation, the absence of any behavior around mismatches, rounding, or side effects is a significant gap.

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 well-formed sentence that front-loads the operation and its output, with no filler or repetition. Its brevity is reasonable structurally, though it edges toward under-specification given the tool's complexity.

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

Completeness2/5

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

The tool takes an untyped array of objects, has no annotations, and has no output schema — yet the description never explains the expected shipment shape or what the returned net settlement contains (line items, totals, mismatch flags). For a computation-heavy financial tool, this leaves too much for the agent to guess.

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

Parameters2/5

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

Schema description coverage is 0% across all three parameters, so the description must compensate and does not. It hints that shipments carry COD and RTO data, but the shipment array's nested object has no defined properties, and vat_rate_pct — likely ambiguous as '18' vs '0.18' — is never mentioned at all.

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

Purpose4/5

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

The description pairs specific verbs ('Reconcile', 'compute') with specific resources ('Cash-on-Delivery (COD) & Return-to-Origin (RTO) manifest', 'merchant net settlement'), and spells out the COD/RTO acronyms. It does not differentiate from any sibling, but the listed siblings operate in unrelated domains (UK TfL licensing, geodesic fares, Saudi telemetry), so no differentiation is meaningfully available.

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?

There is no statement of when to use this tool, when not to, or what prerequisites must hold (e.g. a manifest must already exist, remittance must be recorded). An agent must infer usage entirely from the one-line purpose.

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