Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

get-folder-by-id

Read-only

Retrieve a folder's exact name, parent ID, account ID, and root status by ID to verify details before a guarded rename or delete.

Instructions

Use when: reading the exact folder name, parent, and account before a guarded rename or delete-folder-by-id. Returns: folder id, current name, parent id, accountId, and isRoot (true when the folder sits at the account root; pass expectedRoot: true to delete-folder-by-id then, otherwise parentId as expectedParentId). Do not use when: listing folders by path (list-folders). Safety: read-only.

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": {
      "id": "<id>"
    },
    "name": "get-folder-by-id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
okNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.3/5.0
Behavior4/5

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

The 'Safety: read-only' line restates readOnlyHint=true rather than adding to it, but the description goes beyond annotations by disclosing the return fields and explaining how isRoot feeds expectedRoot vs expectedParentId in the downstream delete. It stops short of noting any size/pagination or error behavior, which is minor for a single-record read.

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?

The labeled structure (Use when / Returns / Do not use when / Safety) front-loads the trigger and is easy to scan. The 'Safety: read-only' line is redundant with the annotation and mildly pads the entry, but nothing else is 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 one-parameter read with an output schema present, the definition covers purpose, the alternative, and how the result chains into delete-folder-by-id. Only the id's origin/format is left unspecified, a small gap given how simple the tool is.

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 coverage is 0% with one required `id` parameter, so the schema contributes nothing beyond type and maxLength. The description implies the id identifies a folder but never states the expected format or where the id comes from, and the expectedRoot/expectedParentId guidance applies to delete-folder-by-id rather than this tool's input.

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 'Use when' clause states a specific verb (reading) and resource (folder name, parent, account) by id, and the 'Do not use when' clause names list-folders as the path-based alternative. An agent can distinguish this from list-folders and show-folder without opening any schema.

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

Usage Guidelines5/5

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

Both directions are explicit: use it as a pre-check before a guarded rename or delete-folder-by-id, and do not use it for listing folders by path. The named alternative (list-folders) and the conditional trigger are concrete rather than implied.

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