Skip to main content
Glama
karnameh-mcp

karnameh-mcp

by sepehr071

Used-car listing counts per city

kn_city_stats
Read-onlyIdempotent

Counts used-car ads per city, with optional brand, model, or maximum-price filters, and returns an ad at the minimum price for each city.

Instructions

Count Karnameh's used-car ads in every city, optionally for one brand, model or price ceiling.

Gives each city's cheapest ad. Makes one request per city, so it is slower than kn_cars(city=...).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "kn_city_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandNoEnglish or Persian brand (kn_brands).
modelNoModel within the brand.
max_priceNoMaximum price, Toman.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.2.0
    • removedInput schema / properties / brand / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / brand / description
      Previous value: -"Brand name, English or Persian (see kn_brands)."New value: +"English or Persian brand (kn_brands)."
    • addedInput schema / properties / brand / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / max_price / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / max_price / description
      Previous value: -"Maximum price in Toman."New value: +"Maximum price, Toman."
    • addedInput schema / properties / max_price / minimum
      Added value: +0
    • addedInput schema / properties / max_price / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / model / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / model / description
      Previous value: -"Model name within the brand."New value: +"Model within the brand."
    • addedInput schema / properties / model / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds real value beyond that: the per-city request fan-out and resulting latency, plus the fact that each city's cheapest ad is returned alongside the count — a return-content detail not in any structured field.

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?

Three short sentences, front-loaded with the primary action, followed by the return detail and the performance caveat. No filler or repetition.

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 no output schema, the description must convey return shape, and it does: a count per city plus each city's cheapest ad. The main remaining gap is whether cities with zero matches are included and roughly how many cities are covered, but the core is sufficient to invoke correctly.

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 all three parameters are already documented with units and cross-references (kn_brands, Toman). The description only restates them as an optional filter combination, adding no syntax or format meaning beyond the schema. 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 (counts used-car ads in every city) plus the optional filter dimensions, and explicitly contrasts itself with kn_cars(city=...). An agent can distinguish it from the per-city listing sibling 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 closing sentence names kn_cars(city=...) as the faster alternative and explains why (one request per city), which effectively tells the agent to prefer kn_cars when a single city suffices. It does not spell out a positive 'use this when' condition, but the cost trade-off makes the choice clear.

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