Skip to main content
Glama
toshif1234

sap-ewm-io-agent

by toshif1234

calc_safety_stock

Calculates safety stock using the Z-score method driven by service level. Requires average demand, demand standard deviation, and lead time statistics.

Instructions

Calculates safety stock via the Z-score method (service-level driven). DEPENDS ON: demand/lead-time statistics which would normally come from get_goods_movement_history (currently blocked) — for now, pass these values directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zNo
demandStdDevYes
serviceLevelNo
leadTimeStdDevNo
avgDemandPerPeriodYes
avgLeadTimePeriodsYes
Behavior3/5

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

The description discloses the computation method and the data dependency (demand/lead-time statistics), which is good. However, it lacks details on side effects, assumptions (e.g., normality of demand), or what happens with inputs like z vs serviceLevel.

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 concise, consisting of two informative sentences. The key purpose is front-loaded, and the dependency note follows naturally. Minor improvement would be to structure parameter explanations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema and requires detailed parameter input. The description does not mention the return value or formula, leaving the agent to infer what 'safety stock' means as an output. This omission reduces completeness.

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?

With 0% schema description coverage, the description carries the full burden for parameter meaning. It only vaguely refers to 'demand/lead-time statistics' and does not explain parameters like avgDemandPerPeriod, demandStdDev, or the interplay between z and serviceLevel.

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 clearly states it calculates safety stock using the Z-score method, which is specific and actionable. However, it does not explicitly distinguish itself from the sibling tool 'calc_reorder_point', which likely has a different focus.

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?

The description provides no guidance on when to use this tool versus alternatives like calc_reorder_point or forecast_demand. It mentions a dependency on get_goods_movement_history but does not offer explicit usage context or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/toshif1234/IO-Agent-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server