Skip to main content
Glama

rental_command

Execute rental lifecycle operations like start, park, drive, end, open tailbox, or renew reservation, returning the updated rental.

Instructions

Execute an operation on a rental and return the updated rental.

operation_type (case-sensitive) is one of:

  • START start a reserved rental

  • PARK pause driving while keeping the rental active

  • DRIVE resume driving after a park

  • END end the rental (triggers final checks and billing)

  • OPEN_TAILBOX open a configured tailbox / helmet box / saddle compartment

  • RENEW_RESERVATION extend a reservation where supported Other operation types configured for the tenant are passed through as-is.

Optional fields are forwarded when relevant (mainly for END): file_id (e.g. a parking photo uploaded via POST /files), parking_report, vehicle_code, reason.

Note: ending may be blocked by end-checks (parking/station/photo/surcharge). This tool does not pre-run POST /rentals/{id}/check/end; an END that fails a requirement surfaces the API error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rental_idYes
operation_typeYes
file_idNo
parking_reportNo
vehicle_codeNo
reasonNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that END may be blocked by checks and that optional fields are forwarded when relevant. However, it does not describe authentication needs, required roles, success/error response structure, or other behavioral traits like idempotency.

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?

The description is well-structured: a summary sentence, a clear list of operation types, a note on optional fields, and a caution about end-checks. Every sentence adds value, though it could be slightly more concise without losing clarity.

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

Completeness4/5

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

Given that an output schema exists, the description does not need to detail return values. It covers the core behavior, input parameters, and a notable constraint (end-checks). Some gaps exist (e.g., error handling, idempotency), but for a mutation tool with 6 parameters, it is fairly complete.

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?

With 0% schema description coverage, the description compensates by explaining each parameter: rental_id (required integer), operation_type (case-sensitive list), and optional fields (file_id, parking_report, vehicle_code, reason) with context on when they are relevant (primarily for END). This adds significant meaning beyond the raw JSON schema.

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 clearly states it executes an operation on a rental and returns the updated rental. It lists all specific operation types (START, PARK, etc.) and distinguishes itself from sibling tools like create_rental and get_active_rental, which handle different lifecycle stages.

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

Usage Guidelines4/5

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

The description provides explicit operation types and when to use each, along with context for optional fields (mainly for END). It also warns that END may be blocked by end-checks and that the tool does not pre-run the check/end endpoint. However, it does not explicitly state when NOT to use this tool versus alternatives, though the purpose inherently limits its use.

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

Install Server

Other Tools

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/slettmayer/wunder-user-mcp'

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