Skip to main content
Glama
BUSY MCP Server

BUSY MCP Server

sales-purchase-analysis

Read-onlyIdempotent

Get sales or purchase totals by party, item, month, or voucher, net of returns, with tax-inclusive and tax-exclusive figures for accounting review.

Instructions

Sales or purchase totals by party, item, month or voucher, net of returns, incl. and excl. tax.

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": {
      "kind": "<kind>"
    },
    "name": "sales-purchase-analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
fyNoFY start year, e.g. 2024 = FY 2024-25 (default: selected year)
topNo
kindYes
companyNoCompany code e.g. COMP0001 (default: selected company)
to_dateNoEnd date YYYY-MM-DD (default: FY end)
group_byNoparty
from_dateNoStart date YYYY-MM-DD (default: FY start)
vch_typesNoOverride voucher type codes, e.g. [9]

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered structurally. The description adds one genuinely valuable behavioral fact: figures are net of returns. However, it leaves ambiguous whether tax-inclusive and tax-exclusive values are both returned or selectable, and says nothing about ranking behavior for the top limit.

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 dense sentence with the aggregation dimension front-loaded and no filler. The trailing phrase 'incl. and excl. tax' is compressed to the point of ambiguity about whether both figures are returned, which is the only structural weakness.

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?

With 8 parameters, an output schema covering return shape, and annotations covering safety, the description carries a reasonable share of the load. It still omits what the top parameter does to results and what the aggregation granularity implies for output rows, gaps an agent would notice when grouping by month versus voucher.

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 63%, so the schema documents most parameters (fy, company, dates, vch_types defaults). The description reinforces the group_by enum values (party, item, month, voucher) and the sales/purchase split, but adds nothing about top or how vch_types interacts with the 'net of returns' claim. It is a marginal addition over the structured fields.

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 names a specific resource and computation: sales or purchase totals aggregated by party, item, month, or voucher. It states the measurement basis (net of returns, with and without tax), which an agent cannot infer from the name alone. It does not distinguish itself from adjacent reporting siblings such as group-summary or ledger-balance, 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 implied by the scope statement: the tool is for aggregate sales/purchase totals rather than transactional detail. There is no explicit guidance on when to prefer this over group-summary or ledger-monthly, and no stated prerequisites or exclusions. An agent can infer the use case but must guess at alternatives.

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