Skip to main content
Glama
andrewbartels1

SolidworksMCP-python

list_drawing_views

List the views on the active drawing to find an existing view's name before targeting it with tools like auto_center_marks. Read-only; errors if the active document is not a drawing.

Instructions

List the views on the active drawing.

Read-only. Use it to find an existing view's name before targeting it (e.g. with auto_center_marks). Errors when the active document is not a drawing.

Returns: dict[str, Any]: status, views (view names, sheet formats excluded) and count.

Example: python await list_drawing_views()

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the burden and does well: it declares read-only behavior, the error condition for non-drawing documents, and that sheet formats are excluded from the returned view names. Missing only details like behavior on a drawing with zero views.

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 purpose and read-only status, then usage, then returns. Well organized and short. The code example for a zero-argument call adds little and is the only slightly wasteful element.

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?

Zero parameters, an output schema exists, and the description still notes the meaningful return nuance (sheet formats excluded) plus the error precondition. An agent has everything needed to call it and interpret the result.

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?

The tool takes no parameters, so there is nothing to disambiguate; the description correctly presents a no-argument call including an example invocation. Baseline 4 applies for zero-parameter tools.

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?

States a specific verb and resource with scope: "List the views on the active drawing." An agent can immediately tell this is a read of drawing views rather than model dimensions or components. It does not explicitly distinguish itself from the nearby analyze_drawing_views, which is the one real ambiguity.

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?

Gives a concrete intended use: find a view's name before targeting it, naming auto_center_marks as the downstream consumer. Also states the failure precondition (errors when the active document is not a drawing). No explicit when-not or comparison against analyze_drawing_views, so 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.

Deploy Server

Other Tools