Skip to main content
Glama

set_charge_limit

Idempotent

Set a Tesla vehicle's charging limit as a percentage to control battery charge level and avoid overcharging. Specify the VIN suffix and target percent.

Instructions

Set the charging limit as a percentage.

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": {
      "percent": "<percent>",
      "vehicle": "<vehicle>"
    },
    "name": "set_charge_limit"
  }
}

Input Schema

NameRequiredDescriptionDefault
wakeNoAllow waking an asleep vehicle
percentYes
vehicleYesVIN suffix from list_vehicles, or full VIN if suffixes collide

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds nothing beyond that: no note that setting a limit may fail if the vehicle is asleep without wake=true, no permissions or rate-limit context, no indication of what is preserved or overwritten.

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?

A single front-loaded sentence with no wasted words. It is efficient but borders on under-specification rather than being genuinely well-structured.

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

Completeness2/5

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

For a mutating, vehicle-targeted tool with no output schema and only partial parameter documentation, the definition leaves key operational facts unstated: the enforced 50-100 range, the awake-vehicle dependency, and the expected outcome. Annotations cover safety but not the call preconditions an agent needs.

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 67%: vehicle and wake are already documented in the schema, while percent carries only minimum/maximum bounds with no prose. The description adds the useful fact that percent is a percentage (not kWh or miles), but nothing about the 50-100 bounds or the collision case for VIN suffixes.

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?

States a specific verb and resource ("Set the charging limit") plus the unit ("as a percentage"), which is enough to distinguish it from charge_start/charge_stop and set_temperature by resource alone. It stops short of naming a sibling or restating scope, so it is clear but not differentiated.

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?

The verb implies usage but nothing states when to call this instead of charge_start, whether the vehicle must be plugged in, or whether the percent range is enforced. An agent must infer context from the name and schema alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.