Skip to main content
Glama

Estimate a monthly car payment

calculate_finance_payment
Read-onlyIdempotent

Use this when the shopper asks what a car would cost per month, e.g. vehicle_price: 31250, down_payment: 3000, state: "OK". It needs a real price, from the shopper or a tool. Do not use it for a dealer's out-the-door price (that is quote_out_the_door).

It works out a monthly loan payment from the price, down payment, trade-in value, term and APR. With no apr it shows example payments for excellent, good, fair and poor credit, and rates_note says those APRs are examples. Amounts are in dollars.

With state it adds state-level sales tax, following the state's trade-in credit rule (full credit in 47 of 51 jurisdictions, none in CA, DC, OK and VA), in tax_estimate, taxable_amount, trade_in_credit_policy and trade_in_credit_cap. With no state, or one it does not know, it adds no tax: tax_estimate is 0, unknown_state is true and tax_note says the payment excludes tax. caveat, when set, states the limits of the tax figure. County, city and district tax are not included.

When the price is already an out-the-door figure with tax and fees in, such as a dealer's quote, price_includes_taxes_fees: true adds no tax, and the loan is the price less the down payment and the trade-in.

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": {
      "vehicle_price": "<vehicle_price>"
    },
    "name": "calculate_finance_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
aprNoAnnual interest rate as percentage (e.g., 5.5). If omitted, shows estimates for Excellent/Good/Fair/Poor credit.
stateNoTwo-letter state code for sales tax estimate (e.g., TX, CA). Never guess it: ask the user.
down_paymentNoDown payment in dollars. Omit it to use the dealership's default; pass 0 only when the shopper wants nothing down.
vehicle_priceYesVehicle price in dollars
trade_in_valueNoTrade-in credit in dollars (default 0)
loan_term_monthsNoLoan term in months: 36, 48, 60, 72, or 84. Omit it to use the dealership's default term.
price_includes_taxes_feesNoSet true when vehicle_price is already an all-in / out-the-door (OTD) figure with taxes and fees included (e.g. a dealer OTD quote). No tax is added: the loan amount is vehicle_price - down_payment - trade_in_value. Default false (vehicle_price is a pre-tax selling price).

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
freshnessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnly, idempotent, non-destructive, closed-world); the description goes well beyond that. It discloses fallback behavior with no apr (four credit-tier example payments plus rates_note), the state tax rules including which four jurisdictions grant no trade-in credit, the unknown-state path (tax_estimate 0, unknown_state true, tax_note), the caveat field, the exclusion of county/city/district tax, and the price_includes_taxes_fees shortcut.

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?

It is front-loaded with the usage trigger and the exclusion before any mechanics, which is the right order. The final paragraph largely restates the price_includes_taxes_fees schema description and could be compressed, but given the number of conditional branches the length is mostly earned.

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 7-parameter calculator with an output schema, the description covers the decision to call it, the required inputs, every conditional branch (apr absent, state present/absent/unknown, OTD price), and even names the output fields where behavior is non-obvious. Nothing an agent needs in order to call it correctly is missing.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not carry: the trade-in credit policy per state, the behavior when state is unrecognized, and how the loan amount is computed when price_includes_taxes_fees is true. It does not add syntax detail for term or down payment beyond the schema, which keeps it short of a 5.

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 monthly loan payment from the price, down payment, trade-in value, term and APR'. It also names the scope it is not for ('a dealer's out-the-door price'), pointing at the sibling quote_out_the_door, so an agent can separate the two without opening either schema.

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?

Gives an explicit trigger ('when the shopper asks what a car would cost per month') with a worked example, names a precondition ('It needs a real price, from the shopper or a tool'), and states an explicit exclusion plus the alternative tool to use instead. This covers when to use, when not to, and the substitute.

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