{"uid":"cap_Kmn8OoUYKgBBzX2rYYCGX","slug":"agenttools-length-unit-converter-f29d8b47","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://agentstoolshub.com/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.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qTMLF9Qluuf0DYvdaxYVJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 units spanning metric and imperial systems, including nautical miles.","exampleAgentPrompt":"Convert 26.2 miles to kilometers for me.","exampleUseCases":[{"title":"Marathon distance in metric units","prompt":"Can you convert 26.2 miles to kilometers so I can display it on a metric leaderboard?"},{"title":"Engineering drawing unit conversion","prompt":"I need to convert 450 millimeters to inches for a parts spec — can you do that?"},{"title":"Nautical to land distance conversion","prompt":"A ship traveled 120 nautical miles — how many kilometers is that?"}],"resultDescription":"Returns the converted numeric value in the target unit, given the source value and the two unit codes (e.g. km, mi, ft, in, nmi, etc.).","failureModes":["Missing required query parameters (value, from, to) returns a 400 error","Invalid unit codes not in the supported enum return an error","Non-numeric value parameter causes a validation error","Same source and target unit still succeeds but returns the original value unchanged"],"whenToPreferThis":"Use this endpoint when an agent needs a fast, deterministic conversion between any two length units across the full metric and imperial spectrum, including nautical miles. Prefer it over general-purpose math tools when unit validation and a clean numeric result are needed without writing conversion logic manually.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:47:47.380Z","isFirstParty":false,"canonicalSlug":"agenttools-length-unit-converter-f29d8b47"}