Skip to main content
Glama

HoteluriPensiuni.ro

Trimite o cerere de rezervare

cere_rezervare
Destructive

Pregătește o cerere de rezervare pentru o cameră liberă. Clientul primește pe email un link de confirmare (valabil 2 ore); abia după ce îl apasă, cererea ajunge la gazdă. Folosește doar datele reale ale clientului și doar cu acordul lui. Nu se plătește nimic acum; totalul este cel calculat de site pentru perioada aleasă.

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": {
      "cazare_id": "<cazare_id>",
      "camera_id": "<camera_id>",
      "sosire": "<sosire>",
      "plecare": "<plecare>",
      "adulti": "<adulti>",
      "nume": "<nume>",
      "email": "<email>",
      "telefon": "<telefon>"
    },
    "name": "cere_rezervare"
  }
}

Input Schema

NameRequiredDescriptionDefault
numeYesNumele complet al clientului.
copiiNoNumărul de copii.
emailYesEmailul clientului (aici primește linkul de confirmare).
mesajNoMesaj pentru gazdă (opțional): ora sosirii, întrebări.
adultiYesNumărul de adulți.
sosireYesData sosirii (AAAA-LL-ZZ)
plecareYesData plecării (AAAA-LL-ZZ)
telefonYesTelefonul clientului.
camera_idYesId-ul camerei (din detalii_cazare).
cazare_idYesId-ul cazării.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, it discloses the important behavior: the request is only 'prepared', the client must click an emailed link valid for 2 hours before the host sees anything, and no payment is taken now. This materially softens the destructiveHint=true framing. It does not disclose what happens on repeated calls (idempotentHint=false implies duplicates) or the state in which the request is left if the link expires.

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?

Four short sentences, front-loaded with the action and followed by the confirmation flow, consent rule, and payment note. Nothing is redundant, though the consent sentence is a policy reminder rather than invocation detail.

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 10-parameter, non-idempotent mutation with no output schema, the description covers the flow well but omits what a successful call returns (request id, status), how unavailable dates are reported, and what a repeated submission produces. An agent could invoke it, but not fully anticipate outcomes or errors.

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 explains every field, including that email receives the confirmation link. The description only adds that the total is computed by the site for the chosen period, which ties sosire/plecare to pricing but adds little 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?

The description opens with a concrete verb and resource: 'Pregătește o cerere de rezervare pentru o cameră liberă', which is clearly distinct from the search/detail siblings (cauta_cazari, detalii_cazare). It does not explicitly name those siblings as prerequisites, but the action and scope are unambiguous.

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?

It states a real precondition ('Folosește doar datele reale ale clientului și doar cu acordul lui') and implies the room must be free, but there is no explicit when-not guidance: nothing about what to do if the room became unavailable, whether this is the right tool for an already-confirmed booking, or which sibling to call first to obtain cazare_id/camera_id.

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