Skip to main content
Glama
rustam-zarifov

mto-mcp-server

apply_mto_update

Preview and apply MTO/SCSA reconciliation updates to an MTO Excel file: correct quantities, insert new items, and zero out removed items when explicitly enabled.

Instructions

Write the MTO/SCSA reconciliation into the MTO file.

Always re-derives the diff from the two paths (never trust a caller-supplied diff blob). Quantity corrections and new items are applied whenever dry_run=False - they're additive/corrective, not destructive. Removals (zeroing a quantity because the item left the project) are ONLY written when include_removals=True as well.

Recommended flow: call with dry_run=True first to preview writes, then call again with dry_run=False, and include_removals=True only once you've reviewed the removed list.

Args: mto_path: path to the MTO .xlsx file to update. scsa_path: path to the SCSA .xlsx export (source of truth). category: optional category filter, same as diff_mto_scsa. include_removals: if True, zero out items no longer in SCSA. dry_run: if True, compute and report but write nothing. output_path: write to a different file instead of overwriting mto_path. Defaults to overwriting mto_path in place.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNo
categoryNo
mto_pathYes
scsa_pathYes
output_pathNo
include_removalsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral disclosure burden, and it does so thoroughly. It explains that the diff is always re-derived, that corrections are additive/corrective rather than destructive, that removals only happen when include_removals=True, and that output_path defaults to overwriting the input file.

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 appropriately sized for a complex mutation tool. Every sentence earns its place: purpose, safety behavior, recommended workflow, and parameter explanations are clearly separated and front-loaded, with no filler or redundancy beyond minor repetition of defaults.

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 six-parameter mutation tool with no annotations and no output schema, the description is highly complete: it covers behavior, parameter meanings, defaults, and workflow. It only stops short of describing the return/report format for dry_run, which would help an agent act on the preview.

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

Parameters5/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 fully compensate, and it does. Every parameter is explained with meaningful context: mto_path and scsa_path roles, dry_run behavior, include_removals semantics, category matching diff_mto_scsa, and output_path's overwrite default.

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 opens with a specific verb and resource: 'Write the MTO/SCSA reconciliation into the MTO file.' It clearly differentiates this apply/write tool from the sibling diff_mto_scsa, which is a diff/report tool, by making the write action explicit.

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?

The recommended flow gives explicit sequencing: call with dry_run=True first, then dry_run=False, and only include_removals=True after reviewing removals. It does not explicitly name diff_mto_scsa as the alternative for previewing, but the conditional guidance around dry_run and include_removals still provides clear usage direction.

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