Skip to main content
Glama

inventory_costing__weighted_average_cogs

Compute weighted average cost of goods sold from purchase data and units sold to value inventory.

Instructions

[inventory-costing] weighted_average_cogs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
purchasesYes
units_soldYes
Behavior1/5

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

No annotations exist, so the description must disclose behavioral traits. It does not mention any constraints, side effects, output format, or calculation methodology. The agent has no insight into what happens when the tool is invoked.

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

Conciseness2/5

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

While the description is very short, it is underspecified rather than concise. Important information is omitted, and the structure does not help the agent understand the tool.

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

Completeness1/5

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

Given the tool's complexity (inventory costing with two parameters, no output schema, no annotations), the description is completely inadequate. It fails to explain the calculation, assumptions, input format, or return value.

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

Parameters1/5

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

Schema description coverage is 0%, and the description adds no information about what 'purchases' (array) or 'units_sold' (number) represent. The agent cannot understand the expected input format or meaning.

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

Purpose2/5

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

The description is essentially a repetition of the tool name 'weighted_average_cogs' with a category prefix. It does not clearly state what the tool does beyond what the name implies. A specific verb and resource are missing, making it a tautology.

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 indication of when to use this tool versus siblings like FIFO or LIFO. No context, prerequisites, or exclusions are provided.

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/GAJETOso/financeskills'

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