estimate_vehicle

Pack: carbon-interface · Endpoint: https://gateway.pipeworx.io/carbon-interface/mcp

Estimate CO2 emissions from driving a vehicle. Provide distance and a vehicle model ID (from Carbon Interface). Returns carbon emissions in grams, kg, and metric tons. Example: estimate_vehicle(100, “7268a9b7-17e8-4c8d-acca-57059252afe9”, “mi”).

Parameters

NameTypeRequiredDescription
_apiKeystringyesCarbon Interface API key
distancenumberyesDistance traveled (e.g., 100)
vehicle_model_idstringyesCarbon Interface vehicle model UUID
unitstringnoDistance unit: “mi” or “km” (default: “mi”)

Example call

Arguments

{
  "_apiKey": "your-carbon-interface-api-key",
  "distance": 100,
  "vehicle_model_id": "7268a9b7-17e8-4c8d-acca-57059252afe9",
  "unit": "mi"
}

curl

curl -X POST https://gateway.pipeworx.io/carbon-interface/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"estimate_vehicle","arguments":{"_apiKey":"your-carbon-interface-api-key","distance":100,"vehicle_model_id":"7268a9b7-17e8-4c8d-acca-57059252afe9","unit":"mi"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('estimate_vehicle', {
  "_apiKey": "your-carbon-interface-api-key",
  "distance": 100,
  "vehicle_model_id": "7268a9b7-17e8-4c8d-acca-57059252afe9",
  "unit": "mi"
});

More examples

{
  "_apiKey": "your-carbon-interface-api-key",
  "distance": 50,
  "vehicle_model_id": "7268a9b7-17e8-4c8d-acca-57059252afe9",
  "unit": "km"
}

Response shape

Always returns: distance_value, distance_unit, vehicle_make, vehicle_model, vehicle_year, estimated_at, carbon_g, carbon_kg, carbon_mt, carbon_lb

FieldTypeDescription
distance_valuenumberDistance traveled
distance_unitstringDistance unit (mi or km)
vehicle_makestring | nullVehicle manufacturer
vehicle_modelstring | nullVehicle model name
vehicle_yearnumber | nullVehicle year of manufacture
estimated_atstring | nullISO timestamp of estimate
carbon_gnumber | nullCarbon emissions in grams
carbon_kgnumber | nullCarbon emissions in kilograms
carbon_mtnumber | nullCarbon emissions in metric tons
carbon_lbnumber | nullCarbon emissions in pounds
Full JSON Schema
{
  "type": "object",
  "properties": {
    "distance_value": {
      "type": "number",
      "description": "Distance traveled"
    },
    "distance_unit": {
      "type": "string",
      "description": "Distance unit (mi or km)"
    },
    "vehicle_make": {
      "type": [
        "string",
        "null"
      ],
      "description": "Vehicle manufacturer"
    },
    "vehicle_model": {
      "type": [
        "string",
        "null"
      ],
      "description": "Vehicle model name"
    },
    "vehicle_year": {
      "type": [
        "number",
        "null"
      ],
      "description": "Vehicle year of manufacture"
    },
    "estimated_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO timestamp of estimate"
    },
    "carbon_g": {
      "type": [
        "number",
        "null"
      ],
      "description": "Carbon emissions in grams"
    },
    "carbon_kg": {
      "type": [
        "number",
        "null"
      ],
      "description": "Carbon emissions in kilograms"
    },
    "carbon_mt": {
      "type": [
        "number",
        "null"
      ],
      "description": "Carbon emissions in metric tons"
    },
    "carbon_lb": {
      "type": [
        "number",
        "null"
      ],
      "description": "Carbon emissions in pounds"
    }
  },
  "required": [
    "distance_value",
    "distance_unit",
    "vehicle_make",
    "vehicle_model",
    "vehicle_year",
    "estimated_at",
    "carbon_g",
    "carbon_kg",
    "carbon_mt",
    "carbon_lb"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "carbon-interface": {
      "url": "https://gateway.pipeworx.io/carbon-interface/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026