Skip to main content
Glama

insert_image_from_resource

Insert images into Google Docs from shared storage resources by uploading to Drive and placing at specified positions.

Instructions

Insert an image into a Google Document from a resource identifier.

The resource identifier references a blob in the shared blob storage volume (mapped via Docker volumes) that can be accessed by multiple MCP servers.

The image is first uploaded to Google Drive, then inserted into the document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesThe ID of the Google Document
resource_idYesResource identifier (e.g., 'blob://1733437200-a3f9d8c2b1e4f6a7.png')
indexYesThe index (1-based) where the image should be inserted
widthNo
heightNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions the two-step process (upload to Drive then insert), which adds some context about the tool's internal workflow. However, it doesn't cover critical behavioral aspects like required permissions, whether the operation is idempotent, error handling, rate limits, or what happens to the uploaded Drive file. For a mutation tool with zero annotation coverage, this is insufficient.

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 appropriately concise with three sentences that each add value: the core function, resource identifier explanation, and workflow clarification. It's front-loaded with the main purpose. While efficient, the second sentence could be slightly more streamlined, but overall it avoids waste.

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?

Given the tool has an output schema (which reduces need to describe return values) and moderate schema coverage, the description provides adequate basic context about what the tool does. However, for a mutation tool with no annotations and multiple parameters, it should better address behavioral aspects like side effects, permissions, or error conditions to be more complete.

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 60%, and the description doesn't explicitly mention any parameters. However, it implies the resource_id parameter by describing 'resource identifier' and mentions insertion into a document (relating to document_id and index). The description adds minimal value beyond the schema, which already documents all parameters adequately. With moderate schema coverage, this meets the baseline.

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 clearly states the specific action ('insert an image'), target resource ('Google Document'), and source ('from a resource identifier'). It distinguishes from sibling tools like 'insert_image_from_url' by specifying the resource-based approach and mentions the two-step process (upload to Drive then insert), making the purpose unambiguous and differentiated.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'insert_image_from_url' or other image-insertion methods. It mentions the resource identifier references a shared blob storage volume, but doesn't explain when this is preferable or required. No prerequisites, exclusions, or comparative context are provided.

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/nickweedon/google-docs-mcp-docker'

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