Skip to main content
Glama
bhanutpt

inksmcp

by bhanutpt

import_file

Place an SVG or raster image into the current Inkscape document, scaling vector art or sizing images with optional embed, object-fit, and layer controls.

Instructions

Place a file into the current document. An SVG (e.g. geometry a script generated) becomes one group scaled to this document's units, its top-left at at (default 0,0); width or height scales it (both: stretch). Its layers become labelled groups, its defs join ours, clashing ids get "-" in front. An image (png/jpg/gif/webp/bmp) becomes an image element: natural size at 96 dpi unless width/height (one keeps the ratio), linked by default (embed: true stores the pixels in the SVG), object_fit contain|cover|fill for a given box. Relative paths start at the document's folder. For whole documents use document_open; for data rows see repeat rows_path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
atNo
idNo
pathYes
embedNo
layerNo
widthNo
doc_idNo
heightNo
parentNo
previewNo
object_fitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so thoroughly: it describes scaling, default position, how SVG layers/defs/clashing ids are handled, image linking/embedding, dpi defaults, object_fit options, and relative path resolution. This gives the agent a clear picture of side effects and defaults beyond structured data.

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 a single dense paragraph but front-loads the core purpose and then details file-type-specific behavior efficiently. Every sentence appears to earn its place, though the density could be improved with some structure for easier scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 11 parameters, no annotations, and no output schema, the description omits explanation for several key parameters (id, layer, doc_id, parent, preview). It thoroughly covers file-handling behavior but is incomplete for an agent that needs to understand all inputs to invoke the tool correctly.

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%, so the description must compensate. It explains 'at' (default 0,0), 'width'/'height' scaling behavior, 'embed' (true stores pixels), and 'object_fit' values, but it leaves 'id', 'layer', 'doc_id', 'parent', and 'preview' completely undefined. The description adds meaning for some parameters but misses many.

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 states a specific verb ('Place a file') and resource ('into the current document'), and explicitly distinguishes itself from sibling tools like document_open for whole documents and 'repeat rows_path' for data rows. An agent can immediately tell what this tool does and when it is not the right choice.

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?

It gives explicit alternatives: 'For whole documents use document_open; for data rows see repeat rows_path.' This directly tells the agent when to use this tool versus its siblings, leaving no ambiguity.

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