66trust / 100
Converters Length Converter
by AgentTools in Documents & files
x402 APIFailing, checked 2 h ago
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.
GET https://agenttools-hub.vercel.app/api/v1/converters/length-converter
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 50.0%
- Response time
- 151 ms typical, 151 ms slowest 5%
- Last check
- 2 h ago: Expected HTTP 402, got 308
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/converters/length-converter?from=km&to=m&value=1"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fconverters%2Flength-converter
const res = await pay("https://agenttools-hub.vercel.app/api/v1/converters/length-converter?from=km&to=m&value=1");
console.log(await res.json());Example input
{
"from": "km",
"to": "m",
"value": 1
}Example output
{
"result": {
"answer": "1,000 m",
"answerLabel": "1 Kilometers = ? Meters",
"details": [
{
"label": "Exact factor",
"value": "1 km = 1000 m"
},
{
"label": "Reverse",
"value": "1 m = 0.001 km"
}
],
"steps": [
"1 km × 1000 = 1,000 m",
"1,000 m ÷ 1 = 1,000 m"
],
"value": 1000
},
"tool": "length-converter"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Expected HTTP 402, got 308 | 308 | 17 ms | - |
| 4 h ago | Expected HTTP 402, got 308 | 308 | 88 ms | - |
| 8 h ago | Passed | 402 | 152 ms | $0.002 |
| 13 h ago | Passed | 402 | 151 ms | $0.002 |