Skip to main content
Glama
U-C4N
by U-C4N

Create Viewport

viewport_create

Place a scaled model-space viewport on a paper layout, specifying center, dimensions, and scale.

Instructions

Place a scaled model-space viewport on a paper-space layout.

The viewport window shows the model region centered at (view_center_x, view_center_y); view height = height / scale.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scaleNoPaper:model scale (1.0 = 1:1, 0.5 = 1:2, 2.0 = 2:1).
widthYesViewport width in paper units.
heightYesViewport height in paper units.
layoutYesPaper-space layout that receives the viewport.
center_xYesViewport center X in paper units.
center_yYesViewport center Y in paper units.
view_center_xYesModel-space X the viewport looks at.
view_center_yYesModel-space Y the viewport looks at.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description explains the viewport window calculation (center and height/scale), making behavior clear beyond the destructiveHint annotation. No contradictory behaviors noted.

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?

Two concise sentences that front-load the core purpose and then add a critical detail, with no extraneous words.

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?

Given the tool's simplicity and the presence of an output schema, the description fully explains what the tool does and how the scaling works.

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?

The description adds a formula view height = height/scale and clarifies that the viewport looks at model-space coordinates, providing meaning beyond the input schema descriptions.

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 uses a specific verb 'Place' and resource 'scaled model-space viewport on a paper-space layout', clearly distinguishing it from sibling tools like layout_create or entity creation tools.

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 description implies usage context (paper-space layout) and no other viewport tools exist among siblings, but lacks explicit when-to-use or prerequisite statements.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/U-C4N/Autocad-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server