Skip to main content
Glama

Remove Chapter

remove_chapter

Eliminate specific chapters from knowledge documents to remove outdated, redundant, or incorrect content. Preserves document integrity by precisely targeting and permanently deleting specified sections while retaining the rest of the structure. Verify chapter titles carefully before removal.

Instructions

Remove a specific chapter from a knowledge document.

When to use this tool:

  • Removing outdated or incorrect chapters

  • Consolidating overlapping content

  • Streamlining document structure

  • Eliminating redundant information

Key features:

  • Precise chapter removal

  • Preserves all other chapters

  • Maintains document integrity

You should:

  1. Verify chapter exists with exact title

  2. Consider if content should be preserved

  3. Check for references from other chapters

  4. Use case-sensitive chapter title

  5. Understand removal is permanent

DO NOT use when:

  • Chapter should be updated instead

  • Content is still relevant

  • Unsure about the impact

Returns: {success: bool, message?: str, error?: str}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chapter_titleYesExact title of the chapter to remove
filenameYesKnowledge file name (must include .md extension)
project_idYesThe project identifier
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it specifies that removal is permanent, preserves other chapters, maintains document integrity, requires case-sensitive chapter titles, and suggests verification steps. It doesn't mention authentication needs, rate limits, or error handling details, keeping it from a perfect score.

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 description is well-structured with clear sections (purpose, usage guidelines, features, instructions, exclusions, returns) and front-loaded key information. It's appropriately sized but could be slightly more concise by integrating some bullet points into flowing text without losing clarity.

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 destructive tool with no annotations and no output schema, the description does well by covering purpose, usage context, behavioral traits, and return format. It lacks details on error scenarios or system-level constraints, but given the tool's moderate complexity, it provides sufficient context for effective use.

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%, so the schema already documents all three parameters thoroughly. The description adds minimal value beyond the schema by implying the 'chapter_title' must be exact and case-sensitive, but doesn't provide additional context for 'filename' or 'project_id'. Baseline 3 is appropriate when schema does the heavy lifting.

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 clearly states the specific action ('Remove a specific chapter') and resource ('from a knowledge document'), distinguishing it from siblings like 'delete_knowledge_file' (whole file deletion) and 'update_chapter' (modification rather than removal). It precisely defines the tool's function without ambiguity.

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?

The description provides explicit guidance with dedicated 'When to use this tool' and 'DO NOT use when' sections, listing specific scenarios like removing outdated content or consolidating overlapping chapters, and warning against use when chapters should be updated instead. It clearly differentiates from alternatives like 'update_chapter' for content modification.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sven-borkert/knowledge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server