{"uid":"cap_M39vqLWjtzrx43PLQ7m6F","slug":"delx-map-range-dffed0bf","name":"Delx Map Range","description":"Map a value from one range into another. Call when you rescale agent metrics between UI and model ranges. Returns mapped value for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/map-range?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"integer","description":"Input field: value."},"in_max":{"type":"integer","description":"Input field: in max."},"in_min":{"type":"integer","description":"Input field: in min."},"out_max":{"type":"integer","description":"Input field: out max."},"out_min":{"type":"integer","description":"Input field: out min."}}},"responseSchema":{"type":"json","example":{"value":50,"schema":"delx/util-map-range/v1"}},"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_X4ppDZq5UfyrwqzBKicXN","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":"Linearly maps a numeric value from one range into another (e.g. rescaling 0–100 to 0–255)","exampleAgentPrompt":"Map the value 75 from an input range of 0 to 100 into an output range of 0 to 255 — I need the rescaled number.","exampleUseCases":[{"title":"Rescaling agent confidence to star rating","prompt":"I have a confidence score of 82 that runs from 0 to 100, and I want to convert it to a 1-to-5 star rating — can you map it?"},{"title":"Converting sensor reading to display percentage","prompt":"My sensor outputs values between 200 and 800, and today's reading is 450. Can you rescale that to a 0–100 percentage for the dashboard?"},{"title":"Mapping joystick input to motor speed","prompt":"I'm getting joystick input between -32768 and 32767, current value is 16000 — map that into a motor speed range of 0 to 255 for me."}],"resultDescription":"Returns a single mapped numeric value representing the input rescaled linearly into the specified output range, computed locally without network dependencies.","failureModes":["Missing required fields (value, in_min, in_max, out_min, out_max) returns validation error","Division by zero if in_min equals in_max (degenerate input range)","Value outside input range may produce extrapolated result beyond output range","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a simple, fast, stateless linear range remapping with no external dependencies or API keys, especially within an agentic pipeline that already uses x402 micropayments on Base. Ideal for rescaling metrics, sensor readings, or UI values in real time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:41:49.438Z","isFirstParty":false,"canonicalSlug":"delx-map-range-dffed0bf"}