Skip to main content
Glama

insert_doc_image

Insert an image into a Google Doc from a public Drive file ID or an HTTPS image URL. Supports PNG, JPEG, and GIF.

Instructions

Insert an image into a Google Doc from Drive or an HTTPS URL.

When image_source is a Drive file ID, its sharing MUST allow "Anyone with the link" — check with check_drive_file_public_access first. HTTPS URLs must serve image bytes directly (no redirects, login walls, or signed URLs). PNG/JPEG/GIF supported. Index 0 is auto-bumped to 1. Requires both docs and drive.readonly OAuth scopes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address (authenticated account).
document_idYesTarget document ID.
image_sourceYesDrive file ID (non-URL string) or public HTTPS image URL. Drive IDs are auto-converted to https://drive.google.com/uc?id=<id>.
indexYes0-based insertion index from inspect_doc_structure. 0 auto-bumped to 1.
widthNoImage width in points. 0 or omitted = auto-size.
heightNoImage height in points. 0 or omitted = auto-size.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description carries burden. It discloses auto-conversion of Drive IDs, index 0 bump to 1, and OAuth scope requirements. Lacks error handling details but is otherwise transparent.

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?

Concise and front-loaded with main action. Each sentence adds value without redundancy. No fluff or unnecessary details.

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

Completeness5/5

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

Given output schema exists, return values need not be explained. All 6 parameters covered, behavior well-described, prerequisites and scope noted. Complete for correct tool invocation.

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 100%, baseline 3. Description adds value by explaining image_source types and auto-conversion, index bump, and width/height default meaning (0=auto-size). Enhances schema understanding.

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 'Insert an image into a Google Doc from Drive or an HTTPS URL,' specifying the verb, resource, and data sources. It distinguishes itself from sibling tools like insert_slides_image (for Slides) and insert_doc_elements (more general).

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?

Provides explicit when-to-use and prerequisites: Drive files must allow 'Anyone with the link' and suggest checking with check_drive_file_public_access; HTTPS URLs must be direct image bytes. Also mentions supported formats and index behavior.

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/HuntsDesk/ve-gws'

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