Skip to main content
Glama

插入图片

insert_image

Inserts a local PNG, JPG, or GIF image into an Excel worksheet, anchoring it at a specified cell with customizable pixel dimensions. Use this tool to embed visual content directly into spreadsheets.

Instructions

把一张本地图片(png / jpg / gif)插入工作表,图片左上角锚定在 anchorCell。width/height 为像素,不传给默认 300×200——比例不对时请显式传这两个值。csv 不支持插图。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthNo
heightNo
filePathYesExcel 文件的绝对路径,例如 `C:\Users\xx\报表.xlsx` 或 `/Users/xx/报表.xlsx`。支持 .xlsx / .xls / .csv
imagePathYes
sheetNameYes
anchorCellYes单元格地址,如 `B5`
Behavior3/5

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

No annotations are provided, so the description carries the burden. It does disclose the default 300x200 sizing behavior and the csv limitation, which is good. However, it doesn't disclose behavioral details like whether insertion overwrites existing content, what happens if anchorCell is occupied, whether the operation mutates and saves the file, or any permission/format constraints beyond csv.

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?

Three concise sentences, front-loaded with the core action. Each sentence earns its place: action+format, sizing defaults, csv caveat. Slightly compressed but efficient.

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

Completeness3/5

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

With no output schema and no annotations, the description must carry completeness. It covers formats, defaults, and csv caveat well. But for a mutation tool (inserting into a file), it omits details like: does it save the workbook? What if anchorCell is invalid or occupied? Are there size limits on the image? What happens to existing overlapping content? These gaps matter for a tool with no annotation safety net.

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 coverage is low (33%), with only filePath and anchorCell having descriptions. The tool description compensates well by explaining semantics for key params: width/height are pixels with a 300x200 default, anchorCell is where the image's top-left corner anchors. However, imagePath and sheetName lack any schema or description elaboration beyond what their names imply, though these are fairly self-explanatory.

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?

The description clearly states the tool inserts a local image (png/jpg/gif) into a worksheet, anchored at anchorCell. It distinguishes from siblings (none of which are image-related) and specifies the file types. However, it doesn't explicitly differentiate across the full sibling set since no other tool inserts images, though it's clear enough in its own right.

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

Usage Guidelines3/5

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

The description gives useful practical guidance: explicit mention that csv doesn't support images, and that width/height should be passed explicitly when aspect ratio matters. However, it doesn't provide explicit 'when to use vs not use' guidance or mention prerequisites like the file/sheet needing to exist, or when this tool would be preferred over alternative approaches.

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/mutoukenji/mcp-excel'

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