Skip to main content
Glama

book_flight

Create a simulated flight booking in the local SQLite database after explicit user confirmation; no real ticket or payment is processed.

Instructions

Create a simulated flight booking in the local SQLite database. This does NOT purchase a real airline ticket or process payment. Use this ONLY after receiving explicit user confirmation to book.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flight_idYes
seat_numberNo
passenger_nameYes
passenger_emailYes
passenger_phoneYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly states the simulation nature and lack of real payment, which is crucial for agents to avoid misunderstanding. It does not describe side effects such as persistence details, return values, or error conditions, but the key behavioral caveat is clearly disclosed.

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?

The description is two sentences with no wasted words. The core action and destination are front-loaded, and the critical caveat about simulation follows immediately. That is optimal structure for an agent scanning rapidly.

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 mutation tool with 5 parameters, no annotations, and no output schema, the description is adequate but incomplete. It tells what it does and the confirmation requirement, but does not mention expected return values, handling of invalid flight_id, or any side effects beyond the simulation note. An agent would likely need to infer or make extra calls to handle errors.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate by explaining parameter meanings. It mentions zero parameters. Although the names (flight_id, passenger_name, passenger_email, passenger_phone, seat_number) are self-explanatory, the description adds no semantic value beyond the schema, failing to clarify requiredness, formats, or relationships between parameters.

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?

The description starts with a clear verb-object pair: 'Create a simulated flight booking in the local SQLite database.' It immediately distinguishes itself from a real purchase by stating 'This does NOT purchase a real airline ticket or process payment.' This specificity differentiates it from siblings like search_flights, get_booking, and cancel_booking, making the tool's role unambiguous.

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 provides an explicit precondition: 'Use this ONLY after receiving explicit user confirmation to book.' This is a clear 'when-to-use' rule. However, it does not mention when not to use (beyond the implied no-real-purchase) or point to alternative tools for scenarios like searching or checking seats, so it lacks the full set of alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BarathArjun-B/travel_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server