Skip to main content
Glama
hamrah-mechanic-mcp

hamrah-mechanic-mcp

by sepehr071

Price estimate for one trim and year

hm_price_estimate
Read-onlyIdempotent

Retrieve the market price range and recent monthly price change for one car trim in a given model year using its trim ID and year.

Instructions

Get the market price range and recent monthly change for one trim in one model year.

Take type_id and year from hm_prices rows. monthly_change_percent is only given for some trims. For monthly history use hm_price_history.

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": {
      "type_id": "<type_id>",
      "year": "<year>"
    },
    "name": "hm_price_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYesSolar Hijri (1397) for Iranian cars, Gregorian (2017) for imports.
type_idYesTrim id from hm_prices rows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / type_id / description
      Previous value: -"Trim id (carTypeId) from hm_prices rows or hm_models."New value: +"Trim id from hm_prices rows."
    • changedInput schema / properties / year / description
      Previous value: -"Model year as the site shows it: Solar Hijri (1397) for Iranian cars, Gregorian (2017) for imports."New value: +"Solar Hijri (1397) for Iranian cars, Gregorian (2017) for imports."
  2. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

With annotations already declaring readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, the safety profile is covered structurally. The description adds genuinely useful behavioral context beyond that: 'monthly_change_percent is only given for some trims', warning of partially populated return data an agent must handle, and it names the two headline return fields. It does not state currency or units, which matters for an open-world price tool.

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 short sentences, front-loaded with the purpose before caveats and the cross-reference. The 'Take type_id and year from hm_prices rows' sentence is largely redundant with the schema's own type_id description, a small amount of waste in an otherwise tight definition.

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 two-parameter, read-only lookup with a rich schema and full annotations, the description covers purpose, argument provenance, the partial-data caveat, and the correct alternative tool for history. No output schema exists, yet the two key return values are still named, so an agent has enough to call it correctly and interpret the result.

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 both parameters already document themselves, including the Hijri/Gregorian year convention. The description only restates provenance for type_id ('from hm_prices rows'), which the schema nearly duplicates, adding no format or edge-case detail. Baseline 3 applies 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 uses a specific verb and resource ('Get the market price range and recent monthly change') and pins the scope to exactly one trim in one model year, so the unit of return is unambiguous. It names the sibling hm_price_history as a different tool, but it does not distinguish itself from hm_price_list or hm_prices, which an agent must also choose between.

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?

It gives a clear prerequisite for argument sourcing ('Take type_id and year from hm_prices rows') and an explicit exclusion with a redirect: 'For monthly history use hm_price_history.' It stops short of stating when an agent should prefer hm_price_list or hm_prices over this estimate tool, so alternatives are only partially covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.