Skip to main content
Glama

Knowledge MCP Server

by sven-borkert

update_project_section

Modify or update a specific section in a project’s main.md file without altering other parts. Use for targeted edits, error fixes, or adding new configurations, ensuring document structure and integrity are preserved.

Instructions

Update a specific section within the project main.md file efficiently.

When to use this tool:

  • Modifying a single section without affecting others
  • Adding new configuration or guidelines to existing section
  • Fixing errors in specific sections
  • Updating outdated information in targeted areas
  • Making incremental improvements

Key features:

  • Preserves all other sections intact (non-destructive)
  • More efficient than full file replacement
  • Maintains document structure
  • Atomic section-level updates

You should:

  1. Identify the exact section header including "## " prefix
  2. Read the current section content first if needed
  3. Preserve section formatting conventions
  4. Use this instead of update_project_main for small changes
  5. Verify section exists before attempting update
  6. Keep section content focused and relevant
  7. Consider impact on related sections

DO NOT use when:

  • Section doesn't exist (use add_project_section)
  • Need to update multiple sections (batch operations)
  • Restructuring entire document

Section header must match exactly (e.g., "## Installation") Returns: {success: bool, message?: str, error?: str}

Input Schema

NameRequiredDescriptionDefault
new_contentYesThe new content for this section (without the header)
project_idYesThe project identifier
section_headerYesThe exact section header to update (e.g., "## Installation")

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "new_content": { "description": "The new content for this section (without the header)", "maxLength": 10485760, "type": "string" }, "project_id": { "description": "The project identifier", "maxLength": 100, "minLength": 1, "type": "string" }, "section_header": { "description": "The exact section header to update (e.g., \"## Installation\")", "maxLength": 200, "minLength": 1, "pattern": "^##\\s+", "type": "string" } }, "required": [ "project_id", "section_header", "new_content" ], "type": "object" }

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