Skip to main content
Glama

onboarding-goods-receipt-inspection-runs

List discrepancies

grn_discrepancy

List lines that are not as ordered: damaged units, a declared shortage, or received below the PO line's under tolerance. Optionally filter to one PO.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
poNoOnly discrepancies on this purchase order
includeResolvedNoInclude GRNs that are closed (resolved)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

The description adds useful domain context by defining what counts as a discrepancy and implies a read-only listing operation. But annotations do not provide a positive safety profile (readOnlyHint=false, destructiveHint=false), and the description doesn't clarify whether closed/resolved GRNs are excluded by default or whether listing has any side effects. There is no direct contradiction with the annotations.

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?

Two sentences earn their place. The first defines purpose and criteria; the second covers the one optional filter. There is no filler, repetition, or unnecessary detail.

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?

For a simple tool with zero required parameters and no nested objects, the description plus schema is nearly sufficient. The main gaps are the absence of an output schema and no explicit note about side effects or resolved-GRN behavior, but these are minor given the low complexity.

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%, so both parameters are already documented. The description only restates that the PO parameter is an optional filter and adds no new format, default, or interaction details beyond the schema.

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: 'List lines that are not as ordered.' It then enumerates concrete discrepancy types (damaged units, declared shortage, under tolerance), which clearly differentiates this tool from siblings like grn_list and grn_get.

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?

The intended use is clear: surface receiving discrepancies rather than all GRNs. The optional PO filter is stated. However, it doesn't explicitly name sibling alternatives or give when-not-to-use guidance, so it stops short of a 5.

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.