Skip to main content
Glama

What can I afford

what_can_i_afford
Read-onlyIdempotent

Works out a car budget from the monthly payment someone is comfortable with: the most that can be financed, the highest out-the-door price after the trade-in tax credit, that ceiling as dealers quote it (before the credit), and the vehicle price it leaves after the state's tax and typical fees. With a fair price from research, it also gives an opening offer and a walk line. Use it before shopping, when the starting point is a payment rather than a price. Numbers only; nothing is stored.

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": {
      "max_payment": "<max_payment>",
      "apr": "<apr>",
      "term_months": "<term_months>",
      "state": "<state>"
    },
    "name": "what_can_i_afford"
  }
}

Input Schema

NameRequiredDescriptionDefault
aprYesLoan APR in percent (6.49 means 6.49%); a pre-approval rate if they have one
cityNoCity or county in the state's rate table (23 states; state_rules says which), like Pittsburgh or Allegheny County: sets the combined rate from the state's own rate file. Where a city is in several counties (Chicago, Milwaukee), give county too. A place name only, never an address or ZIP
downNoCash down payment
stateYesTwo-letter state code (DC included), like PA
countyNoCounty from the state's list (Pennsylvania, Nevada, Wisconsin; state_rules lists them), like Allegheny County: sets the combined rate. A county name only, never an address or ZIP
doc_feeNoExpected doc fee; leave out to assume the state's cap, or a typical $450 where there is none
invoiceNoDealer invoice, for a new car, if known
tax_rateNoCombined sales tax rate as a decimal (0.08 for 8%); leave out to use the state's rate
conditionNoNew or used: a state's tax can differ by conditionnew
title_regNoExpected title and registration
fair_priceNoA fair vehicle price from research, before tax and fees
max_paymentYesThe highest monthly payment the person is comfortable with
term_monthsYesLoan term in months
trade_offerNoBest written trade-in offer, if any
trade_payoffNoWhat is still owed on the trade-in

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / condition / description
      Added value: +"New or used: a state's tax can differ by condition"
  2. First observed

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, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds that it is 'Numbers only; nothing is stored,' confirming statelessness. It also discloses that fair_price unlocks extra outputs (opening offer and walk line), which is real behavioral insight beyond the annotations.

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?

Three sentences, front-loaded with the core computation and the usage trigger last; no filler. The first sentence is long and packs four distinct derived values, which is dense but each clause earns its place by naming a different output.

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 15-parameter tool with no output schema, the description does the necessary work of describing what comes back (four ceilings plus optional offer/walk line) and that nothing persists. Minor gap: it doesn't explain behavior when city/county are omitted or how state defaults are resolved, though the schema covers that.

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 coverage is 100%, so every one of the 15 parameters is already documented in-schema, including the city/county rate-table nuances and state fallbacks. The description adds no parameter-level detail beyond noting that a fair price from research enables the opening offer and walk line, so 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 ('works out a car budget from the monthly payment') and enumerates the exact outputs: financeable amount, out-the-door ceiling, dealer-quoted ceiling before the trade credit, and post-tax vehicle price. It implicitly distinguishes itself from price-first siblings like out_the_door and loan_payment by framing the direction of the calculation.

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 explicit timing and a selection condition: 'Use it before shopping, when the starting point is a payment rather than a price.' That tells the agent when this tool beats the price-driven alternatives, though it doesn't name out_the_door or loan_payment explicitly as the alternatives it displaces.

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.

Resources