Skip to main content
Glama

Charging sessions

get_charging_sessions
Read-only

Charging sessions inferred from the saved log (battery % rises between snapshots).

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": "get_charging_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO date/time end (default now)
vinNoVehicle VIN (full, or its last 4-6 characters). Required when the account has more than one car (call list_vehicles first and ask the user which car). Optional with one car. Every car on the owner's Tesla account is covered by the plan.
fromNoISO date/time start (default 30 days ago)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds genuinely useful context beyond that: the results are inferred heuristically from snapshots rather than measured directly, warning the agent that sessions may be approximate or missed. It could go further on defaults and whether history is truncated by the plan, but the inference caveat is real added value.

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 tight sentence with the key qualifier (inferred from the saved log) front-loaded and no wasted wording. It is arguably too terse for a tool with no output schema, but nothing in it is redundant.

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?

With three optional parameters, full schema coverage, and safe read-only annotations, the definition covers invocation adequately. However, there is no output schema and the description never says what a session record contains (start/end time, energy added, location) or whether pagination/limits apply, leaving a gap for an agent reasoning about results.

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% and the fields already document from/to defaults (30 days ago / now) and the vin full-or-last-4-6 rule plus the list_vehicles prerequisite. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 returned (charging sessions) and, unusually, the derivation method (inferred from the saved log when battery % rises between snapshots), so an agent knows exactly what data it gets. It does not distinguish this from siblings such as get_history or battery_trend, which could also surface charging-adjacent data, so it falls short of a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no mention of alternatives like get_history or battery_trend. The prerequisite for multi-car accounts (call list_vehicles first) lives only in the schema's vin field, not in the description.

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