Skip to main content
Glama

Detach media from notes

detach-media-from-notes
Idempotent

Removes exact image or sound references from selected note fields without deleting the media file; defaults to dry-run mode.

Instructions

Removes exact image or sound references from selected note fields without deleting the media file. Defaults to dry-run mode.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "detachments": "<detachments>"
    },
    "name": "detach-media-from-notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNo
detachmentsYes

Output Schema

NameRequiredDescriptionDefault
dryRunYes
errorsYes
appliedYes
changesYes
changedFieldCountYes
removedReferenceCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds two pieces of real behavioral context the annotations cannot convey: the media file is preserved while the note reference is removed, and the default execution is a dry run rather than a mutation.

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?

Two sentences, zero filler, and the most operationally important constraint (the media file is not deleted) plus the safe default are both front-loaded. Nothing needs trimming or reordering.

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

Completeness3/5

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

An output schema exists, so return-value explanation is not required, and the annotations cover the safety profile. The gap is the two-phase workflow: a caller must know to dry-run first and then replay with expectedFieldHash when applying, and the description only hints at this through 'Defaults to dry-run mode.'

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?

Top-level schema description coverage is 0%, so the description has to carry the load; it does explain the dryRun default and implies note/field/filename targeting via 'exact image or sound references from selected note fields.' However, it never mentions the array-of-detachments batching (up to 50) or the expectedFieldHash handoff, which the nested schema documents but the summary does not surface.

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 gives a concrete verb and resource ('Removes exact image or sound references from selected note fields') and explicitly carves out the boundary that the media file survives. That implicitly separates it from delete-media-file, but no sibling is named, and 'selected note fields' leaves the batching shape (an array of note/field/filename triples) unstated.

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?

Usage is only implied: 'Defaults to dry-run mode' signals a preview-then-apply workflow, which is the main when-to-use signal. Nothing states when to prefer this over find-media-references or delete-media-file, and no prerequisites or exclusions are given.

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