Skip to main content
Glama
koble-mcp

koble-mcp

Official
by koblesystems

batches_from_csv

Convert approved MRP worksheet rows into read-only manufacturing-batch drafts for EBMS, validating finished goods, listing BOM components and quantities, and returning the exact POST body to create a batch.

Instructions

Turn approved MAKE rows of an MRP worksheet into manufacturing-batch drafts, read-only. For each it checks EBMS will accept the product as a finished good (it must be classified Track Count), lists every component from the bill of materials with its quantity per one finished good (EBMS does NOT add consumed materials itself when a batch arrives through the API), picks the warehouse (the one given, else where the product was last made), and returns the exact body to POST to INMFG with ebms_write. It creates nothing. Drafts mark nothing as made or consumed and never carry PROCESS: finishing and processing a batch is done by a person in EBMS. Show each draft and get a clear yes before writing it.

Input Schema

NameRequiredDescriptionDefault
csvNoThe worksheet's CSV text, exactly as the user attached or pasted it.
pathNoPath of the worksheet on this computer: the .xlsx workbook mrp_plan saved (after the user approved rows in it), or a CSV. Give this or csv.
companyYesRequired. Company, by ID or name. Must match the worksheet's company.
warehouseNoWarehouse ID for every batch. ASK the user if they have more than one; when omitted, each product's batch goes where it was last made.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.0
    • changedInput schema / properties / path / description
      Previous value: -"Path of the worksheet CSV on this computer. Give this or csv."New value: +"Path of the worksheet on this computer: the .xlsx workbook mrp_plan saved (after the user approved rows in it), or a CSV. Give this or csv."
  2. First observedv0.1.0-rc.1

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the whole burden and does so well: it declares read-only behavior ('It creates nothing'), that drafts mark nothing made or consumed, that PROCESS is never carried and must be finished by a person in EBMS, and that EBMS does NOT auto-add consumed materials via the API. It also discloses the Track Count acceptance check and the warehouse fallback rule.

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 a precise statement of what it does, and every clause is substantive (the Track Count check, the BOM quantity caveat, the draft-is-not-a-write warning). It is a dense single paragraph with a couple of long parentheticals that would read better as a short list, but little is wasted.

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?

No output schema exists, and the description explains what comes back (the exact POST body per draft) and how to use it (show each draft, get a clear yes). It does not describe the shape of the returned draft list beyond that, a minor gap for a tool with this much behavior to convey.

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 100%, so the schema already documents all four parameters. The description restates the warehouse defaulting rule ('the one given, else where the product was last made') and the company-match requirement, both of which already appear in the schema, so it adds little beyond the baseline.

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: turn approved MAKE rows of an MRP worksheet into manufacturing-batch drafts, read-only. That is clearly distinct from mrp_plan (which produces the worksheet) and ebms_write (which performs the POST), so an agent can separate it from siblings 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?

It gives the precondition (rows approved in the mrp_plan worksheet), names the follow-on tool ('returns the exact body to POST to INMFG with ebms_write'), and rules out human-only steps. It does not state explicit when-not conditions or contrast against import_from_csv/po_from_csv, so it falls just 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.