Skip to main content
Glama
lx-mcp

lx-mcp

by Camel031

plot_import

Imports DWG/DXF lighting plots, recognizes fixtures, numbers, and legend, and builds a checked fixture table while flagging inconsistencies for review.

Instructions

Import a DWG or DXF lighting plot and recognise fixtures, numbers and the legend.

plot_file must be an absolute path. The original file is never modified. The summary lists every open issue
(kind, view, message and how many fixtures it concerns); tell the user about each of them. Review the fixtures
behind number issues with fixtures_list(only_issues=True) and plot_preview before asking the user to confirm
the fixture table.

A re-import replaces the fixture table of this show folder, including every correction made with
fixtures_update and the confirmation; the old table is kept as fixtures.previous.json in the new import's
work folder, and the summary's previous_table gives its path.

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": {
      "plot_file": "<plot_file>"
    },
    "name": "plot_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
plot_fileYes

Output Schema

NameRequiredDescriptionDefault
viewsYes
issuesYes
by_labelYes
confirmedYes
cm_per_unitYes
source_fileYes
issue_countsYes
fixture_countYes
previous_tableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations present, the description carries the full burden and does so: it discloses that the original file is never modified, that a re-import destructively replaces the fixture table including every fixtures_update correction and the confirmation, and that the old table is preserved as fixtures.previous.json with its path in summary.previous_table. It also tells the agent that the summary enumerates open issues by kind, view, message and affected fixture count. That is the exact destructive-scope and recovery-path information an agent needs before invoking a write operation.

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?

Well front-loaded: the purpose sentence comes first, the parameter constraint second, the workflow guidance third, and the destructive re-import caveat last. Every sentence carries information, though the final paragraph is dense and could be split for scanability.

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?

An output schema exists, yet the description still usefully flags the summary's issue list and previous_table field, and it covers the two things an agent cannot infer elsewhere: the absolute-path requirement and the destructive re-import semantics. Nothing needed to call this correctly in a fixture-import workflow 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 0% for the single parameter, so the description must compensate, and it does by constraining plot_file to an absolute path — a requirement not present in the schema. It does not describe accepted path conventions (network shares, case sensitivity), so it adds real but not exhaustive meaning.

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 ('Import a DWG or DXF lighting plot') plus the outcome ('recognise fixtures, numbers and the legend'), which makes it immediately distinguishable from plot_preview and fixtures_list. No tautology and no ambiguity about what the tool produces.

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?

Explicitly routes the agent to alternatives with conditions: review number issues via fixtures_list(only_issues=True) and plot_preview before asking the user to confirm the fixture table. The re-import paragraph signals the consequence of calling it again, which functions as an implicit when-not. No explicit statement of when a fresh import is inappropriate (e.g. wrong show folder), so it stops 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.