Skip to main content
Glama

Record inventory lines

lca_record_inventory

Record figures from a file already uploaded in Aevia, as lines for review. This connection cannot upload a file or create an inventory: pass inventory, an n<N> the user made in Aevia, with the base_version_seq lca_get shows. Reading it (lca_get, form='grid') and binding its lines need the user to allow dataset content for this connection in User settings → MCP Connector; until then a read and this result show only counts, and a binding is refused. A line names an anchor (a cell, or a range summed) or an expr over other lines, with no number; the server reads the value. Lines stay pending until the user confirms them, in Aevia only. A confirmed line binds as quantity: {inventory, line} in place of amount on lca_compose_assembly, lca_edit_assembly, engine_create_process and engine_edit_process only. A multi-product site adds each product's price line (line_price) and an allocation_method. After a corrected file, sync_inventory on either edit tool re-reads bound lines.

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": {
      "workspace": "<workspace>",
      "lines": "<lines>"
    },
    "name": "lca_record_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesThe lines to record (at most 200 per call). A call records all of them or none: when any is refused, nothing is recorded and the refusal names each refused line.
productsNoEvery product the site made in the period, each with the line of its annual output.
inventoryNoRecord into this inventory, `n<N>`, which the user made in Aevia.
workspaceYesName of the workspace to work in, as `lca_get(kind='workspaces')` lists it (backticks optional). Named on every call: several conversations can share one connection, and each names its own workspace. The connection's default is often an empty sandbox rather than the user's work.
base_version_seqNoExisting inventory: the `version_seq` you read it at. A later one refuses the call (409).
allocation_methodNoA site with several products: how its shared figures are split between them, recorded as a decision the user confirms in Aevia's review. The user chooses it: ask them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / lines / items / properties / derivation / description
      Previous value: -"How the figure came about, when the file says."New value: +"How the figure came about: default `measured` for a cell or range; a derived line's follows its operands. The review may change it."
  2. Changed2 schema fields changed
    • addedInput schema / properties / allocation_method
      Added value: +{
      +  "description": "A site with several products: how its shared figures are split between them, recorded as a decision the user confirms in Aevia's review. The user chooses it: ask them.",
      +  "enum": [
      +    "physical",
      +    "economic",
      +    "causal"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / products / items / properties / line_price
      Added value: +{
      +  "description": "A site with several products: the line holding this product's unit price (role `price`, one currency per the unit its amount is in), for economic allocation.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, non-idempotent mutation, and the description adds real behavioral context beyond them: lines stay pending until the user confirms in Aevia only, a refused line causes all-or-none failure, and reads/results degrade to counts without the dataset-content permission. It does not restate the safety hints, but it also does not quantify the atomicity failure mode beyond what the schema already says about refusals.

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?

Front-loaded with the core action and the two refusals that matter, then layered with prerequisites and downstream binding. The prose is dense and several sentences carry multiple clauses (permission gate, pending state, binding syntax), which costs a little readability but almost no sentence is expendable.

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 mutation tool with six parameters, no output schema and a pending-review workflow, the description covers what an agent needs: inputs' provenance, the permission prerequisite, that confirmation happens only in Aevia, atomic refusal, and how confirmed lines are consumed by the four named assembly/process tools. Nothing essential to calling it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns above that by tying parameters to other tools: `base_version_seq` comes from `lca_get`, the inventory is the user-created `n<N>`, and a multi-product site needs each product's `line_price` plus an `allocation_method` the user chooses. It adds cross-tool semantics the schema cannot express, though it leaves the anchor/expr distinction almost entirely to 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?

States a specific verb and resource ('Record figures from a file already uploaded in Aevia, as lines for review') and immediately bounds scope by denying what it is not: it cannot upload a file or create an inventory. That negative framing separates it cleanly from an import/create sibling an agent might otherwise reach for.

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

Usage Guidelines5/5

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

Explicitly names the prerequisites and where they come from: an `n<N>` inventory made in Aevia plus the `base_version_seq` that `lca_get` shows. It also states the permission gate (dataset content allowance in User settings → MCP Connector) and the consequence until it is granted, and it names `sync_inventory` as the follow-up after a corrected file, so the agent knows both when to call it and what to do afterwards.

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