Skip to main content
Glama

list_attachments

Read-onlyIdempotent

List non-note vault files (images, PDFs, audio, video) with sizes and types; filter, sort, or limit results by folder or file type.

Instructions

Non-note files (images, PDFs, audio, video, …) with size and type.

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": "list_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo
typeNo
limitNoMax results (default 300)
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

C2.4/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. The description adds almost nothing beyond that: 'with size and type' hints at returned metadata, but there is no mention of pagination, default limits, sort behavior, or whether subfolders are traversed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is only a single fragment with no wasted words, but that brevity is the result of under-specification rather than tight writing. There is no front-loaded verb to anchor the sentence.

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?

With five parameters, no output schema, and a filtering/pagination-capable tool, the description should explain the returned shape and the filter behavior. It omits folder recursion semantics, limit defaults, and sort direction, leaving the agent to reconstruct behavior from the schema alone.

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 60%, so three of five parameters (sort, type, limit) rely on enum or numeric constraints alone. The description does not explain that 'type' filters by the categories it lists, that 'sort' accepts name/size/modified, or what the 300 default limit means — it could have made the enum parameters meaningful but does not.

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

Purpose3/5

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

The description clarifies the resource scope ('Non-note files (images, PDFs, audio, video, …)'), which usefully distinguishes attachments from notes and arguably from list_files. However, it is a noun-phrase fragment with no verb or explicit statement that the tool lists/enumerates them, so the agent must infer the operation from the tool name.

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?

There is no guidance on when to use this tool versus siblings such as list_files or find_unused_attachments, and no mention of prerequisites or typical scenarios. Only the parenthetical exclusion of notes hints at scope.

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