{"uid":"cap_Hw6WNzNsMpi29zmf_A8dh","slug":"agenttools-length-unit-converter-0cc52f41","name":"AgentTools Length Unit Converter","description":"Convert between metric and imperial length units: kilometers, meters, centimeters, millimeters, micrometers, nanometers, miles, yards, feet, inches and nautical miles. Use this when an agent needs to metric and imperial distance units, instantly.","url":"https://agenttools-hub.vercel.app/api/v1/converters/length-converter?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["value","from","to"],"properties":{"to":{"enum":["km","m","cm","mm","um","nm","mi","yd","ft","in","nmi"],"type":"string","description":"To"},"from":{"enum":["km","m","cm","mm","um","nm","mi","yd","ft","in","nmi"],"type":"string","description":"From"},"value":{"type":"number","description":"Value"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_64buqZ9BH2XT0Zc4G3RUZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a numeric value between any two length or distance units across metric and imperial systems, including nautical miles.","exampleAgentPrompt":"Convert 26.2 miles to kilometers for me.","exampleUseCases":[{"title":"Marathon distance in metric","prompt":"How many kilometers is a 26.2-mile marathon? Convert that for me."},{"title":"Engineering spec unit translation","prompt":"I have a part spec of 15.5 inches — what is that in centimeters?"},{"title":"Nautical navigation distance","prompt":"Convert 200 nautical miles to kilometers so I can compare it with the map distance."}],"resultDescription":"Returns the converted numeric value in the requested target unit, given the source value and unit pair.","failureModes":["Missing required query parameter (value, from, or to) returns an error","Unsupported unit code returns a validation error — only km, m, cm, mm, um, nm, mi, yd, ft, in, nmi are accepted","Non-numeric value input causes a parsing error","Payment failure or missing x402 payment header results in a 402 response"],"whenToPreferThis":"Use this endpoint when an agent needs a fast, reliable, single-call conversion between any two length or distance units across metric and imperial systems, including less common units like micrometers, nanometers, and nautical miles. Prefer this over general-purpose computation tools when precision and support for the full range of length units is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:57.358Z","isFirstParty":false,"canonicalSlug":"agenttools-length-unit-converter-0cc52f41"}