Skip to main content
Glama

insert_doc_file_chip

Insert Google Drive file smart chips into Google Docs to display file names, icons, and previews as linked text that auto-converts from URLs.

Instructions

Insert a Drive file smart chip at the specified index.

A Drive file URL inserted as linked text auto-converts into a file chip in Google Docs, showing the file's name, icon, and preview.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
document_idYesID of the document.
file_urlYesFull Drive file URL (e.g. "https://docs.google.com/document/d/.../edit").
display_textNoOptional visible text for the link. Defaults to the URL.
indexNoDocument index at which to insert.
tab_idNoOptional tab ID to scope the insertion to.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions that Drive URLs auto-convert to file chips, which is useful behavioral context, but lacks critical details: whether this is a mutating operation (implied by 'Insert'), what permissions are required, error conditions (e.g., invalid URL or index), or how the chip appears. For a tool with no annotations and potential side effects, 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 sized with two sentences: the first states the purpose, and the second adds behavioral context about auto-conversion. It's front-loaded with the core action. However, the second sentence could be more tightly integrated, and there's minor redundancy (e.g., 'Insert' and 'inserted' in quick succession).

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 6 parameters, no annotations, and an output schema exists (which covers return values), the description is moderately complete. It covers the basic action and conversion behavior but misses key context: mutation implications, error handling, and comparison to siblings. For a tool with multiple parameters and no safety annotations, it should provide more guidance on usage and limitations.

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 83% (high), so the baseline is 3. The description adds minimal value beyond the schema: it implies 'file_url' should be a Drive URL that converts to a chip, but the schema already describes this. It doesn't explain parameter interactions (e.g., how 'index' and 'tab_id' work together) or provide examples beyond the generic URL mention.

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 ('Insert a Drive file smart chip') and the target ('at the specified index'), providing a specific verb+resource combination. It distinguishes from siblings like 'insert_doc_link' or 'insert_doc_image' by specifying it's for Drive files that convert to smart chips. However, it doesn't explicitly differentiate from 'insert_doc_person_chip' or other insertion tools beyond mentioning 'Drive file'.

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. It doesn't mention prerequisites (e.g., document must exist, user must have edit permissions), exclusions (e.g., not for non-Drive files), or compare to similar tools like 'insert_doc_link' for regular links or 'insert_doc_person_chip' for person chips. Usage is implied but not explicitly stated.

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