GnistAI GnistAI
Log in

Getting Started with Vehicle Specifications

Car specifications database — engine, horsepower, MPG, drivetrain, pricing for popular models.

All Tutorials   |   Overview   |   Playground   |   MCP   |   REST API   |   Home
Automotive

Data source: Curated dataset (EPA, manufacturer specs)

Overview

Vehicle Specifications wraps Curated dataset (EPA, manufacturer specs), handling authentication, pagination, and rate limits for you. This tutorial covers all 7 tools with working code examples you can copy and run.

Prerequisites

  1. Sign up at https://context.gnist.ai/signup for a free API key (100 calls/day).
  2. Choose your integration method: MCP protocol or REST API.

Connect via MCP

Add to your MCP client config (Claude Desktop, Cursor, etc.):

MCP Config
{
  "mcpServers": {
    "gnist-vehicle-specs": {
      "url": "https://context.gnist.ai/mcp/vehicle-specs/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Tools (7)

get_vehicle

Get detailed specifications for a vehicle. Returns make, model, year, engine, horsepower, MPG, drivetrain, transmission, and MSRP.

ParameterTypeRequiredDescription
vehicle_idstringrequiredVehicle ID slug (e.g. toyota-camry-2024, ford-f150-2024).
curl -X POST "https://context.gnist.ai/mcp/vehicle-specs/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_vehicle", "arguments": {"vehicle_id": "toyota-camry-2024"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/vehicle-specs/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'vehicle_id': 'toyota-camry-2024'},
            'name': 'get_vehicle'}},
)
print(resp.json())

search_vehicles

Search the vehicle specifications database.

ParameterTypeRequiredDescription
querystringrequiredSearch by make, model, or engine.
limitintegeroptional (default: 20)
curl -X POST "https://context.gnist.ai/mcp/vehicle-specs/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_vehicles", "arguments": {"query": "renewable energy"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/vehicle-specs/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'query': 'renewable energy'},
            'name': 'search_vehicles'}},
)
print(resp.json())

list_vehicles_by_make

List vehicles by manufacturer.

ParameterTypeRequiredDescription
makestringrequiredManufacturer name (e.g. Toyota, Ford, BMW).
limitintegeroptional (default: 50)
curl -X POST "https://context.gnist.ai/mcp/vehicle-specs/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "list_vehicles_by_make", "arguments": {"make": "Toyota"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/vehicle-specs/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'make': 'Toyota'}, 'name': 'list_vehicles_by_make'}},
)
print(resp.json())

list_vehicles_by_body_style

List vehicles by body style.

ParameterTypeRequiredDescription
body_stylestringrequiredBody style (e.g. Sedan, SUV, Truck, Coupe).
limitintegeroptional (default: 50)
curl -X POST "https://context.gnist.ai/mcp/vehicle-specs/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "list_vehicles_by_body_style", "arguments": {"body_style": "Sedan"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/vehicle-specs/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'body_style': 'Sedan'},
            'name': 'list_vehicles_by_body_style'}},
)
print(resp.json())

get_vehicle_makes

List all vehicle makes in the database.

curl -X POST "https://context.gnist.ai/mcp/vehicle-specs/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_vehicle_makes", "arguments": {}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/vehicle-specs/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {}, 'name': 'get_vehicle_makes'}},
)
print(resp.json())

get_vehicle_body_styles

List all body styles in the database.

curl -X POST "https://context.gnist.ai/mcp/vehicle-specs/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_vehicle_body_styles", "arguments": {}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/vehicle-specs/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {}, 'name': 'get_vehicle_body_styles'}},
)
print(resp.json())

report_feedback

Report a bug, feature request, or general feedback for this data source. Use this when something doesn't work as expected, when you'd like a new feature, or when you have suggestions for improvement. Args: feedback: Describe the issue or suggestion. feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: general)
curl -X POST "https://context.gnist.ai/mcp/vehicle-specs/" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "report_feedback", "arguments": {"feedback": "example"}}}'
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/vehicle-specs/",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={'id': 1,
 'jsonrpc': '2.0',
 'method': 'tools/call',
 'params': {'arguments': {'feedback': 'example'}, 'name': 'report_feedback'}},
)
print(resp.json())

Common Patterns

Search then retrieve
Use search_vehicles to find items, then get_vehicle to get full details. This two-step pattern is common for exploring data before drilling down.
Pagination
Several tools support limit, offset, or page parameters. Start with small limits during development, then increase for production queries.

FAQ

What data does Vehicle Specifications provide?

Car specifications database — engine, horsepower, MPG, drivetrain, pricing for popular models. It exposes 7 tools: get_vehicle, search_vehicles, list_vehicles_by_make, list_vehicles_by_body_style, get_vehicle_makes, get_vehicle_body_styles, report_feedback.

What do I need to get started?

A Gnist API key (free tier: 100 calls/day). Sign up at https://context.gnist.ai/signup.

What format does the Vehicle Specifications API return?

JSON, via either MCP protocol (JSON-RPC 2.0) or REST API.

Next Steps

Related Tutorials