Skip to main content
Glama

API Ninjas (Unofficial)

Cars

cars
Read-onlyIdempotent

API Ninjas cars: vehicle specifications by make, model, year, or fuel type. Returns a list of { make, model, year, fuel_type, cylinders, transmission, drive, city_mpg, highway_mpg, class }. Example: cars({ make: "toyota", model: "camry", year: 2020 }).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "make": "toyota",
      "year": 2020,
      "model": "camry"
    },
    "name": "cars"
  }
}

Input Schema

NameRequiredDescriptionDefault
makeNoVehicle manufacturer, e.g. 'toyota', 'ford'
yearNoModel year, e.g. 2020
limitNoMax results to return (default 5, max 50)
modelNoVehicle model, e.g. 'camry', 'mustang'
_apiKeyNoOptional, your own API Ninjas key for higher limits; omit to use the shared Pipeworx key.
fuel_typeNoFuel type, e.g. 'gas', 'diesel', 'electricity'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — your own API Ninjas key for higher limits; omit to use the shared Pipeworx key."New value: +"Optional, your own API Ninjas key for higher limits; omit to use the shared Pipeworx key."
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "_apiKey": "your-api-ninjas-api-key",
      -    "make": "toyota",
      -    "model": "camry",
      -    "year": 2020
      -  },
      -  {
      -    "_apiKey": "your-api-ninjas-api-key",
      -    "fuel_type": "gas",
      -    "limit": 10,
      -    "make": "ford"
      -  }
      -]New value: +[
      +  {
      +    "make": "toyota",
      +    "model": "camry",
      +    "year": 2020
      +  },
      +  {
      +    "fuel_type": "gas",
      +    "limit": 10,
      +    "make": "ford"
      +  }
      +]
  3. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so safety is covered. The description usefully adds the exact return shape (a list of nine named fields), which matters because there is no output schema, and identifies the upstream source (API Ninjas). It does not mention rate limits, pagination, or behavior with no filters.

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?

Two sentences, front-loaded with the resource and filters before the return shape, and the example call is compact. The included example largely duplicates the schema's own examples array, which is minor waste but not harmful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, listing return fields is a genuine completeness win. However, with zero required parameters, the description never says what a bare call returns (all vehicles? a default sample?) — an important ambiguity for an optional-everything tool — and leaves the limit default and API-key fallback to the schema.

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 coverage is 100% with per-field descriptions and two examples, so the schema already does the heavy lifting. The description restates the filterable fields (make, model, year, fuel_type) but adds no semantics the schema lacks and omits the limit/_apiKey behavior entirely.

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 names the specific resource (vehicle specifications) and the dimensions it can be queried by (make, model, year, fuel type), plus the exact fields returned. It is clearly a vehicle-spec lookup, distinct by domain from siblings like animals or company_facts, though it never explicitly contrasts itself with any alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is a lookup/filter tool from the 'by make, model, year, or fuel type' phrasing. There is no explicit when-to-use, when-not-to-use, or pointer to a related tool for broader automotive data.

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.