Skip to main content
Glama
toshif1234

sap-ewm-io-agent

by toshif1234

detect_slow_moving_stock

Flags slow-moving or dead stock in a warehouse by comparing on-hand quantity against days since last movement. Requires a map of material IDs to their days since last movement.

Instructions

Flags slow-moving/dead stock by on-hand quantity vs. days-since-last-movement. Pulls on-hand quantities live from get_stock_overview for the given warehouse. DEPENDS ON: caller-supplied daysSinceLastMovement per material — this CANNOT currently be derived from get_goods_movement_history (blocked, no date field on that CDS view). Pass a movementAgeByMaterial map keyed by MaterialId.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
warehouseYesRequired — used to pull current stock via get_stock_overview.
minOnHandQtyNo
staleDaysThresholdNo
movementAgeByMaterialYesMap of MaterialId -> daysSinceLastMovement (required, no automatic source yet).
Behavior4/5

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

With no annotations, the description carries full transparency burdens. It explains the tool's live dependency on get_stock_overview and the required input map. It does not mention side effects or destructive actions, but it is clear about its read-like nature and limitations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences covering purpose, dependency, and limitation. No fluff, all information is essential and well-structured.

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

Completeness4/5

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

Given the complexity (nested object, no output schema), the description covers the core behavior, inputs, and a critical limitation. It does not explain the output format, but the lack of output schema makes that less critical. It is sufficient for correct usage.

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?

The description adds value for two of four parameters (warehouse and movementAgeByMaterial) by explaining their role and constraints. The other two parameters (minOnHandQty, staleDaysThreshold) have only schema descriptions. Given 50% schema coverage, the description compensates well for the key parameters.

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 clearly states the tool's purpose: 'Flags slow-moving/dead stock by on-hand quantity vs. days-since-last-movement.' It distinguishes itself from siblings like get_goods_movement_history and get_stock_overview by noting its dependency on pre-calculated movement age and its live stock pull from get_stock_overview.

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?

Explicitly tells the caller that movement age must be provided via a map and warns that get_goods_movement_history cannot be used as a source because it lacks a date field. This guides the agent on when to use this tool and what inputs are required.

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