Skip to main content
Glama
BUSY MCP Server

BUSY MCP Server

batch-stock

Read-onlyIdempotent

Retrieves batch-wise closing stock quantities with manufacturing and expiry dates, MRP, and rates; use expiring_within_days to list near-expiry inventory.

Instructions

Batch-wise closing quantity with manufacturing and expiry dates, MRP and rates; expiring_within_days lists near-expiry stock.

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": "batch-stock"
  }
}

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)
expiring_within_daysNo

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=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered elsewhere. The description adds the useful behavioral fact that returned rows carry mfg/expiry dates, MRP and rates, but says nothing about defaults, pagination behavior, or result size limits.

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 that front-loads the returned content and then the near-expiry use case. Nothing is wasted, though the semicolon clause about expiring_within_days would read better as its own sentence.

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 7 optional parameters, an output schema, and full annotations, the description does not need to explain return shape or safety. It is adequate but leaves the 'item' filter undefined and gives no hint that results are paginated via next_offset, which matters for a default page size of 300.

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 71%, above the low-coverage threshold, so the schema carries most parameter meaning (fy, as_of, limit, offset, company are all documented). The description only adds real meaning for expiring_within_days, the one material parameter with no schema description, and leaves 'item' undocumented in both places.

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 result set: batch-wise closing quantity plus manufacturing/expiry dates, MRP and rates. That is concrete enough that an agent can distinguish it from aggregate siblings like stock-summary or stock-by-location, though no sibling is named explicitly.

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: it is a batch-level stock report, and the clause 'expiring_within_days lists near-expiry stock' signals one concrete use case. There is no explicit statement of when to prefer this over stock-summary or stock-item-movement, and no prerequisites or exclusions are given.

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