Skip to main content
Glama

Egg Prices and Grocery Prices MCP

Average price of one grocery item

grocery_price
Read-onlyIdempotent

The latest BLS average retail price of one item in the US (or a census region): eggs per dozen, ground beef, steak, chicken, bacon per lb, milk per gallon, coffee, bread, butter, gasoline per gallon, electricity per kWh and more. Returns the month, the price, the change from the month before, a year before and five years before, the record high and when, and the last 13 months. region "all" lists the U.S. average next to the Northeast, Midwest, South and West where BLS publishes them. month gives the price as of a past month.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "item": "<item>"
    },
    "name": "grocery_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesItem: eggs, milk, butter, cheddar_cheese, ice_cream, ground_beef, sirloin_steak, round_steak, chicken_whole, chicken_breast, bacon, pork_chops, bread, flour, rice, cookies, coffee, orange_juice, beer, sugar, bananas, oranges, lemons, tomatoes, potatoes, lettuce, gasoline, gasoline_premium, diesel, electricity, natural_gas. Plain words such as "egg prices", "beef" or "gas" also work.
monthNoA past month (YYYY-MM or "March 2025"). Default the latest published month.
regionNous (default, U.S. city average), northeast, midwest, south, west, or a US state (mapped to its census region; BLS has no state averages). grocery_price also takes "all".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish this as a read-only, idempotent, open-world lookup, so the description's job is to add context — and it does, spelling out the full return payload (month, price, change vs. prior month/year/five years, record high and its date, last 13 months). The only unstated behaviors are upstream caching/rate limits and whether BLS data lags publication, which are minor for a read-only lookup.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and item scope are front-loaded in the first sentence, with return shape and the two optional parameters following in order of importance. It is dense and slightly run-on (one long enumeration plus a compound returns clause), but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return-value burden and discharges it fully — fields, comparison windows, record high, and the 13-month series are all described. Units are attached to items and regional behavior is covered, so an agent can call this correctly without opening anything else.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining the semantics of 'all' in region (U.S. average presented alongside the four census regions) and clarifying that month retrieves a historical reading rather than the latest. It does not restate the item alias handling, but that is already fully documented in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('The latest BLS average retail price of one item') and enumerates the covered items with units (eggs per dozen, milk per gallon, gasoline per gallon, electricity per kWh), so an agent knows exactly what it returns. It never names or distinguishes itself from the siblings grocery_price_history, grocery_price_items, or grocery_prices_compare, which is the only thing keeping it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Guidance is implied through parameter semantics: 'region "all" lists the U.S. average next to the Northeast, Midwest, South and West' and 'month gives the price as of a past month' tell the agent which knobs to turn for which outcome. There is no explicit when-to-use/when-not statement and no routing to the sibling comparison or history tools, which is a real gap given how similar those names are.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.