Skip to main content
Glama

Lock the doors

toyota_lock_doors
Idempotent

Lock car doors and verify the vehicle reports them locked. Preview the action with confirm=false before sending, then send the command only when explicitly requested.

Instructions

Lock the doors, then verify against the state the car reports.

Only when the user explicitly asked to lock the car. Call with confirm=false first when in doubt; the report says whether the car confirmed the new state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNotrue sends the command to the car; false (default) only previews what would happen and sends nothing.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
doorsNo
detailYes
statusYes'needs_confirmation' = nothing was sent; 'verified' = the car reported the new state; 'accepted' = Toyota accepted the command but the car has not confirmed it yet; 'failed' = the car rejected it.
climateNo
commandYes
chargingNo
elapsed_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the tool verifies the result against the car-reported state and that confirm=false previews without sending. This is important behavioral context not visible in the schema or annotations, and it aligns with the idempotentHint=true annotation.

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

Conciseness5/5

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

Three short sentences carry high signal: the action/verification, the when-to-use rule, and the safety-first parameter guidance. There is no filler, repetition, or schema duplication.

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

Completeness5/5

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

Given a single optional parameter, full schema coverage, and an output schema present, the description covers the necessary invocation context, safety behavior, and verification outcome. Nothing essential is missing for an agent to select and invoke this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already fully describes the confirm parameter, so the baseline is 3. The description adds useful decision guidance on how to set confirm, saying 'Call with confirm=false first when in doubt,' and explains that 'the report says whether the car confirmed the new state,' going beyond the schema's definition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Lock the doors, then verify against the state the car reports.' This clearly distinguishes the action from sibling tools like toyota_unlock_doors and toyota_lock_trunk, while also adding the verification step that makes the tool's behavior unique.

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

Usage Guidelines5/5

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

The description gives an explicit usage condition: 'Only when the user explicitly asked to lock the car.' It also provides a concrete safety procedure for uncertain cases: 'Call with confirm=false first when in doubt,' which tells the agent exactly how to use the tool safely.

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