Skip to main content
Glama

Receipt Variances

get_receipt_variances
Read-only

Tenant-wide work queue of unresolved delivery-receipt variances — DR lines where the supplier-delivered cost and/or quantity differs from the sourced purchase order's line snapshot and no resolution decision (approve/reject/edit) has been recorded yet. Within-tolerance deltas are auto-approved at write time and never appear here. Each row carries varianceKinds (cost and/or quantity) plus the raw source/delivered values and deltas (delivered minus source). Ordered oldest-first (createdAt ascending) — it's a work queue. Paged: returns Total (pre-paging) plus the page; default 100, max 500. A client-pinned token sees only its own client's delivery receipts; an operator token sees the whole tenant's.

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_receipt_variances"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size (default 100, max 500).
offsetNoZero-based offset for paging (default 0).

Output Schema

NameRequiredDescriptionDefault
okNo
limitNo
totalNo
offsetNo
variancesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 openWorldHint=false, so the safety profile is covered. The description still adds genuine behavior beyond them: within-tolerance deltas auto-approve at write time and never appear, rows are ordered createdAt ascending, and a client-pinned token sees only its own client's receipts while an operator token sees the whole tenant.

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?

Front-loads what the queue is and what qualifies, then layers exclusions, row contents, ordering, paging and token scoping in short declarative sentences. No sentence is redundant and nothing restates the title or name.

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?

Complete for a paged read-only list: scope, inclusion/exclusion rule, row payload (varianceKinds, source/delivered values and deltas), ordering, paging contract and token visibility are all stated, and an output schema exists to cover exact return shapes. An agent has everything needed to call it correctly and interpret results.

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 both parameters already document defaults and the 500 cap, so the schema carries the burden. The description restates paging behavior (Total pre-paging plus the page; default 100, max 500) but adds no new meaning about limit/offset semantics, so baseline 3 applies.

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?

States a specific verb+resource (tenant-wide work queue of unresolved delivery-receipt variances) and then defines the resource precisely: DR lines where delivered cost/quantity differs from the PO line snapshot with no approve/reject/edit decision recorded. It also names what is excluded (within-tolerance deltas auto-approved at write time), so an agent can tell it apart from receipt or resolution tools without opening a schema.

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?

Clear context for when this tool applies — unresolved variances only, explicitly excluding auto-approved within-tolerance deltas — and the 'work queue' framing plus oldest-first ordering tells the agent how to consume it. It does not name a sibling to use for already-resolved variances or for the underlying receipt, so the alternative path is left implicit rather than stated.

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