Skip to main content
Glama

sync_document

Ensure every Mermaid code block in a Markdown file has a Mermaid.ai link. Optionally verify links without editing the file.

Instructions

Create or verify exactly one local Mermaid.ai link for every Mermaid block.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentYesAbsolute or user-expanded path to a .md / .markdown file.
check_onlyNoWhen true, only verify managed links and do not write the file. Defaults to false.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It mentions 'create or verify' but fails to disclose that by default it writes to the file (check_only defaults to false), nor does it mention side effects like file modification or handling of Mermaid blocks without links. This is a significant transparency gap for a potentially mutating operation.

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 a single sentence with no waste. It is efficiently structured, though its brevity sacrifices necessary context. For conciseness alone it earns a 4, but it is not maximally effective due to missing behavioral details.

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

Completeness2/5

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

Despite having a schema and output schema, the description is incomplete for a tool that may modify a file. It lacks usage guidelines, behavioral transparency, and context about what constitutes a 'Mermaid block' or how verification behaves. The description alone is insufficient for an agent to confidently use the tool correctly.

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 coverage is 100% (both parameters have descriptions), so the baseline is 3. The description adds no parameter-specific meaning beyond the schema; it does not clarify how the 'document' path or 'check_only' flag relates to the stated behavior. This is acceptable but unhelpful.

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 tool's function: 'Create or verify exactly one local Mermaid.ai link for every Mermaid block.' This includes a specific verb ('create or verify'), resource ('Mermaid block'), and scope ('every'), distinguishing it from sibling tools like list_diagrams or open_diagram.

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 does not mention specific scenarios, exclusions, or relationships with sibling tools (doctor, list_diagrams, open_diagram). Usage is only implied by the tool's name and purpose.

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/Async23/mermaid-ai-links'

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