Skip to main content
Glama

palinode_orphan_repair

Read-onlyIdempotent

Repair broken wikilinks by finding semantically similar existing files. Proposes redirects or provides context to create missing target files.

Instructions

Given a [[wikilink]] whose target file does not exist, return existing memory files semantically near the link target text. Use during wiki-maintenance passes to either propose a redirect (rename the link to point at an existing file) or to create the missing target file with informed context about its semantic neighbours. Accepts either [[name]] or bare name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_kNoMaximum number of candidate files to return. Default 10.
broken_linkYesThe wikilink text (e.g. '[[alice-meeting]]') or bare target slug.
min_similarityNoMinimum cosine similarity to surface (0.0–1.0). Default 0.65 — looser than dedup_suggest because the LLM picks from a wider slate.
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, covering safety. The description adds behavioral context: it is used for broken links, returns existing files, and is safe for maintenance. No contradictions with annotations.

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?

Description is concise (3-4 sentences) and front-loaded with the core function. Every sentence adds necessary context without redundancy.

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 no output schema, the description indicates the return type: existing memory files semantically near the link. It explains the tool's purpose for maintenance. Slightly missing explicit ordering or ranking info, but overall sufficient given parameter hints.

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

Parameters4/5

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

Schema coverage is 100% with descriptions. The description adds value beyond schema: it clarifies that broken_link accepts both [[name]] and bare name, and explains that min_similarity default is looser than dedup_suggest. This helps the agent understand parameter intent.

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?

Description clearly states the tool's function: given a wikilink to a missing file, return semantically near existing files. It distinguishes from sibling tools like dedup_suggest by specifying the context of orphan repair and the action of proposing redirects or creating new files.

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

Usage Guidelines4/5

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

Explicitly mentions usage during 'wiki-maintenance passes' and describes two use cases: proposing a redirect or creating a missing file. However, it does not explicitly state when not to use it or name specific alternatives, though the context is clear.

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/phasespace-labs/palinode'

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