Skip to main content
Glama

Octobooks

Goods in, or a late cost on a batch

stock_intake

Goods into stock from a supplier's e-invoice, or a late cost onto a batch (round 473, feature 528). action=take_in with document_id (an invoice whose goods wait), extra_cost (the delivery's transport, duty and fees; 0 if none, spread over the lines by value into each batch's landed cost) and checked_in ({line: pieces} only where fewer or more came than invoiced). action=late_cost with product, batch_day (the day the batch came in), amount (net) and document_id of the freight or duty bill: the pieces still on hand cost their share more, the share of pieces already sold is cost of sales. action=land_bill with batch_day (the day the delivery came in), amount (net) or bill_document_id (another supplier's freight or duty bill, its net read, in its currency at rate or the rate on file), spread (value, quantity, weight, volume), volumes or weights ({product: per piece}), products (some of the delivery) or document_id (the delivery's supplier invoice): one late cost per batch of the delivery, each its share. Each goes forward as a pending action, carried out on its release (release; the owner's switches decide).

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

Input Schema

NameRequiredDescriptionDefault
noteNo
rateNo
actionNotake_in
amountNo
spreadNo
companyNo
productNo
volumesNo
weightsNo
productsNo
batch_dayNo
checked_inNo
extra_costNo
document_idNo
idempotency_keyNo
bill_document_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the mutating nature is known. The description adds genuine behavioral context beyond that: actions are staged as pending and only executed on release, with the owner's switches deciding, and it specifies how extra_cost is spread over lines by value into landed cost. It omits permission/auth requirements and says nothing about the idempotency_key parameter despite idempotentHint=false.

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

Conciseness2/5

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

The whole definition is a single run-on sentence packed with nested parentheses and semicolon-separated clauses, making it hard to scan. It is front-loaded with the tool's purpose, which helps, but the lack of structure across three distinct actions and 16 parameters costs readability.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and the deferred-release behavior is disclosed. Against 16 parameters with zero schema coverage and no required parameters, though, key gaps remain: which fields are mandatory per action, what idempotency_key does, and how the 'rate' fallback resolves are not fully clear.

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 0% across 16 parameters, so the description must carry the load. It does explain action, document_id, extra_cost, checked_in, product, batch_day, amount, bill_document_id, spread, volumes, weights and products in contextual terms (e.g. checked_in as {line: pieces} only for discrepancies). But note, company, idempotency_key and the rate parameter's resolution order are left unexplained, so it only partially compensates.

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 names three concrete actions (take_in, late_cost, land_bill) and ties each to a specific resource (supplier e-invoice goods, batch cost, freight/duty bill), so an agent can tell what the tool does. It is dense and the title ('Goods in, or a late cost on a batch') does not mention land_bill, but the body compensates. It does not explicitly contrast with the sibling 'stock' or 'bill' tools.

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?

The action= branches implicitly define which situation selects which mode, and the 'each goes forward as a pending action, carried out on its release' line signals a deferred workflow. However, there is no explicit statement of when to use this tool rather than the sibling 'stock' or 'bill' tools, and no prerequisites or exclusions are given.

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