Skip to main content
Glama
mcp-server-autocad-lisp-helper

mcp-server-autocad-lisp-helper

analyze_lisp_syntax

Checks AutoLISP code for balanced parentheses, quotes, comments, and structural syntax errors, reporting exact line and column numbers.

Instructions

Checks AutoLISP code for balanced parentheses, quotation marks, comments, and structural syntax errors with exact line and column numbers.

Input Schema

NameRequiredDescriptionDefault
codeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It usefully discloses that results include exact line and column numbers, and the wording "structural syntax errors" suggests a structural rather than semantic parse, but it never states whether the operation is non-mutating, whether analysis stops at the first error or reports all of them, or any size limits on input.

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?

A single sentence that front-loads the action and then lists the checks in a compact, scannable series. No filler or restatement of the tool name beyond what is needed to define scope.

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 one-parameter validator with an output schema present, the description supplies what matters: the language dialect, the defect classes checked, and the form of the results (line and column). Return-value structure is already covered by the output schema, so nothing essential is missing.

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% and the single parameter "code" has no documented type or format detail in the schema, but the description's phrase "AutoLISP code" effectively identifies what must be supplied. It adds no further detail such as whether the code should be a full file, a fragment, or whether encoding matters, so it only partially compensates for the coverage gap.

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 gives a specific verb ("Checks") tied to a specific resource ("AutoLISP code") and enumerates the exact defect classes it detects: balanced parentheses, quotation marks, comments, and structural syntax errors. It does not explicitly contrast itself with extract_lisp_functions or check_missing_cleanups, though the verb-and-resource phrasing makes the distinction fairly evident.

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

Usage Guidelines3/5

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

There is no explicit when-to-use statement, no prerequisites, and no named alternative. Usage is only implied: a validator is naturally invoked before deeper analysis or cleanup checks, and the AutoLISP scoping hints at that context. An agent must infer the workflow position rather than being told it.

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