Skip to main content
Glama

delete_content

Deletes specified content between start and end positions in a document, requiring exact expected content verification to prevent unintended edits.

Instructions

Delete content between positions (requires content verification for safety)

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": {
      "workspace": "<workspace>",
      "documentId": "<documentId>",
      "startPos": "<startPos>",
      "endPos": "<endPos>",
      "expectedContent": "<expectedContent>"
    },
    "name": "delete_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
endPosYesEnd position of content to delete
startPosYesStart position of content to delete
workspaceYes
documentIdYes
expectedContentYesThe exact content expected at these positions (required for safety verification)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose one important trait: the operation requires content verification for safety. It does not say what happens on a verification mismatch, whether the deletion is reversible, or what permissions are needed for a destructive operation.

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?

A single compact sentence with the resource scope front-loaded and the safety caveat in a parenthetical. Nothing is wasted, though it is arguably too terse for a destructive tool.

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?

This is a five-required-parameter destructive tool with no annotations, no output schema, and incomplete parameter documentation. The description should at minimum explain the verification failure behavior and permanence of the delete, but leaves both unspecified.

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 coverage is only 60%, and the description just restates the expectedContent verification already documented in the schema. It adds no meaning for the undocumented workspace and documentId parameters, so the coverage gap is not compensated.

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?

States a specific verb ('Delete') and resource ('content') scoped to a position range, which clearly distinguishes it from siblings like delete_document or delete_rows. It does not explicitly name an alternative, but the positional scope is unambiguous.

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?

No when-to-use or when-not-to-use guidance is offered, nor is any alternative such as replace_content named. An agent must infer from the position-based scope alone whether this is the right tool.

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