Skip to main content
Glama

Get exact payment

get_payment
Read-onlyIdempotent

Calculate the exact monthly payment for one car the buyer has chosen, on the buyer's terms, with the same engine as hunter.lease. Returns the monthly payment before tax, term, miles per year, amount due at signing, money factor and residual (lease) or APR (finance), MSRP, selling price, incentives, tax rate, the service fee when it is on, and a deal_url whose page shows this same figure. Unset inputs default to how the car's page opens: lease, the car's best term, 7,500 miles a year (or the lowest the make offers), Tier 1 · 740+, ZIP 90210 and the amount due at signing shown for this car. Terms are final only for the stated tier, and the bank decides approval.

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": {
      "car_id": "<car_id>"
    },
    "name": "get_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNoBuyer California ZIP, sets the tax rate. Default 90210.
langNoLanguage of the page behind deal_url. Default en.
modeNoDeal type. Default lease.
car_idYesThe id of the car, as given in the id field of a car search result. A car that is no longer listed returns the error car_not_available.
first_evNoLease of an electric car by a buyer who has never owned one. Ask the buyer, do not assume.
credit_tierNoBuyer credit tier by score: t1 = Tier 1 · 740+, t2 = Tier 2 · 720-739, t3 = Tier 3 · 680-719, t4 = Tier 4 · 660-679, t5 = Tier 5 · 620-659, t6 = Tier 6 · <620. Payments are calculated for every tier in this list, so pass the buyer's own tier. If omitted, the calculation uses t1. A payment is final only for the tier you name, and the bank decides approval.
term_monthsNoLease: 24, 27, 30, 33, 36, 39, 42, 45, 48. Finance: 24, 36, 48, 60, 72, 84. Default is the best term for this car.
miles_per_yearNoLease miles per year. Default 7,500, or the lowest the make offers.
due_at_signing_usdNoAmount due at signing in dollars. Default is the amount shown on the site for this car.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / car_id / description
      Previous value: -"The id of a car returned by find_cars. A car that is no longer listed returns the error car_not_available."New value: +"The id of the car, as given in the id field of a car search result. A car that is no longer listed returns the error car_not_available."
    • changedInput schema / properties / credit_tier / description
      Previous value: -"Buyer credit tier by score: t1 = Tier 1 · 740+, t2 = Tier 2 · 720-739, t3 = Tier 3 · 680-719, t4 = Tier 4 · 660-679, t5 = Tier 5 · 620-659, t6 = Tier 6 · <620. Default t1. Terms are final only for the stated tier."New value: +"Buyer credit tier by score: t1 = Tier 1 · 740+, t2 = Tier 2 · 720-739, t3 = Tier 3 · 680-719, t4 = Tier 4 · 660-679, t5 = Tier 5 · 620-659, t6 = Tier 6 · <620. Payments are calculated for every tier in this list, so pass the buyer's own tier. If omitted, the calculation uses t1. A payment is final only for the tier you name, and the bank decides approval."
  2. Changed2 schema fields changed
    • changedInput schema / properties / car_id / description
      Previous value: -"The id of a car from find_cars."New value: +"The id of a car returned by find_cars. A car that is no longer listed returns the error car_not_available."
    • changedInput schema / properties / miles_per_year / description
      Previous value: -"Lease miles per year. Default 10000."New value: +"Lease miles per year. Default 7,500, or the lowest the make offers."
  3. 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 readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: the figures are computed with the same engine as hunter.lease, results are pre-tax, a payment is final only for the named credit tier, and bank approval is out of scope — an agent knows these numbers are quote-grade, not guarantees.

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?

The purpose and the leading default posture are front-loaded, and the return-field enumeration earns its space because there is no output schema. It is dense — one very long sentence listing eleven outputs — and would scan better split into purpose, returns, and defaults, but there is no filler.

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?

With nine parameters, four enums and no output schema, the description covers what an agent needs: what is returned, what unset inputs become, and the caveat that terms hold only for the stated tier. The car_not_available failure mode is left to the schema rather than the description, which is a minor omission.

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 every parameter including defaults and enums is already documented, and the description's defaults list (lease, best term, 7,500 miles, Tier 1 · 740+, ZIP 90210) largely restates it. The only added meaning is the consistency note that the calculation matches hunter.lease, 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?

"Calculate the exact monthly payment for one car the buyer has chosen" names a specific verb and resource and scopes it to a single chosen vehicle, which cleanly separates it from find_cars and how_to_buy. The output field list further pins down what the tool produces, so an agent can route to it without opening the schema.

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 phrase "for one car the buyer has chosen" establishes the prerequisite that a car_id already exists, and the defaults sentence tells the agent it can call with only car_id. It does not explicitly say when not to use it or name a sibling, so it falls short of full alternative routing.

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