Skip to main content
Glama

r7_docx_hyperlink

Read DOCX hyperlink text and target URLs, insert new links with deduplicated relationships, update link text, or remove links while keeping formatting.

Instructions

Read, insert, re-text or remove DOCX hyperlinks. Reading returns each link's text and target URL; inserting writes the relationship (external, deduplicated by URL) and a Word-compatible Hyperlink-styled run; re-texting keeps the relationship and the run formatting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoTarget URL for insert.
boldNo
sizeNoFont size in points for the link text.
textNoLink text (insert) or its replacement (setText).
colorNoFont colour for the link text, e.g. "#0563C1".
indexNoHyperlink index from action "list", for setText/remove.
styleNoCharacter style id for the link (default Hyperlink).
actionNolist (default), insert, setText or remove.
anchorNoInternal bookmark/anchor name instead of a URL.
italicNo
tooltipNoTooltip shown on hover.
filePathYesPath to the DOCX file.
alignmentNoAlignment of the new paragraph.
outputPathNoWrite to a copy instead of editing in place.
newParagraphNoFor insert: put the link in its own paragraph.
paragraphIndexNoParagraph the link joins (insert) or whose first link to edit/remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does real work: insert writes an external relationship deduplicated by URL plus a Hyperlink-styled run, re-text keeps the relationship and run formatting, and list returns text and target URL. It stops short of stating permission requirements, in-place vs copy semantics, or error behavior.

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?

Two front-loaded sentences: the four verbs lead, then per-action behavior follows. Dense and largely waste-free, though the second sentence is long and could be split for clarity.

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?

For a 16-parameter mutation/read tool with no annotations and no output schema, the description usefully summarizes what 'list' returns and how writes behave, compensating for the missing output schema. It does not touch several formatting parameters (bold, italic, alignment) that only the schema covers.

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 88%, so the schema already documents url, text, index, style, paragraphIndex, etc. The description adds behavioral meaning for the actions but no syntax or format detail beyond the schema, so the baseline 3 is appropriate.

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 opens with a specific verb+resource pairing (read/insert/re-text/remove DOCX hyperlinks) and enumerates all four modes, which no sibling tool (r7_docx_formatting, r7_edit, r7_insert) covers. An agent can immediately tell this is the hyperlink-specific tool rather than a general text or formatting operation.

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

Usage Guidelines3/5

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

The four actions are listed and partly explained, implying when each applies, but there is no explicit when-to-use guidance, no exclusions, and no naming of alternative tools (e.g., when to prefer r7_edit or r7_insert over this). Usage is inferred from the action enum rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.