Skip to main content
Glama

efficiency

calculate_cash_conversion_cycle

Read-onlyIdempotent

Calculate the cash conversion cycle (CCC): DSO + DIO - DPO — the net number of days cash is tied up between paying suppliers and collecting from customers. Formula: CCC = Days Sales Outstanding + Days Inventory Outstanding - Days Payables Outstanding. WHEN TO USE: Use as the definitive working-capital efficiency measure: a shorter (or negative) CCC means less capital trapped in operations. WHEN NOT TO USE: Do NOT use unless all three components are computed on a consistent 365-day basis and comparable periods. BEHAVIOUR: pure deterministic calculation — no side effects, no network or storage access; idempotent and non-destructive; identical inputs always produce identical outputs. Division by zero or non-finite inputs returns an explicit error instead of a number. RETURNS: JSON object { cash_conversion_cycle_days: number (e.g. 57.7 days; negative = operating on supplier cash), inputs }. PARAMETERS: dso (required): Days sales outstanding, e.g. 45.6. dio (required): Days inventory outstanding, e.g. 60.8. dpo (required): Days payables outstanding, e.g. 48.7.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dioYesDays inventory outstanding, e.g. 60.8.
dpoYesDays payables outstanding, e.g. 48.7.
dsoYesDays sales outstanding, e.g. 45.6.

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses behavioral traits beyond annotations: no side effects, no network/storage access, idempotent, non-destructive, and specific error behavior for division by zero or non-finite inputs. While annotations already signal read-only idempotent non-destructive, the description adds deterministic behavior and explicit error handling, which is genuinely useful.

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?

The description is well-organized with labeled sections (purpose, when to use, behavior, returns, parameters), but the formula is stated twice: once in the opening sentence and once in the explicit Formula section. Minor redundancy aside, the structure is front-loaded and scannable.

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?

For a deterministic calculation with three numeric parameters, coverage is comprehensive: annotations handle safety, schema handles parameter definitions, and the description supplies usage conditions, behavioral guarantees, error behavior, return shape, and interpretation of negative results. No output schema exists, but the RETURNS section fully documents the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with each parameter described and exemplified, so the baseline is 3. The description adds meaning by tying the three parameters to the formula (DSO + DIO - DPO), clarifying they are components that produce days, and noting a negative result means operating on supplier cash. This goes slightly beyond the schema's per-parameter examples.

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 and object ('Calculate the cash conversion cycle') and immediately distinguishes it from sibling component tools by presenting the composite formula CCC = DSO + DIO - DPO. It clearly identifies the tool as the aggregate measure, not one of the individual day/ratio tools in the sibling list.

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

Usage Guidelines5/5

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

Explicit WHEN TO USE and WHEN NOT TO USE sections give direct guidance: use as the definitive working-capital efficiency measure, but avoid unless all components are on a consistent 365-day basis and comparable periods. This goes beyond generic context and helps an agent decide when to invoke this tool versus component-level tools.

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.

TDQS

A4.4/5.0
Disambiguation4/5

Each tool calculates a distinct financial efficiency ratio, but some boundaries are close: the turnover/day pairs (e.g., inventory_turnover vs. days_inventory_outstanding) cover conceptually related metrics, and asset_turnover vs. fixed_asset_turnover could initially be confused. The detailed WHEN TO USE guidance does help disambiguate, so misselection risk is low but not zero.

Naming Consistency5/5

All tool names follow the exact same calculate_<metric> pattern, making the set highly predictable and easy to scan. There are no mixed conventions, position variations, or inconsistent verb forms.

Tool Count5/5

Nine tools is a well-scoped size for a financial efficiency calculation server. Each tool corresponds to a standard, distinct efficiency ratio, and none feel redundant or unnecessary.

Completeness4/5

The set covers the core efficiency ratio family comprehensively: asset, fixed asset, inventory, receivable, and payable turnover, plus their days-based counterparts and the cash conversion cycle. Minor gaps remain, such as no direct working-capital-turnover or operating-cycle calculator, but agents can assemble those from the existing outputs.

Resources