{
  "x402Version": 2,
  "id": 35406,
  "slug": "35406",
  "resource": "https://agentstoolshub.com/api/v1/converters/length-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.",
  "type": "http",
  "serviceName": "AgentTools",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8a0F2b0a6C82D1c54B16E2e4DEcd18fF0802b0f6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "analytics": {},
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "from": "km",
            "to": "m",
            "value": 1
          },
          "type": "http"
        },
        "output": {
          "example": {
            "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"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "from": {
                    "description": "From",
                    "enum": [
                      "km",
                      "m",
                      "cm",
                      "mm",
                      "um",
                      "nm",
                      "mi",
                      "yd",
                      "ft",
                      "in",
                      "nmi"
                    ],
                    "type": "string"
                  },
                  "to": {
                    "description": "To",
                    "enum": [
                      "km",
                      "m",
                      "cm",
                      "mm",
                      "um",
                      "nm",
                      "mi",
                      "yd",
                      "ft",
                      "in",
                      "nmi"
                    ],
                    "type": "string"
                  },
                  "value": {
                    "description": "Value",
                    "type": "number"
                  }
                },
                "required": [
                  "value",
                  "from",
                  "to"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "converters",
    "general",
    "analytics",
    "bazaar"
  ],
  "sourceHost": "agentstoolshub.com",
  "lastUpdated": "2026-10-11T23:24:20.062Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T23:24:19.94Z"
  },
  "metadata": {
    "serviceName": "AgentTools",
    "extensions": {
      "analytics": {},
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "from": "km",
              "to": "m",
              "value": 1
            },
            "type": "http"
          },
          "output": {
            "example": {
              "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"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "from": {
                      "description": "From",
                      "enum": [
                        "km",
                        "m",
                        "cm",
                        "mm",
                        "um",
                        "nm",
                        "mi",
                        "yd",
                        "ft",
                        "in",
                        "nmi"
                      ],
                      "type": "string"
                    },
                    "to": {
                      "description": "To",
                      "enum": [
                        "km",
                        "m",
                        "cm",
                        "mm",
                        "um",
                        "nm",
                        "mi",
                        "yd",
                        "ft",
                        "in",
                        "nmi"
                      ],
                      "type": "string"
                    },
                    "value": {
                      "description": "Value",
                      "type": "number"
                    }
                  },
                  "required": [
                    "value",
                    "from",
                    "to"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentstoolshub.com",
    "manifest_name": "agentstoolshub.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}