Skip to main content
Glama
Beankeeper

Beankeeper

Official

inventory_match_document

Match a stock movement to a specific issued invoice or vendor bill line to keep inventory changes tied to the correct accounting document.

Instructions

Match the stock movement to a specific issued invoice or bill line.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "company": "<company>",
      "movement": "<movement>",
      "document": "<document>",
      "line": "<line>",
      "date": "<date>"
    },
    "name": "inventory_match_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesA real calendar date. Text input accepts the CLI's legacy unpadded dates.
lineYes
companyYes
documentYesA sales invoice or vendor bill ID.
movementYesImmutable physical movement of an item.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior3/5

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

The only annotation is readOnlyHint=false, so the agent knows this mutates state but nothing else. The word "issued" usefully signals a precondition that the document must already be issued before matching, which is real context the annotations do not carry. However, it never says what the match does (does it attach the movement to the line, overwrite a prior match, fail if already matched?) or whether it is reversible.

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?

A single sentence with the verb and object front-loaded and no filler. Its brevity is appropriate, though the compression leaves key behavior unsaid rather than merely short.

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

Completeness2/5

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

With five required parameters, no output schema, and a mutation annotation only, the definition should explain the resulting state and failure conditions. It instead leaves the agent to guess what a successful match returns and what happens if the line is already matched or belongs to a non-issued document.

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 coverage is 60%: date, document and movement already have schema descriptions, while company and line do not. The description adds only modest meaning, confirming that document/line refer to an issued invoice or bill line and that movement is a stock movement, which largely mirrors the schema text. It does nothing for the undocumented company parameter.

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

Purpose4/5

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

The description states a specific verb ("Match") and both resources involved: a stock movement and an issued invoice or bill line. An agent can tell this is a linking/association operation rather than a listing or mutation of the documents themselves. It stops short of naming or contrasting any sibling such as document_allocate.

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?

It gives no when-to-use guidance, no prerequisites beyond the implicit "issued" state, and no indication of how this differs from nearby tools like document_allocate or rule_match. The agent must infer the workflow position of this call entirely.

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

Deploy Server

Other Tools