Skip to main content
Glama

Inventory Value

get_inventory_value
Read-only

Total VALUE of inventory on hand, from the cost layers: the cost still in each item's FIFO or average layers, the same value the accounting ledger's Inventory Asset carries. On hand INCLUDES reserved units (still owned); availableValue prices only the available units. Per-warehouse breakdown ranked by value; each warehouse's units are priced at the item's layer unit cost. unreconciledValue is layer value no warehouse row accounts for; unvaluedUnits are units with no cost layer (valued 0). Optionally value a single warehouse via warehouseId; omit to value all. Read-only.

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": "get_inventory_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
warehouseIdNoOptional warehouse id (GUID) to value one warehouse; omit for all warehouses.

Output Schema

NameRequiredDescriptionDefault
okNo
itemCountNo
totalValueNo
warehousesNo
unvaluedUnitsNo
availableValueNo
valuationBasisNo
totalOnHandUnitsNo
unreconciledValueNo
unvaluedItemCountNo
totalReservedUnitsNo
totalAvailableUnitsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and closed-world, and the description correctly reinforces 'Read-only.' It adds genuine behavioral context beyond the annotations – on-hand includes reserved units, each warehouse's units are priced at the item's layer unit cost, and unreconciledValue/unvaluedUnits explain how gaps are handled. Much of this is output-field glossing that overlaps with the output schema, keeping it below a 5.

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

Conciseness3/5

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

The purpose is front-loaded, but the body is a dense run of field glosses (availableValue, unreconciledValue, unvaluedUnits) packed into three sentences, several of which restate what the output schema can already carry. It is informative but heavier than necessary for a one-parameter read tool.

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?

With annotations covering safety, a fully documented single parameter, and an output schema in place, the description supplies all an agent needs to call it correctly and interpret the headline distinction. Nothing critical is missing, though the heavy field-level detail is partly redundant given the output schema.

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 description coverage is 100% and the single warehouseId parameter is already documented as an optional GUID with omit-for-all semantics. The description restates exactly that without adding format, error, or edge-case detail, so the baseline of 3 is appropriate.

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 opens with a specific verb-and-resource statement: the total VALUE of inventory on hand derived from cost layers, explicitly tied to the ledger's Inventory Asset. It also separates this from the adjacent 'availableValue' metric, so an agent knows it is getting total on-hand value, not sellable value.

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?

It states the parameter's usage condition ('value a single warehouse via warehouseId; omit to value all') and clarifies the total-vs-available distinction, which implies when to use it. However, it never names a sibling tool to prefer or avoid, so the agent must infer routing from sibling names alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources