Skip to main content
Glama

Audit stock

audit_stock
Read-onlyIdempotent

Check stock for problems, without changing anything: negative counts, items Shopify keeps selling at 0, Acrium counts that don't match Shopify's (allowing for open orders), SKUs in Shopify with no Acrium item and the other way round, and duplicate SKUs. Each problem comes with a suggested fix using the existing inventory tools. Ask the owner before changing counts. Runs daily too: problems show in get_attention_items.

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

Input Schema

NameRequiredDescriptionDefault
project_idNo
drift_thresholdNoCount gaps this size or smaller are ignored (default 2).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is largely covered; the description nonetheless reinforces it and adds genuinely new behavior: suggested fixes are advisory, changing counts requires owner approval, and the audit also runs daily with results surfaced in get_attention_items. It does not describe output volume or performance characteristics, keeping it short of 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.

Conciseness4/5

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

The read-only guarantee is front-loaded, followed by a compact enumeration of problem classes, then the workflow caveat and the background-run note. The problem list is long but each item adds discriminating information; only the density of the single run-on list keeps it from a 5.

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

Completeness5/5

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

For a read-only, output-schema-less audit tool, the description covers what is checked, what is returned (problems with suggested fixes), the approval constraint, and where results resurface. An agent has everything needed to call it correctly; the only omission is the undocumented project_id, which is optional.

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?

Schema coverage sits at 50%: drift_threshold is documented in the schema (default 2, gaps at or below are ignored) while project_id has no description anywhere. The description mentions neither parameter, so it adds no meaning beyond the structured schema and leaves project_id entirely unexplained.

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 states a specific verb and resource ('Check stock for problems') and then enumerates the exact classes of problems found: negative counts, items selling at 0, Acrium/Shopify count mismatches, orphan SKUs in either direction, and duplicate SKUs. This is far more specific than the sibling inventory readers (list_inventory, get_inventory_overview), which an agent can distinguish immediately.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly frames the use case as diagnostic and explicitly read-only ('without changing anything'), and routes ongoing/background findings to get_attention_items. It also states the workflow constraint to ask the owner before changing counts. It does not explicitly name a sibling for plain inventory listing, but the when-to-use condition is unambiguous.

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.