Skip to main content
Glama

Rates By City

rates_by_city
Read-onlyIdempotent

Get US federal per diem rates (government travel lodging and meal allowances) for a city by name and state. 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 FY2026 M&IE breakdown for Nashville, TN", "federal per diem for Denver, CO", "government hotel rate cap in San Francisco". Example: rates_by_city({ city: "Denver", state: "CO" }).

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": {
      "city": "Denver",
      "state": "CO"
    },
    "name": "rates_by_city"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYesCity name, e.g. "Denver", "San Francisco".
yearNoFiscal/rate year, e.g. 2026. Defaults to the current year.
stateYesTwo-letter state abbreviation, e.g. "CO", "CA".
_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

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds real substance beyond that: the lodging ceiling varies by month/season, M&IE is a flat daily total with a named meals_breakdown, and a first/last travel day amount is included — meaningful for an agent deciding whether the return will contain seasonal granularity.

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?

The core capability and return contents are front-loaded in one dense sentence, followed by query examples and an example call. Slightly redundant to include both example queries and an example invocation, but nothing is bloated or buried.

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?

There is no output schema, so the description must carry return-shape information — and it does, enumerating lodging ceiling, M&IE total, meals_breakdown components, and travel-day amounts. For a single-record lookup with fully covered parameters, the only missing piece is how to handle unknown city/state or how year selection interacts with the seasonal lodging data.

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%, with city, state, year and _apiKey each documented in the schema, so the baseline is 3. The description adds little parameter-level detail beyond restating that the lookup is by city name and state, and it does not explain year behavior (fiscal vs. calendar, defaults) beyond what the schema already says.

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?

States a specific verb and resource: 'Get US federal per diem rates ... for a city by name and state', and parenthetically defines the domain (government travel lodging and meal allowances). The city+state lookup key implicitly separates it from the zip-based sibling rates_by_zip, but no sibling is named explicitly, and the overlap with mie_breakdown is not addressed.

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?

Three natural-language example queries ('GSA FY2026 M&IE breakdown for Nashville, TN', 'federal per diem for Denver, CO') give the agent a useful pattern-match for when this fits. However, there is no explicit when-not guidance and no named alternative for zip-based lookups or for the standalone mie_breakdown tool, which appears to cover overlapping territory.

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.