Skip to main content
Glama

Knowledge MCP Server

by sven-borkert

get_knowledge_file

Retrieve complete knowledge documents with metadata and chapters for comprehensive review, backups, or migrations. Ensure full content access while optimizing large documents with chapter operations.

Instructions

Retrieve complete content of a knowledge document including all metadata and chapters.

When to use this tool:

  • Needing full document for comprehensive review
  • Backing up or exporting documents
  • Migrating content between projects
  • Loading small documents completely

Key features:

  • Returns complete document with all chapters
  • Includes metadata (title, keywords, introduction)
  • Preserves document structure
  • Full content access

You should:

  1. Consider using chapter operations for large documents
  2. Check document exists first
  3. Include .md extension in filename
  4. Be aware this loads entire document into memory
  5. Use chapter iteration for partial access
  6. Cache result if accessing multiple times

DO NOT use when:

  • Only need specific chapters (use get_chapter)
  • Document is very large (use chapter operations)
  • Just need to search content (use search_knowledge)

Returns: {success: bool, document?: object, error?: str}

Input Schema

NameRequiredDescriptionDefault
filenameYesKnowledge file name (must include .md extension)
project_idYesThe project identifier

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "filename": { "description": "Knowledge file name (must include .md extension)", "maxLength": 255, "minLength": 1, "type": "string" }, "project_id": { "description": "The project identifier", "maxLength": 100, "minLength": 1, "type": "string" } }, "required": [ "project_id", "filename" ], "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