Skip to main content
Glama

Battery ERP — Gestión de materiales, celdas, packs y cadena de suministro con precios en tiempo real

precios de materias primas y analíticas de Fabric Lakehouse.

Cubre toda la cadena de valor de la batería: litio, cobalto, níquel, manganeso, grafito

a través de las químicas de celdas (NMC-811, NCA, LFP, LMO) hasta los packs de batería con costes de BOM,

evaluación de proveedores, gestión de inventario y escenarios de coste hipotéticos.

Python PyPI License Tests Fabric

mcp-name: io.github.icohangar-battery/battery-erp


Qué es esto

Battery ERP gestiona la cadena de valor completa de la batería, desde la obtención de materias primas, pasando por la fabricación de celdas hasta el ensamblaje de packs. Cada coste se puede remontar a un material, proveedor y punto de precio concretos.

Capa

Rol

Knowledge Models

RawMaterial, CellChemistry, BatteryCell, BatteryPack, BOMItem, Supplier, InventoryRecord, PurchaseOrder, ManufacturingBatch

Bienes raíces

Acumulación de costes BOM, gestión de estados de inventario, puntuación de proveedores (calificación compuesta A-D), seguimiento de rendimiento de fabricación, análisis de tendencias de precios, escenarios de coste hipotéticos

Motor de precios

Tabla de precios de materiales por defecto (más de 20 materiales), integración con AlphaVantage para precios en vivo de materias primas, superposición macro de FRED

Analíticas

Informe de salud de inventario, análisis de inventario, informes de cadena de suministro, informes de rendimiento de fabricación, cuadros de comparección de costes por química

Fabric Lakehouse

11 tablas Delta para almacenamiento persistente y analítica SQL


Related MCP server: foundry net-industrial

Inicio rápido

# From PyPI — https://pypi.org/project/battery-erp/
python3 -m pip install 'battery-erp[mcp]'   # MCP tools
python3 -m pip install 'battery-erp[api]'   # REST adapter

# From source
git clone https://github.com/icohangar-ops/battery-erp.git
cd battery-erp
python3 -m pip install -e '.[dev]'
PYTHONPATH=src python3 -m pytest tests/ -v

# Domain modules
python3 -c "
from battery_erp.pricing import calculate_cell_cost_summary, get_material_price_table
prices = get_material_price_table()
for chem in ['NMC-811', 'NMC-622', 'NCA', 'LFP', 'LMO']:
    r = calculate_cell_cost_summary(chem, 50.0, prices)
    print(f'{chem}: \${r[\"cost_per_kwh\"]:.1f}/kWh (BOM: \${r[\"bom_cost_usd\"]:.2f})')
"

Arquitectura

                    ┌──────────────────────────────────────┐
                    │  Raw Materials (20+ tracked)          │
                    │  Lithium · Cobalt · Nickel · Mn · Gr  │
                    └──────────────┬───────────────────────┘
                                   │ BOM
                    ┌──────────────▼───────────────────────┐
                    │  Cell Chemistries                     │
                    │  NMC-811 · NMC-622 · NCA · LFP · LMO  │
                    └──────────────┬───────────────────────┘
                                   │ cells + components
                    ┌──────────────▼───────────────────────┐
                    │  Battery Packs                        │
                    │  EV · ESS · Consumer · Industrial     │
                    └──────────────────────────────────────┘

Side modules:
  ┌─────────────────┐  ┌──────────────────┐  ┌──────────────────┐
  │ Supplier Scoring │  │ Inventory Mgmt   │  │ Cost Scenarios    │
  │ Composite 0-100  │  │ Reorder logic    │  │ What-if analysis  │
  │ A/B/C/D grades   │  │ Status tracking  │  │ Price shock model │
  └─────────────────┘  └──────────────────┘  └──────────────────┘

Módulos principales

battery_erp.core.models

Todas las dataclasses del dominio:

  • RawMaterial — catálogo de materiales con precios, códigos HS y peligros

  • CellChemistry — NMC-111/622/811, NCA, LFP, LMO con densidad energética y vida útil

  • BatteryCell — especificaciones de celda (capacidad, voltaje, formato, peso)

  • BatteryPack — ensamblaje de pack (celdas + BMS + térmica)

  • BOMItem — línea de la lista de materiales (BOM) con factor de desperdicio

  • Supplier — catálogo de proveedores con calificación de calidad, plazo de entrega, certificaciones

  • InventoryRecord — posiciones de almacén con lógica de reposición

  • PurchaseOrder — seguimiento del ciclo de vida de las órdenes de compra (PO)

  • Materiallist — seguimiento de los lotes de producción

  • PriceHistory — serie temporal de precios de materias primeras

battery_erp.core.rules

Reglas de negocio deterministas:

  • rollup_bom_cost() — coste total BOM con desglombre de materiales y coste de desperdicio

  • calculate_cell_bom() — genera un BOM representivo para cualquier química

  • calculate_pack_bom() — BOM a nivel de pack (celdas + carcasa + BMS + refrigeración)

  • update_inventory_status() — recalcula in_stock/low/out_of_stock

  • check_reorder_suggestions() — genera sugerencias de pedido de compra

  • calculate_batch_metrics() — agrega el rendimiento de fabricación

  • analyze_price_history() — análisis de tendencia de precios con volatilidad

  • estimate_cell_cost_impact() — modelización de escenarios de coste hipotéticos

  • calculate_pack_metrics() — densidad de energía y eficiencia del pack

battery_erp.supply_chain

Gestión de la cadena de suministro:

  • score_supplier() — puntuación compuesta (calidad 35%, OTD 35%, plazo de entrega 20%, certificaciones 10%)

  • rank_suppliers() — clasificar por puntuación, filtrar por material

  • create_purchase_order() — creación de la órden de compra a partir de datos del proveedor

  • analyze_po_pipeline() — análisis del pipeline de pedidos (detección de retrasos, seguimiento de plazos)

  • suggest_dual_sourcing() — recomendación de estrategia de doble abastecimiento

battery_erp.pricing

Precios de materias primeras:

  • get_material_price_table() — precios por defecto para más de 20 materiales de batería

  • calculate_cell_cost_summary() — estimación rápida de coste por química

  • update_prices_from_alpha_vantage() — obtención de precios de materias primeras en vivo

  • update_prices_from_fred() — indicadores macroeconómicos

battery_erp.analytics

Informes y paneles:

  • generate_inventory_report() — panel de salud de inventario completo

  • generate_supply_chain_report() — informe de proveedores y sistema de pedidos

  • generate_manufacturing_report() — métricas de rendimiento de fabricación

  • generate_pricing_report() — comparación de costes por química y tendencias de precios


Comparación de coste de las química (precios por defecto, celda de 50Ah)

Química

Coste BOM

$/kWh

Cátodo %

Característica principal

LFP

El menor

~$50-60

~35%

Sin Co/Ni, ultraseguro, más de 4000 ciclos

LMO

Bajo

~$55-70

~40%

Bajo coste, herramientas eléctricas

NMC-111

Medio

~$70-80

~50%

Los cilindro, heredada

NMC-622

Medio

~$75-85

~48%

Buen equilibrio energía-coste

NMC-811

Más alto

~$80-90

~52%

Alta energía, dominante en plantillas

NCA

El más alto

~$90-95

~55%

Buque insignia de Tesla, 270 Wh/kg


Integración con Microsoft Fabric

Fabric Notebooks

Notebook

Propósito

fabric_setup_lakehouse.py

Crear las 11 tablas Delta con datos de ejemplo

fabric_cost_dashboard.py

Panel de control de costes completo (comparación de celdas, costes de pack, inventario, proveedores, tendencias de precios, escenarios)

Esquema de Tabla Delta

Tabla

Columnas clave

raw_materials

material_id, nombre, categoría, unit_price_usd, price_source, hs_code (en el esquema original: material\_id, name, category, unit\_price\_usd, price\_source, hs\_code)

cell_chemistries

chemistry_id, name, cathode, energy_density_wh_per_kg, cycle_life (en el original: chemistry\_id, name, cathode\_type, energy\_density\_wh\_per\_kg, cycle\_life)

battery_cells

cell_id, sku, chemistry, form_factor, nominal_capacity_ah, energy_wh, weight_kg (original: cell\_id, sku, chemistry, form\_factor, nominal\_capacity\_wh, energy\_wh, weight\_kg)

battery_packs

pack_id, sku, cell_sku, total_cells, nominal_capacity_kwh, weight (original: pack\_id, sku, cell\_sku, total\_cells, nominal\_capacity\_kwh, pack\_weight\_kg)

bill_of_materials

bom_id, parent_sku, material_name, quantity, unit_cost, waste_factor (original: bom\_id, parent\_sku, material\_name, quantity\_per\_unit, unit\_cost\_usd, waste\_factor\_pct)

suppliers

supplier_id, name, country, materials_supplied, quality_rating, lead_time_days (original: supplier\_id, name, country, materials\_supplied, quality\_rating, lead\_time\_days)

inventory

record_id, sku, material_name, quantity_on_hand, reserved, reorder_point (original: record\_id, sku, material\_name, quantity\_on\_hand, quantity\_reserved, reorder\_point)

purchase_orders

po_id, po_number, supplier_name, quantity, total_usd, status, cta (original: po\_id, po\_number, supplier\_name, quantity, total\_usd, status, expected\_delivery)

price_history

material_name, price_usd, date, source (original: material\_name, price\_usd, as\_of, source)

manufacturing_batches

batch_id, product_sku, chemistry, quantity_produced, quantity_pass, yield_pct (original: batch\_id, product\_sku, chemistry, quantity\_produced, quantity\_pass, yield\_pct)

cost_scenarios

scenario_id, scenario_name, material_name, current_price, scenario_price, pct_change (original: scenario\_id, scenario\_name, material\_name, current\_price\_usd, scenario\_price\_usd, pct\_change)

Inicio rápido de Fabric

  1. Ejecute fabric_setup_lakehouse.py para crear las 11 tablas Delta.

  2. Ejecute fabric_cost_dashboard.py para el panel de control de análisis completo.

  3. El panel incluye: comparación de costes por química, costes a nivel de pack, salud de inventario, compra a proveedores, tendencias de precios, rendimiento de fabricación y escenarios de coste.


Adaptadores de inventario (REST + MCP)

Battery ERP es una biblioteca de dominio, no un ERP alojado. Para flujos de texto/SMS y de agentes, un InventoryService compartido se expone tanto bajo una API REST ligera como bajo un servidor MCP. Todos los detalles: docs/INTEGRATION.md.

SMS / ClickSend          Cursor / Claude (stdio MCP)
        │                         │
        ▼                         ▼
  REST API (port 8088)      battery_erp.mcp
        └──────────┬──────────────┘
                   ▼
           InventoryService
                   ▼
        InMemoryInventoryStore (demo)
                   ▼
          Human bin confirmation

No utilice MCP desde un navegador. Mantenga REST y MCP en terminales separadas.

Instalación (macOS / zsh)

Usa python3. Pon el extra con pip entre comillas para que zsh no haga globbing:

cd ~/Desktop/icohangar-repos/battery-erp
python3 -m pip install -e '.[dev]'   # api + mcp + pytest

Terminal A — REST (backend de información / texto)

cd ~/Desktop/icohangar-repos/battery-erp
export BATTERY_ERP_CONFIRM_TOKEN=dev-secret
export BATTERY_ERP_AUDIT_LOG=/tmp/battery-erp-audit.jsonl
PYTHONPATH=src python3 -m battery_erp.api
# Uvicorn → http://127.0.0.1:8088
curl -s http://127.0.0.1:8088/health
curl -s http://127.0.0.1:8088/inventory/lookup/lithium

Terminal B — MCP (solo agentes / Cursor)

Deja la Terminal A funcionando. En una terminal nueva:

cd ~/Desktop/icohangar-repos/battery-erp
export BATTERY_ERP_CONFIRM_TOKEN=dev-secret
PYTHONPATH=src python3 -m battery_erp.mcp

Ese proceso permanece silencioso en stdio — normal para MCP. No lo pegues en la terminal de la API.

Config MCP de Cursor

Añade en ~/.cursor/mcp.json (rutas absolutas; usa python3 no python):

{
  "mcpServers": {
    "battery-erp": {
      "command": "python3",
      "args": ["-m", "battery_erp.mcp"],
      "env": {
        "PYTHONPATH": "/Users/YOU/Desktop/icohangar-repos/battery-erp/src",
        "BATTERY_ERP_CONFIRM_TOKEN": "replace-me",
        "BATTERY_ERP_AUDIT_LOG": "/tmp/battery-erp-audit.jsonl"
      }
    }
  }
}

Después, recarga los servidores MCP en Cursor. Herramientas expuestas: lookup_inventory, get_inventory_status, get_inventory_record, list_inventory, create_bin_check_request, record_bin_confirmation.

Superficie

Entrada

Capa compartida

REST

GET /inventory/lookup/{part}, bin-check / bin-confirm

battery_erp.services.InventoryService

MCP

herramientas anteriores (mcp SDK 2.x MCPServer)

misma

La confirmación mutadora (bin confirmation) requiere BATTERY_ERP_CONFIRM_TOKEN y adicionalmente escriba auditoría JSONL en BATTERY_ERP_AUDIT_LOG.

Empaquetado de directorio / registro: vease PUBLISH.md (glama.json, Dockerfile, server.json). Después de mergear en main, reclame en Glama con @icohang-ops/battery-erp.


Pruebas

PYTHONPATH=src python3 -m pytest tests/ -v
# Domain tests + inventory service / REST / MCP scaffold

Casos de uso

  • Fabricantes de celdas — control de costes BOM entre químicas, optimización de rendimiento

  • Integradores de packs — estimación de costes a nivel de pack, selección de proveedores

  • Compreros — mojada de proveedores, doble fuente, gestión del pipeline de lo PO

  • Finanzas — riesgo de precios de materias primaste, escenarios hipotéticos, valoración de inventario

  • C–suite — dashboard con tendencias de $/kWh, resiliencia de la cadena de suministro y reducción de gastos


Licencia

MIT. Véase LICENSE.


Gobernanza CHP

Este repositorio está equilibrado con el Consensus Hardering Protocol (CHP), la capa de gobernanza de decisiones de Cubiczan para sistemas de IA multiagente.

Capas del protocolo

  • R0 Gate: todas las decisiones deben superar las comprobaciones de Solvable, Scoped, Valid, Worth_

  • Revelación de bases: 1-3 supuestos más débiles, 1-2 condiciones de invalidación, 1 vulnerabilidad clave

  • Capa adversarial: el abogado del diablo manual en Fase 0 y Ronda 3

  • Máquina de estados: EXPLORING → PROVISIONAL → PROVISIONAL_LOCK → LOCKED

  • Aceptación de terceros: CONFIRM / REJECT independiente antes del bloqueo

Configuración de dominio

  • Categoría: Minería / Cadena de Suministro

  • Fundamento límite: 75

  • Guarda de exactitud del CFO: deshabilitada

Artefactos para cumplir

Archivo

Propósito

.chp/STATE_MACHINE.md

Transiciones de estados de decisión

.chp/R0_CONFIG.yaml

Umbrales calibrados de dominio

.chp/ADVERSARIAL_PROMPTS.md

Plantillas estándar de desafíos

.chp/CHP_COMPLIANCE.md

Seguimiento y auditoría de cumplimiento

Versión CHP

cognitive-mesh-orchestrator 0.1.0 | Documentación del protocolo

Demo

# From PyPI — https://pypi.org/project/battery-erp/
python3 -m pip install 'battery-erp[mcp]'   # MCP tools
python3 -m pip install 'battery-erp[api]'   # REST adapter

# From source
git clone https://github.com/icohangar-ops/battery-erp.git
cd battery-erp
python3 -m pip install -e '.[dev]'
PYTHONPATH=src python3 -m pytest tests/ -v

# Domain modules
python3 -c "
from battery_erp.pricing import calculate_cell_cost_summary, get_material_price_table
prices = get_material_price_table()
for chem in ['NMC-811', 'NMC-622', 'NCA', 'LFP', 'LMO']:
    r = calculate_cell_cost_summary(chem, 50.0, prices)
    print(f'{chem}: \${r[\"cost_per_kwh\"]:.1f}/kWh (BOM: \${r[\"bom_cost_usd\"]:.2f})')
"

Móvil — Parts Bin Text Line

Captura móvil desde la página de leads en vivo (parts-bin-text-line--icohangar.replit.app). SMS → text-line → verificación de inventario en Battery ERP → confirmación humana del contenedor.

Demo Video

Available Tools

6 tools
create_bin_check_requestC

Create a human bin-count verification task for SMS / warehouse workflows.

ParametersJSON Schema
NameRequiredDescriptionDefault
notesNo
part_numberYes

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states that a verification task is created, but does not explain side effects, whether an SMS is sent, whether the task is persisted, or what the resulting workflow looks like.

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?

One short sentence, front-loaded with the core purpose and no filler. It is concise and readable, though it sacrifices useful detail for brevity.

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?

Given that there are no annotations and no output schema, the description is too sparse to support reliable invocation. It does not say what happens after the request is created, what part_number refers to, how notes are used, or how this relates to confirmation workflows.

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

Parameters2/5

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

The description does not explain the two parameters. With 0% schema description coverage, the agent is left to infer that part_number likely identifies the item/bin being checked and notes is an optional attachment, but no explicit meaning, format, or usage context is provided.

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 uses a specific verb and resource: create a human bin-count verification task. It clearly conveys the action and domain (SMS/warehouse workflows), though it does not explicitly distinguish itself from sibling tools like record_bin_confirmation.

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?

There is no explicit guidance about when to use this tool versus alternatives. The phrase 'for SMS / warehouse workflows' only implies context; it does not describe preconditions, exclusions, or how this relates to the inventory lookup and confirmation sibling tools.

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

get_inventory_recordB

Return the full inventory record for a SKU (on-hand, reserved, reorder, cost).

ParametersJSON Schema
NameRequiredDescriptionDefault
skuYes

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the burden of behavioral disclosure. It implies a read-only operation but doesn't state so explicitly. It also doesn't mention error behavior, rate limits, or consequences. The listing of returned fields is some help, but it lacks explicit behavioral disclosure.

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?

One sentence, front-loaded with the verb 'Return', lists the returned fields. Highly efficient and easy to scan.

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?

For a simple single-parameter lookup tool with no output schema, the description is fairly complete: it states the action, the input, and the contents of the return value. It could mention error behavior or alternative tools, but for its complexity it's probably adequate.

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

Parameters2/5

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

Schema coverage is 0% (the description adds no parameter-level details). The description mentions 'for a SKU' but doesn't explain format, requiredness, or how it maps to the schema. It adds minimal meaning beyond showing the parameter name in context.

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 action ('Return the full inventory record') and the resource (SKU), and lists the fields included. It is clear and unambiguous, though it does not explicitly distinguish this from sibling tools like lookup_inventory or get_inventory_status. The verb+resource is specific enough to convey the primary purpose, but lacks explicit sibling differentiation.

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?

No guidance on when to use this tool versus alternatives like lookup_inventory or get_inventory_status. The description does not mention scenarios, prerequisites, or why one would choose this over others.

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

get_inventory_statusC

Get inventory status plus reorder suggestion when below reorder point.

ParametersJSON Schema
NameRequiredDescriptionDefault
part_numberYes

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses that a reorder suggestion is included, but does not clarify whether the operation is read-only, what the response format is, or how it behaves if the part number is invalid. The behavioral detail is minimal.

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?

The description is a single, front-loaded sentence that packs the core purpose and the key differentiator. It is concise and easy to scan, though it could mention exclusions or alternatives without much bloat.

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?

For a single-parameter tool, the description is adequate at a basic level, but it lacks details about the response structure, error behavior, and how it compares to get_inventory_record. Given no output schema and no annotations, the agent has limited understanding beyond the name. It is minimally complete but leaves room for ambiguity.

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

Parameters2/5

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

The schema has 0% description coverageyb; the only parameter is part_number with no additional meaning provided. The description does not explain the expected format (e.g., alphanumeric, length) or how it relates to the reorder logic. Some meaning can be inferred from the parameter name, but the description adds no value.

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 uses a specific verb 'get' and resource 'inventory status', and adds the differentiator 'reorder suggestion'. This distinguishes it from list_inventory but not clearly from get_inventory_record, which could also return status. The purpose is clear but sibling differentiation is weak.

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?

No guidance is given for when to use this tool versus the siblings like get_inventory_record or list_inventory. An agent must infer the use case from the name and description. There is no mention of prerequisites or conditions that would select this tool over others.

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

list_inventoryB

List status for all seeded inventory SKUs (demo store).

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

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

Without annotations, the description carries the full burden of disclosing behavior. It only indicates a listing operation, but does not state whether it is read-only, the nature of the response, or any side effects, leaving ambiguity.

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?

The description is a single, concise sentence that immediately conveys the purpose. It is front-loaded with the core action and resource, with no unnecessary filler.

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?

The description provides minimal context. It lacks any detail about the output format, pagination, or the nature of the 'seeded' data, and does not clarify how this list differs from the sibling tools beyond the basic action.

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?

There are no parameters, so schema coverage is complete. The description adds no parameter-specific meaning, but since none exist, the baseline score of 3 is appropriate.

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?

The description clearly states the action ('List') and the specific resource ('all seeded inventory SKUs'), making it distinct from the more targeted sibling tools like lookup_inventory and get_inventory_record.

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?

No guidance is provided on when to use this tool versus the alternatives. It does not mention any exclusions or specific scenarios that would favor this list operation over the lookups or get operations.

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

lookup_inventoryB

Look up available quantity and stock status for a part number or SKU.

ParametersJSON Schema
NameRequiredDescriptionDefault
part_numberYes

TDQS

B3.3/5.0
Behavior3/5

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

There are no annotations and no output schema, so the description carries the behavioral burden. It states the returned data (quantity and stock status) but does not disclose exact response shape, matching behavior, error conditions, or whether multiple identifiers are accepted.

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?

A single, front-loaded sentence with no filler; every word adds meaning.

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?

For a one-parameter read-only lookup, the description is mostly sufficient, but it lacks any output-shape information and does not resolve ambiguity with the three sibling lookup tools. It also leaves open whether the tool returns one record or multiple.

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%, but the description adds the useful clarification that the part_number parameter can also be a SKU. It does not, however, specify formats, requiredness beyond the schema, or how to pass a SKU through a field named part_number.

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 uses a specific verb ('Look up') and names the resource and result ('available quantity and stock status'), so an agent understands the core purpose. It does not distinguish itself from siblings like get_inventory_status or get_inventory_record, which likely overlap in behavior.

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?

No guidance is provided for when to choose this tool over get_inventory_status, get_inventory_record, or list_inventory. The description implies a lookup use case but gives no exclusions or alternative routing instructions.

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

record_bin_confirmationC

Record a human-confirmed on-hand quantity. Requires auth_token matching BATTERY_ERP_CONFIRM_TOKEN.

ParametersJSON Schema
NameRequiredDescriptionDefault
actorNomcp-operator
notesNo
auth_tokenYes
request_idNo
part_numberYes
actual_quantityYes

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations present, the description must carry the full burden of behavioral disclosure. It reveals an auth requirement (auth_token matching BATTERY_ERP_CONFIRM_TOKEN) but does not disclose side effects — whether it updates inventory, overrides existing quantities, or has any other impact. The word 'record' implies a write, but the consequences are undefined.

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?

The description is extremely concise and front-loaded: purpose first, then auth requirement. Both sentences earn their place with no filler. However, it is so sparse that it borders on under-specification, but that is more a completeness issue than a conciseness flaw.

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?

For a write operation with no annotations and no output schema, this description is incomplete. It does not explain what happens upon success/failure, whether part_number must exist, the expected format of actual_quantity, or how this confirmation integrates with the inventory workflow. Agents lack essential information to call this tool reliably.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for param meaning. It only explains auth_token (must match the environment token) and implicitly links actual_quantity to 'on-hand quantity', but part_number, actor, notes, and request_id are completely unexplained. This is insufficient given the number of parameters.

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?

The description states a specific action ('Record') and a specific resource ('a human-confirmed on-hand quantity'), which clearly distinguishes this from sibling read/lookup tools and from create_bin_check_request. The verb+object combination is unambiguous and informative.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention typical trigger conditions (e.g., after a manual count) or contrast with create_bin_check_request. Agents must infer usage from the name and purpose alone.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 6 tool updatesv1.0.0
    • First observedcreate_bin_check_request
    • First observedget_inventory_record
    • First observedget_inventory_status
    • First observedlist_inventory
    • First observedlookup_inventory
    • First observedrecord_bin_confirmation

TDQS

B3.1/5.0

Scored across 6 tools

Disambiguation2/5

lookup_inventory, get_inventory_status, and get_inventory_record all take a SKU and return overlapping inventory quantities/status, so their boundaries are unclear. list_inventory and the two bin-check tools are distinct, but the three inventory getters could easily be misselected.

Naming Consistency4/5

All names are snake_case and verb-led, with read operations using lookup/get/list and write operations using create/record. The pattern is mostly predictable, with only a minor inconsistency between lookup_inventory and the get_inventory_* family.

Tool Count5/5

Six tools is a well-scoped set for a focused inventory ERP demo: four query variants plus two bin-count workflow actions. Each tool has a reasonable role, and the count is neither bloated nor too thin.

Completeness3/5

The set covers inventory queries and the bin-confirmation workflow, but lacks lifecycle operations such as SKU creation/update or any way to list pending bin-check requests. Reorder suggestions are generated but there is no tool to act on them, creating a dead end.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A custom implementation for real-time supply chain optimization that enables parallel tool calling to provide intelligent inventory management recommendations and actionable insights in response to live supply chain events.
    6
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables supply chain management tasks such as tracking shipments, managing inventory, and supplier scorecards through MCP protocol.
    -