Skip to main content
Glama

import_image

Import external images such as SVG, PNG, JPG, or EMF into Visio diagrams as shapes, solving the problem of missing masters for custom icons or vendor logos.

Instructions

Insert an external image (SVG, PNG, JPG, EMF, ...) onto the page as a shape — for custom icons that have NO Visio master (e.g. the newer Azure 'Subnet' glyph) or vendor logos.

Args: source: a LOCAL file path OR a direct http(s) IMAGE URL. A URL must point at the raw image bytes; icon web pages (single-page-app galleries such as az-icons.com) return HTML and are rejected with guidance — download the file in the browser and pass its path. x, y: shape CENTER in inches from the bottom-left. width_in / height_in: size in inches. Give just one to scale the other automatically and preserve the image's aspect ratio; omit both to keep the image's native size.

Prefer built-in masters (drop_shape) when Visio has the icon; use this for the gaps. Returns the shape_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes
pageNo
sourceYes
width_inNo
height_inNo

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses that URLs must point to raw image bytes, that HTML pages are rejected with guidance, that x/y define the shape center, that aspect ratio is preserved when one dimension is given, and that shape_id is returned. It does not mention prerequisites such as an open document or behavior with an invalid local path, but the core behavior is well covered.

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?

The description is well structured: purpose first, then parameter details, then routing guidance. Every sentence adds useful information, and the formatting makes the source and sizing semantics easy to scan.

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?

For a tool with six parameters, no annotations, and no output schema, the description is close to complete: it covers purpose, use cases, parameter semantics, caveats, and return value. The main gap is the unexplored page parameter, and there is no explicit statement about the document being open or the page context.

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 description coverage is 0%, so the description must compensate. It richly explains source, x/y units and origin, and width/height scaling rules. However, the optional page parameter is not described at all, leaving one of the six parameters undocumented in text.

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 names a specific action and resource: 'Insert an external image ... onto the page as a shape.' It also clarifies the intended niche (custom icons with no Visio master, vendor logos), which distinguishes it from the sibling drop_shape/drop_shapes tools.

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

Usage Guidelines5/5

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

Explicit guidance says to prefer built-in masters via drop_shape when Visio has the icon, and to use this tool only for the gaps. It also clarifies when a URL is appropriate versus when the user must download the file first, giving concrete decision rules.

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/jagarlamudisrinath/visio-mcp'

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