Skip to main content
Glama

tool_rank_trip_options

Rank trip options by a comprehensive value score based on price, stops, duration, refundability, baggage, and hassle. Pass option details and priority for personalized ranking.

Instructions

Rank flight/trip options on a 0-100 value score — price plus stops, duration, refundability, baggage and hassle — not price alone.

Pass a JSON array of option objects with any of: price, duration_minutes, stops, refundable, checked_bag_included, self_transfer, hidden_city, split_ticket, visa_required, transit_visa_required, label.

Args: options_json: JSON array of option objects priority: cheapest/fastest/easiest/flexible/balanced currency: Display currency

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
options_jsonYes
priorityNobalanced
currencyNoUSD
Behavior3/5

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

With no annotations provided, the description is the sole source of behavioral info. It discloses that the tool ranks based on price, stops, duration, refundability, baggage, and hassle, but does not describe the output format, whether it returns sorted results, or if there are any side effects (e.g., mutation). It gives moderate transparency but lacks output details.

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 concise and well-structured. The first sentence captures the purpose, followed by a clear breakdown of parameters using the 'Args:' format. No unnecessary words or repetition.

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?

Given the lack of annotations and output schema, the description is moderately complete. It explains the input and scoring factors, but omits details on the output format (e.g., does it return ranked options with scores?), error handling, and whether the tool is read-only. More details would improve completeness.

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

Parameters5/5

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

The schema has 0% description coverage, so the description must compensate. It thoroughly explains the options_json parameter by listing permitted keys (price, duration_minutes, stops, etc.), specifies priority values (cheapest/fastest/easiest/flexible/balanced), and clarifies currency as display currency. This adds significant meaning beyond the bare schema.

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 clearly states the tool ranks flight/trip options on a 0-100 value score based on multiple criteria beyond price. It specifies the resource (flight/trip options) and the action (rank), distinguishing it from sibling tools like tool_search_flights or tool_compare_destinations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not provide guidance on when to use this tool versus alternatives. It assumes the agent has already obtained a list of options (e.g., from a search tool) but does not explicitly state this context or mention any prerequisites.

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/VirajMishra1/wander-agent'

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