Skip to main content
Glama

find_unused_attachments

Read-onlyIdempotent

Identifies attachments in an Obsidian vault that no note or canvas links to or embeds, helping you review cleanup candidates.

Instructions

Attachments that no note or canvas links to or embeds — candidates for cleanup (delete with delete_file).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_unused_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 500)
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
folderNoLimit to this folder (vault-relative)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds the semantic definition of "unused" (no note or canvas link or embed), which annotations cannot convey, and signals that removal is a separate call to delete_file rather than a side effect of this one.

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?

A single sentence front-loads the resource and the defining condition, then tucks the follow-up action into parentheses. Nothing is redundant or wasted.

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 three-optional-parameter read tool with a fully documented schema and no output schema, the description conveys what is returned (attachments) and the criteria used. Only the result shape and pagination behavior relative to the limit parameter are left unstated, which the schema largely 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 100%, so limit, vault and folder are already documented with defaults and format. The description adds no additional meaning about scoping by vault or folder, which is the expected baseline when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (attachments) and an explicit qualifying condition (nothing links to or embeds them), which lets an agent distinguish it from a plain attachment listing. It does not name the sibling it differs from (list_attachments), so differentiation is inferred rather than stated.

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?

"Candidates for cleanup (delete with delete_file)" implies the use case and points at the follow-up tool, which is useful routing. However, there is no explicit when-not guidance and no contrast with list_attachments or find_orphans, leaving the agent to infer which tool to pick.

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

Deploy Server

Other Tools