Skip to main content
Glama

Vibe of the City

Trip money

get_trip_balances
Read-onlyIdempotent

Who paid what on a trip, who owes whom, and the fewest transfers that settle it. Read-only: expenses are added in the app. Use it for "who owes what" or "how much have we spent".

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": {
      "trip_id": "<trip_id>"
    },
    "name": "get_trip_balances"
  }
}

Input Schema

NameRequiredDescriptionDefault
trip_idYesFrom list_my_trips.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds the useful operational fact that expenses cannot be added here, which prevents a futile write attempt, but says nothing about behavior when no expenses exist (empty vs. error).

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?

Two tight sentences: the first front-loads the returned content, the second carries the read-only constraint and the use triggers. No filler or redundant restatement of the tool name.

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?

For a one-parameter, read-only computation tool with full annotation coverage and no output schema, the description covers what it computes and that it is read-only. Only the empty/no-expenses case and rough shape of the settlement result are left implicit.

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 coverage is 100% and the single trip_id parameter already documents its provenance ('From list_my_trips'), so the schema carries the parameter burden. The description adds no further parameter meaning, which is acceptable at the baseline for fully documented schemas.

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 names the concrete content returned — who paid, who owes whom, and the minimal transfer set that settles debts — which is far more specific than the tool name alone. It is clearly differentiated from the sibling trip/place tools, none of which compute balances or settlements.

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?

It gives explicit use triggers ('who owes what', 'how much have we spent') and states that expenses are added in the app, implicitly telling the agent this tool cannot record spending. It stops short of naming an alternative tool for trip context or expense entry, but the context is clear enough to route correctly.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources