Skip to main content
Glama

Find top lenders in a market

find_lenders_in_market
Read-onlyIdempotent

List the lenders Safe Rate publishes rankings for in a metro area or a whole state, sliced by loan type OR by institution type. Rankings are derived from public federal HMDA filings; placement cannot be purchased. This is a starting list, not a recommendation for a specific borrower.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "location": "<location>"
    },
    "name": "find_lenders_in_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many lenders to return. Defaults to 10, max 25.
locationYesA US state ("Ohio", "OH") for statewide rankings, or a ZIP, city + state or county + state inside a metro area.
loan_typeNoRank lenders for one loan type, across all institution types. Cannot be combined with institution_type. Omit both to get the conventional-loans slice, which the response flags as an assumption.
institution_typeNoRank lenders of one institution type, across all loan types. Cannot be combined with loan_type.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / location / description
      Previous value: -"ZIP, city + state, or county + state inside a US metro area."New value: +"A US state (\"Ohio\", \"OH\") for statewide rankings, or a ZIP, city + state or county + state inside a metro area."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description adds genuinely non-structured context: the rankings come from public federal HMDA filings and 'placement cannot be purchased,' which tells the agent the ordering is data-derived rather than sponsored. It also frames the result as a non-personalized starting list, though it says nothing about result size or coverage gaps for thin markets.

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?

Three sentences, no filler, and the scoping information (what is listed, where, sliced how) is front-loaded ahead of the provenance and disclaimer clauses. Each sentence contributes a distinct fact.

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 four-parameter, read-only lookup with no output schema, the description covers purpose, geography, slicing, and data provenance adequately. The one remaining gap is that it never sketches what a lender entry contains (name, rank, volume), which matters because there is 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%, and the schema already spells out the loan_type/institution_type mutual exclusivity and the conventional-loans default. The description's 'sliced by loan type OR by institution type' and 'metro area or a whole state' echo the schema rather than extend it. Baseline 3 is appropriate when the schema carries the parameter burden.

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 opens with a specific verb and resource ('List the lenders ... publishes rankings for') and bounds the geography ('metro area or a whole state') and the two slicing modes. An agent can immediately tell this returns a ranked lender list rather than a single-lender profile. It stops short of naming a sibling such as research_lender to make the boundary explicit.

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?

Usage is implied by 'This is a starting list, not a recommendation for a specific borrower,' which tells the agent the output is a discovery step. However, it never says when to prefer this over research_lender or get_market_context, nor does it state prerequisites (e.g., that a location is mandatory and must resolve to a US market).

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.