Skip to main content
Glama

sync_delete

DestructiveIdempotent

Delete a file from the primary vault. Optional CAS via base_sha to detect concurrent multi-PC writes. Protected paths (global/memory/, global/skills/, global/planning/, global/intent/, global/claude-config/, handoffs/) require base_sha or explicit force:true (audited). Idempotent: deleting a non-existent path returns success with deleted:false.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRelative file path to delete (e.g., 'global/_waf_probe.md'). No leading slash, no '..'.
forceNoOptional: when true, skip CAS check even if base_sha is supplied. Use only for intentional overwrites; presence is auditable via warning logs.
base_shaNoOptional: git_sha the client last observed for this path. When present, server compares with current git_sha and returns -32009 conflict on mismatch (with current content for 3-way diff).
device_idNoOptional: client device identifier for audit log (e.g., from ~/.claude/ainote-sync/device.id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark the tool as destructive and idempotent, but the description adds valuable behavior beyond those hints: non-existent paths return success with deleted:false, protected paths are audited, and force is auditable. It also explains the CAS conflict-detection use case, which the annotations do not convey.

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?

Three dense, purposeful sentences with no filler. The core action comes first, followed by edge-case requirements and idempotent behavior. Each clause earns its place, and the structure is easy for an agent to scan.

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?

Given no output schema and four parameters, the description covers the critical invocation context: protected paths, CAS conflict handling, idempotent returns, and auditability. A minor gap is that the success response shape is only partially specified (deleted:false for non-existent paths), but this is not essential for a correct call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents all four parameters with high coverage, so the baseline is 3. The description adds cross-parameter meaning by linking protected path requirements to base_sha/force and explaining why base_sha matters for concurrent writes, which individual schema descriptions do not capture.

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 description opens with a specific verb and resource: 'Delete a file from the primary vault.' This immediately distinguishes sync_delete from sync_push/sync_read and the more specialized delete_dev_doc/delete_task. The added idempotency and protected-path details further clarify its exact role.

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

Usage Guidelines4/5

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

The description provides clear conditional guidance: protected paths require base_sha or force:true, and base_sha is recommended to detect concurrent multi-PC writes. It does not explicitly name sibling alternatives or state when to prefer another deletion tool, so it stops short of a full when-not-to-use guide.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources