Skip to main content
Glama
BUSY MCP Server

BUSY MCP Server

stock-by-location

Read-onlyIdempotent

Retrieve closing stock quantities per item and material centre (godown/branch), including totals per location, filtered by financial year, as-on date, item, or location.

Instructions

Closing quantity per item per material centre (godown/branch), with totals per location.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stock-by-location"
  }
}

Input Schema

NameRequiredDescriptionDefault
fyNoFY start year, e.g. 2024 = FY 2024-25 (default: selected year)
itemNo
as_ofNoAs-on date YYYY-MM-DD (default: FY end)
limitNoPage size
offsetNoPagination offset (use next_offset from the previous page)
companyNoCompany code e.g. COMP0001 (default: selected company)
locationNo
include_zeroNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/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 only the 'totals per location' output trait, and says nothing about pagination behaviour (limit/offset and next_offset), default fiscal-year/company scoping, or whether include_zero changes the row set — all behaviours the agent must reason about.

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 compact sentence with the key granularity front-loaded and no filler. It is efficient, though the terseness is part of why guidance is missing rather than a model of economy.

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 an output schema present, return values needn't be described, and annotations cover the read-only contract. But for an 8-parameter report tool with three undocumented parameters and multiple overlapping stock siblings, one sentence is thin — an agent has enough to call it, but not enough to choose it confidently.

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

Parameters2/5

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

Schema coverage is 63%: fy, as_of, limit, offset and company are documented in the schema, but item, location and include_zero have no descriptions anywhere. The description's mention of 'per item' and 'per location' hints at dimensions but does not clarify that these are filters, nor what include_zero does, so it fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description conveys the report's content and granularity (closing quantity per item, per material centre/godown, with location totals), which is more than a restatement of the name. However, it is a bare noun phrase with no verb (retrieve/report/list) and never distinguishes itself from near-neighbours such as stock-summary or batch-stock, leaving the agent to infer the difference.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: no statement of the question this report answers versus stock-summary, stock-item-movement, or batch-stock, and no mention of prerequisites or what to do when a location is unknown. The agent must guess based on the tool name alone.

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