Skip to main content
Glama

Rates By Zip

rates_by_zip
Read-onlyIdempotent

Get US federal per diem rates (government travel lodging and meal allowances) for a location by zip code. Returns the monthly lodging ceiling (per-diem lodging varies by month/season), the flat M&IE (meals & incidental expenses) daily total, and its breakdown into breakfast, lunch, dinner, incidental expenses and the first/last travel day amount (meals_breakdown). Answers "GSA M&IE breakdown for zip 37203", "federal per diem for 80202". Example: rates_by_zip({ zip: "80202" }).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
zipYes5-digit US zip code, e.g. "80202".
yearNoFiscal/rate year, e.g. 2026. Defaults to the current year.
_apiKeyNoOptional, your own api.data.gov / GSA API key for higher limits; omit to use the shared Pipeworx key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — your own api.data.gov / GSA API key for higher limits; omit to use the shared Pipeworx key."New value: +"Optional, your own api.data.gov / GSA API key for higher limits; omit to use the shared Pipeworx key."
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered; the description adds what an agent actually gets back (monthly lodging ceiling, flat M&IE total, meals_breakdown components, first/last travel day amount), which matters because there is no output schema. It notes that lodging varies by month/season, but says nothing about failure modes for invalid or non-US zips, and rate-limit guidance lives only in the schema.

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?

Front-loaded with purpose, then return contents, then example queries — a sensible ordering with little filler. The trailing 'Example: rates_by_zip({ zip: "80202" })' partly duplicates the schema's examples array, which is the only wasted line.

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

Completeness4/5

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

For a low-complexity, read-only three-parameter lookup with full schema coverage and no output schema, the description is nearly sufficient: inputs are trivial and outputs are spelled out. The remaining gap is sibling routing (city-based lookup, dedicated M&IE breakdown) combined with no output schema to fall back on.

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

Parameters3/5

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

Schema description coverage is 100%, so zip, year and _apiKey are already documented, including the current-year default and the shared-key behavior. The description only echoes the zip input via the example call and adds no format or edge-case meaning beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Get US federal per diem rates ... by zip code') and immediately parenthesizes what the data is (government travel lodging and meal allowances). The zip-code scope plus the enumerated return fields separate it from a city-based sibling without needing the schema.

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

Usage Guidelines4/5

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

Gives concrete triggering questions ('GSA M&IE breakdown for zip 37203', 'federal per diem for 80202') and a literal invocation example, which is clear context for when to call it. It never states exclusions or names alternatives (e.g. rates_by_city for city input, or a standalone M&IE tool), so routing is implied rather than explicit.

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.