Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

analyze-svg

Read-only

Check whether an SVG can be represented as editable monoline strokes and identify geometry, paint, or content that conversion would approximate or drop.

Instructions

Use when: checking whether an SVG file can be represented as editable monoline strokes, and what that conversion would approximate or drop. Returns: classification (safe, lossy, unsupported), importable, defaultWriteAllowed, requiredLosses (geometry-approximation, paint-approximation, drop-content), issues with element locations, counts and work budgets, the source SHA-256, and analysisDigest, a SHA-256 over the canonical analysis and normalized drawing. includeDrawing adds the drawing. Do not use when: you want to attach the SVG file itself to a note (add-attachment). Safety: read-only and local. Opens no Notes data and makes no network request. Reads only a regular file in home, temp or /Volumes, refusing hidden paths (~/.ssh, .env) and ~/Library outside iCloud Drive and CloudStorage unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1; a file whose root element is not is refused without quoting it. Scripts, event handlers, style elements, animation, DOCTYPE/entities and external resources are refused with svgCode svg_unsafe; malformed files with svg_invalid; oversized work with svg_complexity_limit.

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": {
      "path": "<path>"
    },
    "name": "analyze-svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of one .svg file (home, temp, or /Volumes; not a hidden path or ~/Library outside iCloud Drive and CloudStorage; not a symbolic link; at most 1048576 bytes of UTF-8)
includeDrawingNoAlso return the normalized drawing (strokes with sRGB color, width and points). Off by default: it can be large.

Output Schema

NameRequiredDescriptionDefault
classificationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false; the description goes further with path allow-lists, refusal of hidden paths, rejection of non-<svg> roots, and named error codes (svg_unsafe, svg_invalid, svg_complexity_limit). That is genuinely additive behavioral context. However, the description restates the read-only/local/no-network facts that the annotations already convey, and the Returns block largely duplicates the output schema, so a 3 rather than higher.

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?

Front-loaded with labeled sections (Use when / Returns / Do not use when / Safety), so an agent can scan to the decision-relevant line fast. The Safety paragraph is long and enumerates error codes and path rules that partly overlap the schema, but each clause is informational rather than filler.

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

Completeness5/5

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

For a two-parameter read-only tool with an output schema, nothing important is missing: input constraints, refusal modes, error codes, and the conditional drawing payload are all covered. The verbose Returns enumeration is redundant given the output schema but does not leave gaps.

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% and the schema already specifies the path constraints and that includeDrawing returns a possibly large normalized drawing. The description only echoes that "includeDrawing adds the drawing," adding no new syntax, defaults, or edge cases beyond the schema. Baseline 3 is correct when the schema carries the parameter burden.

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?

"Use when: checking whether an SVG file can be represented as editable monoline strokes, and what that conversion would approximate or drop" states a specific verb (analyze/check) and resource (SVG file) plus the exact question answered. The Returns block names concrete outputs (classification safe/lossy/unsupported, requiredLosses, analysisDigest), so an agent knows precisely what this tool produces and how it differs from attachment tools.

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?

It has an explicit "Use when" condition and an explicit "Do not use when" that names the alternative (add-attachment) with the discriminating condition: wanting to attach the file itself to a note versus analyzing its convertibility. No inference is required to choose between them.

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