Skip to main content
Glama

Cleanup Orphan Embed Links

cleanup_orphan_embeds

Remove embedded document links that reference deleted or missing documents. Use dry run mode to preview changes before applying.

Instructions

Remove embed_linked_doc blocks that point to deleted/non-existent docs. Use dryRun=true to preview without making changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceIdNo
docIdYesThe doc to clean up orphan embeds from.
dryRunNoIf true, only report orphans without deleting (default: false).
Behavior2/5

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

No annotations exist, so the description must disclose all behavioral traits. It mentions removal and dry-run preview but fails to state if the operation is permanent, if permissions are needed, or any side effects.

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 sentences are concise and front-load the purpose. However, it could be more structured by explicitly noting the destructive nature upfront.

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?

Given no output schema and no annotations, the description should cover return value, permissions, and side effects. It only mentions dryRun, leaving the actual mutation behavior unclear.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 67% (docId and dryRun have descriptions). The tool description adds no extra meaning beyond the schema. The workspaceId parameter is left undocumented in both.

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 states a specific verb and resource: 'Remove embed_linked_doc blocks that point to deleted/non-existent docs.' This clearly distinguishes from sibling 'cleanup_blobs' which deals with blobs, not embed links.

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 description advises using dryRun=true for preview, providing usage guidance for that parameter. However, it does not explicitly state when to use this tool vs alternatives or when not to use it.

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/DAWNCR0W/affine-mcp-server'

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