Skip to main content
Glama

get_cospend_project_settlement

Read-onlyIdempotent

Suggest reimbursement transactions to settle a Cospend project's shared expenses, optionally centered on a member or limited to a date.

Instructions

Suggested reimbursement transactions to settle a Cospend project.

Requires VIEWER access.

Args: project_id: String project id. centered_on: Member id to center the plan on. All suggested transactions will involve this member (e.g. "everyone pays Alice"). max_timestamp: Settle up to this date (Unix seconds). Member balances will be zero at this date and bills after it are ignored.

Returns: JSON object with transactions (list of {from, to, amount} — from/to are member ids) and balances (map of member-id → current balance).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
centered_onNo
max_timestampNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/destructiveFalse annotations, the description discloses meaningful behavior: centered_on restricts all suggested transactions to involve that member, and max_timestamp causes member balances to be zero at that date while ignoring later bills. This gives the agent a realistic model of the computation's semantics.

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 compact and well-structured with an Args/Returns layout. The first sentence states the core purpose, and every subsequent sentence adds parameter or return-value detail without fluff. It is appropriately sized for a three-parameter read-only tool.

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

Completeness5/5

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

The description covers access requirements, all parameters, and the return shape including the structure of transactions and balances. Since an output schema is present and the return format is also explained, an agent has everything needed to select and invoke this tool correctly.

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?

Schema description coverage is 0%, so the description carries the full burden of parameter documentation. It explains all three parameters: project_id as the project identifier, centered_on as the focal member whose involvement is guaranteed, and max_timestamp with its Unix-seconds format and cutoff behavior.

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 opens with a specific verb-plus-resource statement: 'Suggested reimbursement transactions to settle a Cospend project.' This clearly conveys what the tool computes and distinguishes it from sibling tools like get_cospend_project_statistics or list_cospend_bills, which serve different purposes.

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?

The description clearly frames when to use the tool: when settlement suggestions are needed for a Cospend project, and it explicitly states the required access level ('Requires VIEWER access'). It does not enumerate alternatives or exclusions, but no sibling tool covers settlement, so the context is clear enough.

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

Deploy Server

Other Tools