Skip to main content
Glama

lock

Idempotent

Secures a Tesla vehicle by engaging its doors using a VIN suffix or full VIN, with optional wake for sleeping vehicles.

Instructions

Lock the vehicle.

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

Input Schema

NameRequiredDescriptionDefault
wakeNoAllow waking an asleep vehicle
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

C2.8/5.0
Behavior2/5

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

Annotations already declare openWorldHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds nothing beyond that: no mention of what happens if the vehicle is asleep, whether the command fails if a door is open, or whether an already-locked vehicle returns success. For a remote command on a physical asset, that behavioral context matters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and contains no filler, so there is nothing to trim. However, its brevity comes at the cost of substance rather than being dense with information.

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 simple two-parameter command the schema and annotations carry most of the load, but the description still omits any usage guidance and any description of remote-command behavior. An agent must infer entirely from the name and schema how and when to invoke it.

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%, including the VIN pattern and the wake flag's meaning, so the baseline of 3 applies. The description contributes no additional meaning about the parameters, such as when to set wake or how VIN suffix collisions are resolved beyond what the schema states.

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 states a specific verb and resource ('Lock the vehicle'), which is unambiguous and clearly distinct from the harness-level siblings such as unlock or open_trunk. It does not explicitly contrast itself with a sibling, but the operation is self-explanatory.

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 at all. It does not tell the agent how this relates to unlock, when to prefer it, or what preconditions must hold before locking.

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