Skip to main content
Glama

book_on_myservice

Read-onlyIdempotent

Create a link to book a hotel on myservice.pk. The link opens TravellerGPT with the hotel, dates and party filled in; the user signs in, confirms the live price, enters guest details and pays there. This tool books, holds and charges nothing. Inputs: hotel id from search results, check-in and check-out (YYYY-MM-DD), adults, children's ages, number of rooms, and optionally the chosen room type. Returns booking_url.

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": {
      "hotel_id": "<hotel_id>",
      "checkin": "<checkin>",
      "checkout": "<checkout>"
    },
    "name": "book_on_myservice"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomsNo
adultsNo
checkinYes
checkoutYes
hotel_idYes
room_typeNo
children_agesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and destructiveHint=false, which is counterintuitive for a tool named 'book', and the description resolves that tension explicitly: 'This tool books, holds and charges nothing,' plus it traces the entire downstream flow (sign in, confirm live price, guest details, pay). It does not cover link expiry, reuse, or failure modes, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action, then the outcome, then the no-charge disclaimer, then a compact parameter list and return value. Every sentence carries distinct information with no repetition of the schema or title.

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?

Although there is no output schema, the description names the single return field (`booking_url`), and with seven parameters at 0% schema coverage it still documents all inputs and the date format. Nothing material an agent needs to invoke this 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 0%, so the description must compensate — and it largely does, enumerating all seven inputs and adding meaning the schema lacks: hotel_id must come from search results, and checkin/checkout are YYYY-MM-DD. It omits the children_ages array shape, the integer defaults for adults/rooms, and valid room_type values.

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 concrete verb and resource — 'Create a link to book a hotel on myservice.pk' — and immediately scopes it as a handoff URL rather than a transaction. This cleanly separates it from every sibling (search_hotels, get_hotel_details, get_live_rates), which are all retrieval tools, so an agent can pick it without opening a schema.

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 establishes the context of use (user wants to actually book, after having a hotel id 'from search results') which implies the prerequisite chain from the search siblings. It does not explicitly state when NOT to use it (e.g., for price comparison use get_live_rates), so it falls short of full routing guidance.

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