Skip to main content
Glama
cobanov

teslamate-mcp

battery_degradation_over_time.sql493 B
SELECT c.name as car_name, DATE_TRUNC('month', p.date) as month, ROUND(AVG(p.rated_battery_range_km)::numeric, 1) as avg_rated_range, ROUND(MAX(p.rated_battery_range_km)::numeric, 1) as max_rated_range, COUNT(*) as data_points FROM positions p JOIN cars c ON p.car_id = c.id WHERE p.battery_level = 100 -- Only look at 100% charge AND p.date >= CURRENT_DATE - INTERVAL '24 months' GROUP BY c.id, c.name, DATE_TRUNC('month', p.date) ORDER BY car_name, month;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cobanov/teslamate-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server