Skip to main content
Glama

execute_group_cart_and_split

Finalizes group food orders on Swiggy by computing proportional tax and fee splits per attendee and generating UPI payment links for reimbursement.

Instructions

Finalizes the group order on Swiggy Food by calling update_food_cart, calculates proportional tax/fees split per attendee, and generates ready-to-pay UPI payment links.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressIdYesAddress ID from get_addresses
hostUpiUpaNoHost UPI VPA for bill reimbursement
restaurantIdYesSelected Swiggy restaurant ID
assignedItemsYesOptimized items assigned to each participant
restaurantNameNoName of the restaurant

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose meaningful traits: this is a mutating finalization step, it delegates to update_food_cart, and it produces external UPI payment links. However, it omits whether the order placement is irreversible, what happens on partial failure, permissions required, or whether the links are live chargeable requests. Real context, but incomplete for a mutation tool with zero annotation coverage.

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?

A single front-loaded sentence that packs the purpose and all three side effects with no filler. It is slightly run-on, chaining three clauses, but every clause earns its place by naming a distinct behavior.

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?

There is no output schema and no annotations, so the description should ideally explain what comes back (payment links per attendee, split breakdown) and failure behavior. It hints at the outputs ('generates ready-to-pay UPI payment links', 'proportional tax/fees split per attendee') but never states the response shape or error handling. Minimally sufficient for a 5-parameter tool but with clear gaps.

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 5 parameters (addressId, hostUpiUpa, restaurantId, assignedItems, restaurantName) are already documented in the schema. The description adds no syntax, format, or constraint detail beyond what the schema provides. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Finalizes') and resource ('group order on Swiggy Food') and enumerates the concrete side effects: calling update_food_cart, computing a proportional tax/fee split, and generating UPI payment links. This lets an agent distinguish it from the sibling plan_and_optimize_group_meal, which is the planning stage. Differentiation is implied via 'Finalizes' rather than stated explicitly, which keeps it just short of a 5.

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

Usage Guidelines3/5

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

Usage is implied: 'Finalizes' signals this is the terminal execution step after planning, but the description never names the sibling plan_and_optimize_group_meal as the prerequisite, nor does it state when not to use it. No prerequisites (auth, valid cart state) or exclusions are given. Adequate but leaves sequencing to inference.

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