Skip to main content
Glama

get_purchase_costs

Calculate itemized government-imposed used-vehicle closing costs for Canada and the US, with per-line source URLs and confidence scores.

Instructions

Itemized government-imposed used-vehicle closing costs, unified across Canada and the US via country=CA|US, with per-line sourceUrl + confidence. CA (all 10 provinces + 3 territories): provincial/territorial sales tax (PST/RST/QST/HST or GST-only) + transfer/registration/plate fees + inspection. US (all 50 states + DC): sales/use/excise tax, title, first-year registration, inspection, and dealer doc fee. Costs $0.02 per call. Pays USDC on Base via x402. Compute-first, settle-after: Vindex computes the full answer BEFORE charging, so you are never billed for an error or a below-threshold answer. Requires EVM_PRIVATE_KEY with USDC on Base Mainnet when the API is in live mode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYesAgreed sale price in the country's currency (> 0), e.g. 25000
stateNoUS ONLY (required when country=US): 2-letter state code, one of the 50 states or DC
countryYesCountry selector: CA (Canadian per-jurisdiction rules) or US (per-state rules)
provinceNoCANADA ONLY (required when country=CA): 2-letter province/territory code
trade_inNoUS ONLY — trade-in value in USD (≥ 0, < price). Deducted from the tax base only for a dealer sale in a state granting a FULL trade-in credit
sale_typeYes'private' (private-party sale) or 'dealer'
local_rateNoUS ONLY — exact county/city surtax percentage (0–15). When omitted, the sales-tax line carries a range up to the state's maximum local rate
family_giftNoCANADA ONLY, private sales only — applies the jurisdiction's family/related-individual gift exemption ($0 tax) where one exists
buyer_has_platesNoCANADA ONLY — selects plate-dependent fee lines where the jurisdiction distinguishes them (e.g. Ontario: true → permit only $32; false → permit + new plate $59)
Behavior5/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It clearly states per-call cost ($0.02), payment mechanism (USDC on Base via x402), compute-first/settle-after billing (never billed for errors), and the need for a private key in live mode. It also hints at output structure (per-line sourceUrl + confidence). This is exemplary transparency for a paid API tool.

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 dense but every sentence contributes value: purpose, jurisdiction breakdown, costing, settlement model, and requirements. It is front-loaded with the core purpose and structured by CA/US sections. No fluff or repetition, making it efficient for an AI agent to parse.

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?

The tool has no output schema, so the description must convey return shape; it does so by noting 'per-line sourceUrl + confidence' and itemizing fee categories. It also covers coverage (all provinces/territories and states), usage constraints, and billing behavior. For a 9-parameter tool, this is a complete picture.

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 the baseline is 3. The tool description does not add parameter-level semantics beyond what the schema already provides; it only summarizes jurisdiction coverage and fee categories. No additional meaning is imparted for parameters like state, province, or sale_type beyond their schema descriptions.

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?

The description opens with 'Itemized government-imposed used-vehicle closing costs', naming a specific verb+resource with clear scope (Canada and US). It distinguishes itself from siblings like get_pricing or get_recalls by detailing jurisdiction coverage and fee categories, making the tool's purpose unmistakable.

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 provides extensive context on when to use the tool: when used-vehicle closing costs are needed in Canada or the US, with a detailed breakdown of what is included. It also states prerequisites (EVM_PRIVATE_KEY, live mode) but does not explicitly name alternative tools or exclusions, falling just 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.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jcislo/vindex-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server