Skip to main content
Glama

Municipal Bid Index & Siting API

Compute State Civil Material Price Percentiles

get_material_price_benchmarks
Read-onlyIdempotent

Compute aggregated unit-price distributions (min, P25, median, P75, P90, mean, sample_size, and agency count in USD) grouped by US state and canonical engineering unit. Use this tool for quick estimating baselines and regional cost comparisons; for underlying contractor line items, bidder identities, or PDF proof scans use search_unit_price_bids instead, or call get_free_sample for keyless testing. Requires a Bearer p4013_live_... header and either material_family or keyword q (combinable via AND); optional state and unit parameters filter which (state_code, unit) groups are returned while excluding lump-sum (LS) items from unit-rate math. Consumes 1 benchmark query from your monthly benchmark allowance per call against nightly-updated public-works tabulations.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_material_price_benchmarks"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoMaterial keyword (e.g. 'asphalt', 'hydrant', 'manhole')
unitNoOptional unit filter (LF, SY, CY, TON, EA)
stateNoOptional 2-letter US state code
material_familyNoNormalized civil material taxonomy identifier (e.g., 'DUCTILE_IRON_PIPE', 'PVC_HDPE_PIPE', 'ASPHALT_PAVING', 'MANHOLE_STRUCTURES', 'CONCRETE_CURB_AND_GUTTER'). Provide either material_family or q.

Output Schema

NameRequiredDescriptionDefault
dataNoGrouped (state_code, unit) benchmark rows containing sample_size, jurisdiction_count, min_unit_price_usd, p25_unit_price_usd, median_unit_price_usd, p75_unit_price_usd, p90_unit_price_usd, avg_unit_price_usd, and latest_bid_date.
metaNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / material_family / description
      Added value: +"Normalized civil material taxonomy identifier (e.g., 'DUCTILE_IRON_PIPE', 'PVC_HDPE_PIPE', 'ASPHALT_PAVING', 'MANHOLE_STRUCTURES', 'CONCRETE_CURB_AND_GUTTER'). Provide either material_family or q."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "State-by-unit statistical unit-price percentile rows and query metadata.",
      +  "properties": {
      +    "data": {
      +      "description": "Grouped (state_code, unit) benchmark rows containing sample_size, jurisdiction_count, min_unit_price_usd, p25_unit_price_usd, median_unit_price_usd, p75_unit_price_usd, p90_unit_price_usd, avg_unit_price_usd, and latest_bid_date.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "meta": {
      +      "additionalProperties": true,
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses a Bearer p4013_live_... auth requirement, that lump-sum (LS) items are excluded from unit-rate math, that data is refreshed nightly, and that each call consumes 1 benchmark query from a monthly allowance. These are material behavioral facts an agent cannot get from structured fields. It stops short of describing result ordering or empty-result behavior, so not a 5.

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?

Content is front-loaded — output shape first, alternatives second, requirements and quota last — and no sentence is filler. The single dense paragraph is slightly run-on, with auth, filters, exclusion rules, and quota packed into one long clause chain, which costs a point on readability.

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?

An output schema exists and the description still names the returned statistics, so return values are unambiguous. Auth, quota cost, freshness cadence, filter semantics, and the lump-sum exclusion are all present, leaving nothing an agent needs in order to invoke this correctly.

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, but the description adds genuine meaning: material_family OR keyword q is required (the schema reports zero required parameters, so this constraint is only conveyed here), the two are combinable via AND, and state/unit restrict which (state_code, unit) groups are returned rather than filtering line items.

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

Purpose5/5

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

The description opens with a specific verb and resource: compute aggregated unit-price distributions, and enumerates the exact statistics returned (min, P25, median, P75, P90, mean, sample_size, agency count) with the grouping keys (US state, canonical engineering unit). It explicitly names what it is not for and points to search_unit_price_bids, so an agent can distinguish it from siblings without reading schemas.

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

Usage Guidelines5/5

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

It states the positive use case (quick estimating baselines, regional cost comparisons) and two explicit alternatives with conditions: search_unit_price_bids for underlying line items, bidder identities, or PDF proof scans, and get_free_sample for keyless testing. Both when-to-use and when-not-to-use are covered.

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.

Resources