Skip to main content
Glama
iseppo

e-arveldaja MCP Server

by iseppo

Compute Client Net Position

compute_client_debt
Read-onlyIdempotent

Calculate a client's net balance across specified accounts using journal-header client attribution; offsetting entries from other clients are excluded.

Instructions

Compute net position against a client across selected accounts. Entries are attributed by the journal header client, so offsetting postings under other clients are excluded — the result is not proof of personal debt when other clients share the account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
freshNoClear cached API/reference data first.
clients_idYesClient ID
account_idsNoComma-separated account IDs to check (default: 2110,2310,1210)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.25.3
  3. Removedv0.25.2
  4. First observedv0.18.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, so the safety profile is covered. The description adds real value beyond that: it discloses the attribution rule (journal header client) and warns that offsetting postings under other clients are excluded, so the result is not proof of personal debt. It omits the caching behavior implied by the 'fresh' parameter.

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 sentences, zero waste, with the core purpose front-loaded and the important interpretation caveat following. Every sentence earns its place.

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 read-only computation with a fully described schema and no output schema, the definition covers purpose, attribution semantics, and the key limitation. It could still say something about the shape of the returned net position, which the absent output schema leaves unaddressed.

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%, so all three parameters are already documented (including the default account list). The phrase 'across selected accounts' loosely maps to account_ids but adds no syntax or format detail, and 'fresh' is not elaborated. 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 gives a specific verb+resource: 'Compute net position against a client across selected accounts.' This is clearly distinguishable from generic siblings like compute_account_balance or compute_receivables_aging. It does not name or contrast with a sibling directly, so it stops 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 only implied — the tool computes a client net position, so an agent can infer when it applies. There is no explicit when-to-use/when-not statement and no alternative tool named (e.g. compute_account_balance for a single account). Adequate but with a clear gap.

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