Skip to main content
Glama

insert_doc_link

Insert a clickable hyperlink with visible text and URL at a specified position in a Google Doc.

Instructions

Insert clickable hyperlink text at a given document index.

Use this for a simple hyperlink; for a Drive-file smart chip use insert_doc_file_chip; for a person @mention chip use insert_doc_person_chip. Requires the documents OAuth scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address (authenticated account).
document_idYesTarget document ID.
textYesVisible link text inserted into the document.
urlYesTarget URL — http://, https://, or mailto: schemes supported.
indexNo1-based document index where the text is inserted. Default 1 (start of body). Get stable indices from inspect_doc_structure.
tab_idNoTab ID from list_doc_tabs to target a specific tab.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/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 states it inserts a hyperlink and requires OAuth, but does not disclose potential side effects (e.g., modifying document content, overwriting existing text at the index). More detail on behavior would improve transparency.

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?

The description is concise (three sentences), front-loaded with the main purpose, and each sentence adds essential information: action, sibling alternatives, and OAuth requirement. No waste.

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

Completeness4/5

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

Given the tool's simplicity, the description covers core purpose, usage guidelines, and OAuth. The input schema is fully described, and there is an output schema (not shown). Missing mention of document modification side effects, but overall adequate.

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 100%, so baseline is 3. The description adds minimal meaning beyond the schema; it only states 'simple hyperlink' without elaborating on parameter details. No significant added value.

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 verb 'insert', the resource 'clickable hyperlink text', and the location 'at a given document index'. It distinguishes from sibling tools by naming alternatives (insert_doc_file_chip, insert_doc_person_chip) and their use cases.

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?

The description explicitly states when to use this tool ('simple hyperlink') and when to use alternatives ('for a Drive-file smart chip' and 'for a person @mention chip'). It also mentions the required OAuth scope, providing clear context and exclusions.

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