Skip to main content
Glama
nohosa001-pixel

security-gate-x402

logistics_issue_pod_attestation

Verifies terminal discharge, GPS geofence arrival, customs clearance, and environmental telemetry, then issues an EIP-712 ProofOfDelivery signature to unlock freight escrow.

Instructions

Verifies terminal discharge, port GPS geofence arrival (< 500m), customs clearance, and environmental telemetry Merkle root. Issues an EIP-712 'ProofOfDelivery' signature that autonomously unlocks freight/commodity escrow funds on LogisticsPoDEscrow / SecurityGateEscrowRouter.

Input Schema

NameRequiredDescriptionDefault
dealIdYes32-byte hex escrow deal ID
vesselImoYes7-digit IMO vessel number
sensorLogsYesArray of static/hydrostatic/temp environmental telemetry records with GPS
containerIdYesISO 6346 Container Number
destUnlocodeYes5-letter UN/LOCODE (e.g. KRPUS, NLRTM)
blDocumentHashYes32-byte hex hash from logistics_verify_ebl
maxAllowedTempCNoMaximum allowed temperature in Celsius
minAllowedTempCNoMinimum allowed temperature in Celsius (optional)
maxGeofenceMetersNoMaximum allowed arrival geofence distance in meters

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.4

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose the key side effect: it autonomously unlocks freight/commodity escrow funds via an EIP-712 signature. However, it omits critical operational traits such as what happens when any verification fails, whether the signature is idempotent/repeatable, and any authorization requirements for the escrow contracts.

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?

Two dense sentences that front-load the verification scope before the consequence (signature issuance and escrow unlock). No filler, though the jargon density makes it heavier than strictly necessary.

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?

For a complex, high-stakes signing tool with no output schema and no annotations, the description covers purpose and main side effect but leaves out failure semantics, auth requirements, and what the returned signature contains. Given the complexity and the absence of structured safety hints, it is only partially complete.

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 description coverage is 100%, so the schema already documents all nine parameters and the baseline is 3. The description adds only loose linkage (geofence <500m maps to maxGeofenceMeters, telemetry Merkle root maps to sensorLogs) without clarifying formats or edge cases beyond the schema.

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 compound action: verifies four named conditions (terminal discharge, GPS geofence arrival, customs clearance, telemetry Merkle root) and issues an EIP-712 ProofOfDelivery signature. This distinguishes it from siblings like logistics_verify_ebl (verification only) and logistics_audit_telemetry, making the issuing/attestation role unmistakable.

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 description implies this is the terminal step in a POD flow and hints at a prerequisite (blDocumentHash originates from logistics_verify_ebl), but it never explicitly states when to call this versus logistics_verify_ebl or logistics_audit_telemetry. Usage is inferable from context but not spelled out.

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