Skip to main content
Glama

Jämför bilar

compare_cars
Read-onlyIdempotent

Jämför 2–5 bilar (id från find_car eller modellnamn som "XC40") sida vid sida: total månadskostnad, kostnadsposter, skillnad mot billigaste och en egen länk per bil. Standardvärden om inget anges: privatleasing, 3 år, 1 500 mil/år – anropa direkt utan motfrågor och redovisa antagandena (fältet standardvarden) i svaret.

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": {
      "ids": "<ids>"
    },
    "name": "compare_cars"
  }
}

Input Schema

NameRequiredDescriptionDefault
arNo
idsYes
milPerArNo
anskaffningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, non-open-world behavior, so the bar is lower. The description still adds real value by disclosing default assumptions (private leasing, 3 years, 1500 mil/year), the instruction to not ask follow-ups, and a response field name (standardvarden) — notable since no output schema exists.

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?

One compact paragraph, front-loaded with what the tool does and the input format before the defaults and calling instruction. Dense but every clause carries information; the response-formatting instruction is slightly procedural but justified by the absence of an output schema.

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?

For a 4-parameter read-only comparison tool with no output schema, the description covers input form, defaults, and the shape of the result. Minor gaps remain on ambiguous model names and how partial overrides interact with defaults.

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 description coverage is 0%, so the description must carry the load, and it largely does: it explains the ids array accepts either find_car ids or model names like "XC40" and states the 2–5 bounds, while the defaults fix the meaning of anskaffning, ar, and milPerAr. It omits explicit units/override semantics for each optional field, so meaning is conveyed by example rather than definition.

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 a specific verb and resource — comparing 2–5 cars side by side — and enumerates exactly what is produced (total monthly cost, cost items, difference vs cheapest, per-car link). It also distinguishes itself from find_car by naming it as the source of the ids, so an agent can route between 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear operational guidance: call directly without clarifying questions and surface the assumptions in the answer, plus where to get ids. It does not explicitly exclude or compare against sibling cost tools (total_cost, my_monthly_cost, explain_costs), which leaves some routing ambiguity for cost questions.

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