Skip to main content
Glama

get_aggregate_stats

Get aggregate mortgage lending statistics for a geographic area.

Returns summary statistics including total applications, originations,
denials, and loan amounts. Useful for understanding overall lending
activity in a state or county.

Args:
    state: Two-letter US state abbreviation (e.g. 'CA', 'TX').
    county_fips: Five-digit county FIPS code (e.g. '06037' for LA County).
    year: Data year (e.g. 2022). Defaults to 2022 if not specified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNo
stateNo
county_fipsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A3.6/5.0
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It states that the tool returns summary statistics, but it does not clarify important behaviors such as whether state and county_fips are mutually exclusive, how invalid inputs are handled, or what data source is used. The lack of detail beyond the immediate return format leaves the agent uncertain about edge cases and constraints.

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 efficiently structured: a one-line summary, a sentence on return values, and a compact args list. Every sentence provides necessary information without redundancy or fluff. The front-loaded summary immediately orients the agent.

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

Completeness3/5

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

The description explains the purpose, return values, and parameter formats, which is decent for a retrieval tool. However, it lacks guidance on how state and county_fips interact (e.g., are they alternatives, or can both be provided?), and it does not mention any usage limitations. Since an output schema exists, return structure is covered, but the missing parameter relationship is a notable gap.

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 description coverage is 0%, leaving the description to carry the full burden. The description provides meaningful parameter details: state is 'Two-letter US state abbreviation (e.g. 'CA', 'TX')', county_fips is 'Five-digit county FIPS code (e.g. '06037' for LA County)', and year has a default. This adds clear format and example information, though it does not explain parameter dependencies or whether at least one is required.

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 clearly states the tool's function: 'Get aggregate mortgage lending statistics for a geographic area.' It specifies the resource (aggregate stats) and the verb (get), and mentions returns such as applications, originations, denials, and loan amounts. It does not explicitly differentiate from sibling tools like get_denial_reasons or get_lending_by_race, but the 'aggregate' scope provides implicit distinction.

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?

The description gives a clear use case: 'Useful for understanding overall lending activity in a state or county.' This indicates when to use the tool but does not provide exclusions or references to alternatives like the sibling tools. No explicit when-not-to-use guidance is given, so it falls short of a 5.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: get_aggregate_stats provides summary statistics, get_denial_reasons focuses on denial breakdowns, get_lending_by_race analyzes racial disparities, and get_mortgage_data returns detailed loan-level records. The descriptions clearly differentiate their specific analytical functions within the HMDA domain.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with 'get_' prefix followed by descriptive nouns (aggregate_stats, denial_reasons, lending_by_race, mortgage_data). The naming convention is perfectly uniform throughout the toolset, making them predictable and easy to understand.

Tool Count4/5

Four tools is reasonable for a mortgage data analysis server, covering key analytical perspectives (aggregate statistics, denial analysis, racial disparities, and detailed data). However, the scope feels slightly thin - additional tools for filtering by lender, property type, or income brackets could enhance completeness without being excessive.

Completeness4/5

The toolset covers the core analytical needs for HMDA data exploration with different granularities and perspectives. Minor gaps exist: there's no tool specifically for lender-level analysis, no ability to compare multiple geographies simultaneously, and no specialized tools for time-series analysis across years. However, agents can work around these limitations using the existing tools effectively.

Resources