Skip to main content
Glama

Order costs

food_order_costs
Read-onlyIdempotent

Retrieve a restaurant's delivery fee, ETA, minimum order, and coupon conditions for a given location to calculate the true total cost of ordering.

Instructions

Get the extra costs and conditions of ordering from one restaurant.

Delivery fee, ETA, minimum order and coupons (basket total needed, first-order only). Packaging is in food_menu.

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": {
      "vendor_code": "<vendor_code>",
      "lat": "<lat>",
      "long": "<long>"
    },
    "name": "food_order_costs"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesDelivery latitude.
longYesDelivery longitude.
vendor_codeYesVendor code, e.g. '947evd'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • changedInput schema / properties / lat / description
      Previous value: -"Delivery point latitude."New value: +"Delivery latitude."
    • changedInput schema / properties / long / description
      Previous value: -"Delivery point longitude."New value: +"Delivery longitude."
    • changedInput schema / properties / vendor_code / description
      Previous value: -"Vendor code, e.g. '947evd' (from food_search / food_restaurants)."New value: +"Vendor code, e.g. '947evd'."
  2. Changed8 schema fields changedv0.2.0
    • changedInput schema / properties / lat / description
      Previous value: -"Latitude of the delivery point (Iran: ~25 to ~40)."New value: +"Delivery point latitude."
    • removedInput schema / properties / lat / title
      Removed value: -"Lat"
    • changedInput schema / properties / long / description
      Previous value: -"Longitude of the delivery point (Iran: ~44 to ~63)."New value: +"Delivery point longitude."
    • removedInput schema / properties / long / title
      Removed value: -"Long"
    • changedInput schema / properties / vendor_code / description
      Previous value: -"Snappfood vendor code, e.g. '947evd' (from food_search / food_restaurants)."New value: +"Vendor code, e.g. '947evd' (from food_search / food_restaurants)."
    • removedInput schema / properties / vendor_code / title
      Removed value: -"Vendor Code"
    • removedInput schema / title
      Removed value: -"food_order_costsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "food_order_costsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real context about the returned conditions (coupon eligibility gated on basket total, first-order-only coupons), but says nothing about behavior when the coordinates fall outside a vendor's delivery zone, currency, or why lat/long are mandatory.

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?

Three tight sentences, front-loaded with the purpose, then the returned data, then the sibling boundary. No filler, and the parenthetical about basket-total and first-order coupons carries dense information in minimal space.

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?

With no output schema, the description does the necessary work of enumerating the returned fields, which is what an agent needs to decide to call it. Minor gaps remain around failure modes (non-deliverable location) and whether costs are per-order or per-item, but the essential contract is conveyed.

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 all three parameters (vendor_code, lat, long) are already documented with formats and bounds, making 3 the baseline. The description implies location matters for delivery pricing but adds no meaning beyond the schema about coordinate precision or vendor_code sourcing.

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 — retrieving the extra costs and conditions of ordering from one restaurant — and enumerates exactly what comes back (delivery fee, ETA, minimum order, coupons). It also explicitly separates itself from the sibling food_menu by noting packaging lives there, so an agent can assign the tool 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?

Usage context is clear (pre-order cost estimation for a given vendor and delivery point), and it names one alternative plus the boundary: packaging details belong to food_menu. It stops short of explicit when-not conditions or routing to siblings like food_find_cheapest or food_meal_for_one.

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