Skip to main content
Glama

Create reservation

glpi_create_reservation

Book a reservable item. begin/end use 'YYYY-MM-DD HH:MM:SS'. reservationitems_id comes from glpi_list_reservation_items (not the asset ID).

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": {
      "reservationitems_id": "<reservationitems_id>",
      "begin": "<begin>",
      "end": "<end>"
    },
    "name": "glpi_create_reservation"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesEnd, 'YYYY-MM-DD HH:MM:SS'
beginYesStart, 'YYYY-MM-DD HH:MM:SS'
commentNoFree-text note stored on the reservation (optional)
users_idNoUser the booking is for
reservationitems_idYesReservationItem ID (see glpi_list_reservation_items)

Output Schema

NameRequiredDescriptionDefault
dataNo
replayedNoTrue when an identical recent create was returned instead of repeated

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / users_id / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/reservationitems_id/anyOf/0"
      -  },
      -  {
      -    "$ref": "#/properties/reservationitems_id/anyOf/1"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^0*[1-9]\\d*$",
      +    "type": "string"
      +  }
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the agent knows this is a non-destructive, non-idempotent write. The description adds only format and ID-provenance details; it does not disclose permission requirements, overlap/conflict behavior, or what the reservation looks like after creation. For a booking mutation that gaps matter, so it earns only partial credit.

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?

Two front-loaded sentences with no filler: purpose first, then the two things most likely to be gotten wrong. The date-format sentence duplicates schema text and is the only slightly wasteful element.

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?

With an output schema present and full parameter coverage, the description needs only to cover purpose, input conventions and ID provenance, which it does. Gaps remain around conflict handling and permission prerequisites for a five-parameter booking write.

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 the schema already documents begin, end, reservationitems_id, users_id and comment, making 3 the baseline. The one genuine addition beyond the schema is "not the asset ID" for reservationitems_id, a useful disambiguation, but the date-format sentence merely repeats the schema's own wording.

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?

"Book a reservable item" gives a specific verb and resource, and the name/title pairing makes the create semantics explicit. It is clearly distinguishable from glpi_get_reservation and glpi_update_reservation, though it never states what happens if the slot is already taken.

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 gives clear operational context by naming the prerequisite tool for the required booking ID (glpi_list_reservation_items) and warning against passing an asset ID. It gives no when-not guidance, such as checking availability or conflicts first, and does not mention any alternative tool for that.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.