{"uid":"cap_re4dpuWWV1n_EPQu06d7s","slug":"fracht-leg-split-validator-bedf2476","name":"Fracht Leg-Split Validator","description":"Validates and orders caller-supplied multimodal shipment legs. Missing facts are returned as null and named in unavailable_fields where applicable. Derived values disclose their method; source-backed values disclose source, time window and age. ","url":"https://fracht.halowerk.com/v1/leg-split","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"legs":{"type":"array","items":{"type":"object","required":["sequence","from","to","mode","distance_km"],"properties":{"to":{"type":"string","maxLength":512,"minLength":1,"description":""},"from":{"type":"string","maxLength":512,"minLength":1,"description":""},"mode":{"type":"string","maxLength":512,"minLength":1,"description":""},"sequence":{"type":"integer","maximum":1000,"minimum":1,"description":""},"distance_km":{"type":"number","maximum":1000000000000,"minimum":0,"description":""}},"additionalProperties":false},"maxItems":100,"minItems":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j2_a2MbvLVfAAW-TYpx6F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and orders a sequence of multimodal shipment legs, returning derived metadata with sourcing disclosures and flagging any missing fields as null.","exampleAgentPrompt":"Can you validate and order these 3 shipment legs for me: leg 1 from Shanghai (CN) to Singapore (SG) by sea at 2100 km, leg 2 from Singapore (SG) to Frankfurt (DE) by air at 9900 km, and leg 3 from Frankfurt (DE) to Munich (DE) by road at 310 km? Flag any missing or unavailable fields.","exampleUseCases":[{"title":"Multimodal export route validation","prompt":"I have a 3-leg export shipment: leg 1 from Los Angeles to Honolulu by sea at 3740 km, leg 2 from Honolulu to Tokyo by air at 6200 km, and leg 3 from Tokyo to Osaka by rail at 510 km. Can you validate and order these legs and tell me if anything is missing?"},{"title":"Freight broker leg completeness check","prompt":"Before I submit this shipment plan, can you check if these legs are valid and correctly sequenced? Leg 1 Hamburg to Rotterdam by road 300 km, leg 2 Rotterdam to New York by sea 6200 km. Flag any fields that can't be verified."},{"title":"Cross-border logistics audit","prompt":"I need to audit this cross-border shipment route: leg 1 from Shenzhen to Hong Kong by road at 50 km, leg 2 from Hong Kong to Dubai by air at 6800 km, leg 3 from Dubai to Riyadh by road at 970 km. Can you validate the leg sequence and tell me which values are derived vs source-backed?"}],"resultDescription":"Returns a validated and ordered array of shipment legs with derived values annotated with their derivation method, source-backed values annotated with source, time window, and age, and any missing or unresolvable fields listed as null with their names included in an unavailable_fields array.","failureModes":["Missing required leg fields (sequence, from, to, mode, distance_km) cause validation rejection","Sequence numbers out of range (below 1 or above 1000) trigger schema errors","Distance values exceeding maximum threshold are rejected","Legs array with more than 100 items is rejected","Malformed or ambiguous location strings may result in null-valued fields","Duplicate or non-contiguous sequence numbers may cause ordering errors"],"whenToPreferThis":"Choose this endpoint when you have a pre-specified list of multimodal shipment legs and need to validate their completeness, order, and field availability before downstream processing. It is ideal for freight brokers, logistics agents, or supply chain tools that need structured validation with transparent provenance (derived vs source-backed). Prefer this over general routing or distance-calculation endpoints when the legs are already defined and the goal is verification and gap-detection rather than route planning.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:52:57.598Z","isFirstParty":false}