Skip to main content
Glama

Add a shape

visio_add_shape

Add a shape to a Visio page at specified coordinates, using an existing master or primitive, and get the new shape's ID.

Instructions

Add a shape to a page and return its new id.

Prefer a master that the drawing already uses, so the new shape inherits the drawing's style; visio_list_masters shows what is available. Without a master you get a plain drawn shape.

Args: x: Centre of the shape, inches from the left edge. y: Centre of the shape, inches from the bottom edge. text: Text to put in the shape. master: Master name to drop, for example "Process". stencil: Stencil to look in if the master is not already available. width: Width in inches. Defaults to the master's own size, or 2. height: Height in inches. Defaults to the master's own size, or 1. primitive: Shape to draw when no master is given: rectangle, ellipse or line. page: Page name or 1-based index. Omit for the page on screen. document: File name or 1-based index. Omit for the active document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes
pageNo
textNo
widthNo
heightNo
masterNo
stencilNo
documentNo
primitiveNorectangle

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
pageNo
actionYes
detailYes
affectedNo
documentNo
shape_idNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Clearly indicates the tool mutates the document by adding a shape and reports the new id. It also explains defaults for page/document/master behavior beyond the minimal annotations.

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?

The description is reasonably concise but contains slight redundancy between the first sentence and the Args list, and a minor typo ('drop' instead of 'use').

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?

Includes return behavior, related tool reference, and defaults. With an output schema present, it need not elaborate further; the description gives enough context for successful invocation.

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?

With no schema-level descriptions, the text explains all 10 parameters, including units, defaults, and optional behavior (e.g., page/document omission, width/height defaults, primitive options).

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 action ('Add a shape to a page') and the return value ('return its new id'), clearly distinguishing it from sibling tools that render, query, or modify shapes.

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?

Provides practical guidance on preferring masters and consulting visio_list_masters, plus behavior when no master is used. It does not explicitly contrast with every alternative, but the usage context is clear.

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

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/isiec9ai/MCP'

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