Skip to main content
Glama
Lodgify MCP Server

Lodgify MCP Server

by MikeRobGIT

Update Access Key Codes

lodgify_update_key_codes
DestructiveIdempotent

Update booking access key codes to give guests smart lock, keypad, or other entry information for self-check-in and property access.

Instructions

Update access key codes for a booking to provide guests with property entry information. Used for smart locks, keypad codes, or other access control systems. Essential for self-check-in processes and property access management.

Example request: { "id": 12345, // Booking ID to update key codes for "payload": { "keyCodes": ["1234", "5678"] // Array of access codes/keys for the property } }

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": {
      "id": "<id>",
      "payload": "<payload>"
    },
    "name": "lodgify_update_key_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBooking ID to update key codes for
payloadYesAccess key codes and entry information

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is largely covered. The description adds domain framing about guest entry, but it never states whether supplying keyCodes replaces or appends to existing codes, whether codes expire, or whether the guest is notified — the most consequential behavioral detail for a destructive write.

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 prose is front-loaded and tight: purpose, use cases, then an example. The example block is somewhat redundant since it duplicates the schema descriptions as inline comments, but it is short and does not obscure the main statement.

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?

For a 2-parameter destructive write with a nested object and no output schema, the definition covers purpose and payload shape adequately. It leaves open replacement semantics, validation rules for the codes, and what happens on success, which an agent deciding whether to call this would want to know.

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%, so both parameters and the nested keyCodes array are already documented. The example request merely restates the same field descriptions verbatim with sample values; it adds no constraint or meaning (e.g., max number of codes, format rules) beyond the schema.

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 ('Update access key codes for a booking') and narrows the domain to smart locks, keypad codes, and access control, which separates it from generic booking-update siblings. It stops short of explicitly contrasting with lodgify_update_booking, which could plausibly also carry guest entry information.

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 phrase 'Essential for self-check-in processes and property access management' gives context for when the tool matters, but there are no explicit preconditions (e.g., booking must be confirmed, must be self-check-in enabled) and no when-not-to-use guidance or named alternatives.

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