Skip to main content
Glama
zackunseasoned

mcp-militarypay

Find Housing Area

find_housing_area
Read-onlyIdempotent

Identify the correct Military Housing Area from a duty station or locality, returning example ZIP codes for BAH lookup. Resolve place names before checking rates to avoid wrong-area results.

Instructions

Find the Military Housing Area for a place, and ZIP codes to query it with.

Search for the duty station, not the member's home: BAH follows the permanent duty station, so a residence in a different housing area does not change the rate.

Use this before get_bah whenever you have a place name rather than a ZIP code, instead of supplying a ZIP from memory: a wrong ZIP resolves to some other real housing area and returns a confident rate for the wrong locality. Each result carries example ZIP codes to pass to get_bah.

Areas are named for localities, so a military installation matches only where the published name happens to include it - "Travis AFB" finds "VALLEJO/TRAVIS AFB, CA", but Redstone Arsenal is inside "HUNTSVILLE, AL". If a base name finds nothing, search the nearest city instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoBAH year. Defaults to the most recent loaded.
limitNoMaximum areas to return.
queryYesA locality name ('San Diego'), an MHA code ('CA038'), or a ZIP code.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Even though annotations already mark the tool as read-only and idempotent, the description adds substantial behavioral context: BAH follows the permanent duty station, a wrong ZIP can resolve to a different real housing area, and locality-based naming means installations may not match directly. These are non-obvious behaviors that affect how an agent interprets results.

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

Conciseness5/5

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

The description is front-loaded with the core purpose, then builds context in compact paragraphs. Every sentence adds practical value, covering when to use it, why wrong ZIPs are dangerous, and how base names can fail to match. It is relatively long but each element is necessary for correct use.

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?

For a lookup tool with subtle locality-matching hazards, the description covers the key contextual points: relationship to get_bah, duty-station rule, ZIP risk, naming caveats, and a fallback search strategy. Combined with 100% schema coverage, rich annotations, and an output schema, nothing essential is missing for correct invocation.

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 the schema fully documents query, year, and limit. The description reinforces the role of query in the BAH workflow and mentions ZIP codes, but it does not add meaningfully new parameter-level semantics beyond what the schema already provides.

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 opening sentence names a specific verb and resource: 'Find the Military Housing Area for a place, and ZIP codes to query it with.' It clearly distinguishes the tool from get_bah, which is a sibling, by positioning this as the lookup step before rate retrieval.

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?

The description explicitly says 'Use this before get_bah whenever you have a place name rather than a ZIP code, instead of supplying a ZIP from memory,' and it explains the risk of a wrong ZIP. It also gives a concrete fallback strategy for base names that don't match published area names, making usage conditions actionable.

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