Skip to content
Eden Engine

Gas Prices for Every Metro Area in a State (Unranked)

omnial/get-metro-prices-by-state

Given a two-letter US state code, returns the state's name and every metro area tracked for it, in the source's listing order (not sorted by price), each with the average Regular, Mid-Grade, Premium and Diesel price per gallon in US dollars for today, yesterday, a week ago, a month ago and a year ago. The response carries no as-of date.

activeper callv1

Price

Up to $0.0137 per call; you pay what the call used

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.

Data source

AAA Gas Prices

Data from AAA Gas Prices.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

Connect once and your AI can find and run this tool, and any other it needs.

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "omnial/get-metro-prices-by-state" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/get-metro-prices-by-state" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/get-metro-prices-by-state", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/get-metro-prices-by-state", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0137
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "state_code"
  ],
  "properties": {
    "state_code": {
      "type": "string",
      "maxLength": 2,
      "minLength": 2,
      "description": "A two-letter US state code."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "The state's full name."
        },
        "metros": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "metro": {
                "type": "string",
                "description": "The metro area's name."
              },
              "prices": {
                "type": "object",
                "properties": {
                  "current": {
                    "type": "object",
                    "properties": {
                      "Diesel": {
                        "type": "number"
                      },
                      "Premium": {
                        "type": "number"
                      },
                      "Regular": {
                        "type": "number"
                      },
                      "Mid-Grade": {
                        "type": "number"
                      }
                    }
                  },
                  "week_ago": {
                    "type": "object",
                    "properties": {
                      "Diesel": {
                        "type": "number"
                      },
                      "Premium": {
                        "type": "number"
                      },
                      "Regular": {
                        "type": "number"
                      },
                      "Mid-Grade": {
                        "type": "number"
                      }
                    }
                  },
                  "year_ago": {
                    "type": "object",
                    "properties": {
                      "Diesel": {
                        "type": "number"
                      },
                      "Premium": {
                        "type": "number"
                      },
                      "Regular": {
                        "type": "number"
                      },
                      "Mid-Grade": {
                        "type": "number"
                      }
                    }
                  },
                  "month_ago": {
                    "type": "object",
                    "properties": {
                      "Diesel": {
                        "type": "number"
                      },
                      "Premium": {
                        "type": "number"
                      },
                      "Regular": {
                        "type": "number"
                      },
                      "Mid-Grade": {
                        "type": "number"
                      }
                    }
                  },
                  "yesterday": {
                    "type": "object",
                    "properties": {
                      "Diesel": {
                        "type": "number"
                      },
                      "Premium": {
                        "type": "number"
                      },
                      "Regular": {
                        "type": "number"
                      },
                      "Mid-Grade": {
                        "type": "number"
                      }
                    }
                  }
                },
                "description": "Average US dollars per gallon by fuel grade at five points in time."
              }
            }
          },
          "description": "One entry per metro area, in the source's listing order."
        }
      }
    },
    "status": {
      "type": "string",
      "description": "'success' on a populated call."
    }
  },
  "description": "The state's metro areas with their prices, as returned after shaping."
}