Skip to main content
Glama

Add a stay to a group

add_stay_to_group

Puts an existing stay on an existing group. First call without confirm: a preview — the stay, its folio and the group folio before and after; nothing changes. Show it to the owner; to go ahead, call again with the same values, confirm true and preview_id. billing: group (the group folio pays the room) or own (the guest's own folio) — it must match how the group bills. rate: group (the group's rate) or keep (the stay's own rate). The group's rooms of that type all taken: grow_block true holds one more. After the cut-off: reason. Owner only. Needs the owner's sign-in.

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": {
      "confirmation": "<confirmation>",
      "group_id": "<group_id>",
      "billing": "<billing>",
      "rate": "<rate>"
    },
    "name": "add_stay_to_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateYesThe group's rate, or keep the stay's own rate
reasonNoWhy, in the owner's words; needed after the group's cut-off
billingYesWho pays the room: the group folio, or the guest's own folio
confirmNotrue to make the change shown in the preview
group_idYesGroup id, from groups
grow_blockNotrue to hold one more room of this type on the group when it has none left
preview_idNopreview_id from the preview
confirmationYesThe stay's confirmation number

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say non-read-only, non-destructive, closed-world; the description goes much further, disclosing that the first call changes nothing, that it returns the stay, its folio and the group folio before and after, and that owner sign-in is required. That is substantial behavioral context beyond the annotations.

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?

Front-loaded with the core action and then the preview protocol, with zero filler. The telegraphic phrasing ('The group's rooms of that type all taken: grow_block true holds one more') is dense but slightly elliptical, costing a little readability.

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?

For an 8-parameter mutation with no output schema, the definition covers the two-phase flow, authorization, all conditional parameters, and even what the preview returns. Nothing an agent needs to invoke it correctly is missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: billing must be consistent with how the group bills, rate is the group's rate versus keeping the stay's own, grow_block only applies when the block has no rooms of that type left, and reason is needed post cut-off. The confirm/preview_id pairing is also spelled out.

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?

States a precise verb and resource ('Puts an existing stay on an existing group'), and the preview/commit duality makes the operation's shape unmistakable. An agent can distinguish this from remove_stay_from_group without opening either schema.

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?

Gives an explicit two-step protocol: call without confirm to preview, show it to the owner, then re-call with the same values plus confirm true and preview_id. It also states conditional requirements — reason after the cut-off, grow_block true when the block is full, billing that must match how the group bills — and the Owner-only prerequisite.

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.

Resources