Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

insert_doc_image

Add images to Google Docs from Drive or URLs by specifying position and dimensions for document enhancement.

Instructions

Inserts an image into a Google Doc from Drive or a URL.

Args: user_google_email: User's Google email address document_id: ID of the document to update image_source: Drive file ID or public image URL index: Position to insert image (0-based) width: Image width in points (optional) height: Image height in points (optional)

Returns: str: Confirmation message with insertion details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
document_idYes
image_sourceYes
indexYes
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. While it states the action ('Inserts'), it doesn't mention permission requirements, whether the operation is idempotent, error conditions (e.g., invalid image formats, permission denied), or what happens if width/height are omitted (default behavior implied but not stated). The confirmation message return is mentioned but without detail on format or error cases.

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 well-structured with a clear purpose statement followed by organized parameter and return value sections. Each sentence earns its place by providing essential information. It could be slightly more concise by integrating the parameter explanations into the main description rather than a separate 'Args:' section, but overall it's efficient and readable.

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?

For a mutation tool with 6 parameters, 0% schema coverage, no annotations, but with an output schema (implied by 'Returns' statement), the description does an adequate job. It covers the basic operation and parameters but lacks important context: no error handling information, no mention of Google Docs API limitations (size, rate limits), and no guidance on authentication requirements despite the user_google_email parameter. The output schema reduces but doesn't eliminate the need for behavioral 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 provides clear semantic explanations for all 6 parameters: identifies 'user_google_email' as authentication context, 'document_id' as target, 'image_source' options (Drive file ID or URL), 'index' as 0-based position, and optional width/height in points. This adds substantial value beyond the bare schema, though it doesn't explain format constraints (e.g., URL must be public) or edge cases.

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 action ('Inserts an image') and target resource ('into a Google Doc'), specifying the source options ('from Drive or a URL'). It distinguishes itself from siblings like 'modify_doc_text' or 'insert_doc_elements' by focusing specifically on image insertion. However, it doesn't explicitly contrast with other document modification tools beyond the title-level distinction.

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_doc_elements' (which might handle other element types) or 'batch_update_doc' (which might handle multiple updates). There's no mention of prerequisites, constraints, or typical use cases beyond the basic functionality statement.

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/c0webster/hardened-google-workspace-mcp'

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