Skip to content
Eden Engine

Gas Price Change by Metro Area (State Lookup)

omnial/get-price-change-by-metro

Given a two-letter US state code, returns how much gas prices have moved in every metro area of that state, broken out by fuel grade (Regular, Mid-Grade, Premium, Diesel) and by time window (change since yesterday, a week ago, a month ago, and a year ago).

activeper callv2

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-price-change-by-metro" })

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

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/get-price-change-by-metro", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/get-price-change-by-metro", 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",
      "description": "Two-letter US state code (e.g. TX, CA, NY, FL). All 50 states and DC are supported."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "description": "The full state name for the requested state_code, e.g. 'California', 'District of Columbia'."
        },
        "metro_price_changes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "metro": {
                "type": "string",
                "description": "The metro area name, e.g. 'Los Angeles-Long Beach'."
              },
              "changes": {
                "type": "object",
                "properties": {
                  "Diesel": {
                    "type": "object",
                    "properties": {
                      "week_ago_change": {
                        "type": "number"
                      },
                      "year_ago_change": {
                        "type": "number"
                      },
                      "month_ago_change": {
                        "type": "number"
                      },
                      "yesterday_change": {
                        "type": "number"
                      }
                    },
                    "description": "Dollar-amount changes for Diesel; observed with the largest swings of any grade, e.g. a 3.1 year-over-year increase in one San Rafael, CA entry.",
                    "additionalProperties": true
                  },
                  "Premium": {
                    "type": "object",
                    "properties": {
                      "week_ago_change": {
                        "type": "number"
                      },
                      "year_ago_change": {
                        "type": "number"
                      },
                      "month_ago_change": {
                        "type": "number"
                      },
                      "yesterday_change": {
                        "type": "number"
                      }
                    },
                    "description": "Dollar-amount changes for Premium fuel, same shape as Regular.",
                    "additionalProperties": true
                  },
                  "Regular": {
                    "type": "object",
                    "properties": {
                      "week_ago_change": {
                        "type": "number",
                        "description": "Change vs. one week ago, in dollars."
                      },
                      "year_ago_change": {
                        "type": "number",
                        "description": "Change vs. one year ago, in dollars."
                      },
                      "month_ago_change": {
                        "type": "number",
                        "description": "Change vs. one month ago, in dollars."
                      },
                      "yesterday_change": {
                        "type": "number",
                        "description": "Change vs. yesterday's price, in dollars."
                      }
                    },
                    "description": "Dollar-amount changes for Regular grade; a negative value means the price fell, a positive value means it rose.",
                    "additionalProperties": true
                  },
                  "Mid-Grade": {
                    "type": "object",
                    "properties": {
                      "week_ago_change": {
                        "type": "number"
                      },
                      "year_ago_change": {
                        "type": "number"
                      },
                      "month_ago_change": {
                        "type": "number"
                      },
                      "yesterday_change": {
                        "type": "number"
                      }
                    },
                    "description": "Dollar-amount changes for Mid-Grade fuel, same shape as Regular.",
                    "additionalProperties": true
                  }
                },
                "description": "Price change in US dollars per gallon, keyed by fuel grade. All four grades (Regular, Mid-Grade, Premium, Diesel) were present on every metro entry observed.",
                "additionalProperties": true
              }
            },
            "additionalProperties": true
          },
          "description": "One entry per metro area AAA tracks in the requested state -- 30 for California, only 2 for DC ('Washington (DC only)' and 'Washington (Entire Metro Average)') in testing. A small or single-metro state can return very few entries."
        }
      },
      "additionalProperties": true
    },
    "status": {
      "type": "string",
      "description": "'success' on both real calls observed."
    }
  },
  "description": "The metro price-change result.",
  "additionalProperties": true
}