Skip to main content
Glama

Báo giá chuyến

get_quote
Read-only

Request a time-limited, single-use trip quote with quote ID, VND fare, distance, pickup time, and expiry before creating a booking.

Instructions

Báo giá một chuyến. Trả về quote_id, giá (VND), quãng đường, giờ đón và expires_at. Quote có hạn và chỉ dùng được một lần. Sau khi có giá, PHẢI đọc lại cho người dùng (dịch vụ, điểm đón, điểm đến, giờ đón, giá) và chờ họ đồng ý trước khi gọi create_booking. pick_up_time bỏ trống là đi ngay. Chuyến hai chiều: ways = two_way và return_time.

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": {
      "service": "<service>",
      "pick_up": "<pick_up>",
      "destination": "<destination>"
    },
    "name": "get_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
waysNo
pick_upYesMột trong hai: { place_id } từ search_places, hoặc { lat, lng, address }
serviceYesthue-tai-xe: lái hộ ô tô; lai-ho-xe-may: lái hộ xe máy; taxi-san-bay, xe-hop-dong: xe kèm tài xế, cần car_type
car_typeNoBắt buộc với taxi-san-bay, xe-hop-dong; lấy từ list_services
destinationYesMột trong hai: { place_id } từ search_places, hoặc { lat, lng, address }
return_timeNoGiờ về của chuyến two_way
pick_up_timeNoISO 8601 kèm múi giờ, ví dụ 2026-12-05T19:30:00+07:00

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the behavior that actually matters: the quote is time-limited (expires_at) and single-use, so it must be consumed promptly. It also discloses a mandatory human-confirmation protocol before booking. It does not cover failure modes (invalid place_id, unpriced routes), which keeps it short of 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.

Conciseness4/5

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

Front-loads purpose and return values, then moves to constraints and the booking handoff, with no filler sentences. Slightly dense with ALL-CAPS emphasis, but every sentence carries new information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description enumerates the returned fields, which is the critical gap filled. For a 7-parameter tool it is nearly self-sufficient; only error/edge behavior (unserviceable addresses, expired quote reuse) is left unstated.

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?

With 86% schema coverage the schema already documents most parameters, but the description adds semantics absent from it: an omitted pick_up_time means immediate departure, and two_way requires return_time together with ways. These are decision-relevant couplings the schema alone leaves implicit.

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 specific verb and resource ("Báo giá một chuyến") and immediately enumerates the concrete return payload (quote_id, price in VND, distance, pickup time, expires_at), so an agent knows exactly what it gets. It is clearly distinguished from the sibling create_booking, which it names explicitly as a downstream step.

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 sequencing rule: after obtaining a price, read service/pickup/destination/time/price back to the user and wait for agreement before calling create_booking. It also resolves the most common ambiguity up front ("pick_up_time bỏ trống là đi ngay") and explains the two-way variant, leaving little to inference.

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