Space Management
list_spaces
List all knowledge spaces in your organization. Parameters:Page number (default: 1)
Items per page (default: 10)
Filter by status:
active, archived, or allFilter by metadata key-value pairs. Only returns spaces whose metadata contains all specified keys and values.
create_space
Create a new knowledge space. Parameters:Name of the space
Description of what the space contains (used by Smart Query)
Emoji icon for the space
URL-friendly identifier (auto-generated if not provided)
Custom key-value metadata for categorization and filtering
get_space
Get details of a specific space. Parameters:Space ID
update_space
Update a space’s properties. Parameters:Space ID
New name
New description
New icon
New slug
Updated metadata key-value pairs (replaces existing metadata)
Archive status
delete_space
Archive a space (soft delete). Parameters:Space ID
Document Management
list_documents
List documents in a space. Parameters:Space ID
Page number
Items per page
Filter by document processing status. Valid values (case-insensitive):
PENDING, PROCESSING, COMPLETED, FAILED. Input is normalized to uppercase automatically. Note: These are document processing statuses, not space statuses.Filter by document metadata key-value pairs. Only returns documents whose metadata contains all specified keys and values.
The
status parameter filters by document processing status. Valid values are: PENDING (not yet processed), PROCESSING (currently being processed), COMPLETED (ready for querying), or FAILED (processing error). Case-insensitive input is accepted (e.g., “completed”, “COMPLETED”, or “Completed” all work). Do not use space statuses like “active” here.upload_document
Upload text or markdown content as a document. Parameters:Space ID to upload to
Markdown or text content
Filename (default:
document.md)Optional key-value metadata
Documents are processed asynchronously. Check the status using
get_document before querying.get_document
Get details of a specific document. Parameters:Document ID
Space ID
update_document
Update document metadata. Parameters:Document ID
Space ID
New metadata key-value pairs
delete_document
Permanently delete a document. Parameters:Document ID
Space ID
Querying
query_spaces
Search for semantically similar content across spaces. Parameters:Natural language search query
One or more space IDs to search, or ’*’ for all spaces
Maximum results (default: 5)
Similarity threshold 0-1 (default: 0.5, higher = more relevant)
Filter results by document metadata. Only returns results from documents whose metadata contains all specified keys and values.
Include adjacent chunks for context (default: false)
Use compact response format (default: true)
smart_query
Discover which spaces are most relevant for your query. Parameters:Natural language query
Maximum recommendations (default: 5)
Relevance method:
keyword, embedding, or hybrid (default: hybrid)Weight for keyword matching in hybrid mode, 0-1 (default: 0.5)
Tool Usage Patterns
Searching for Information
- Use
smart_queryto find relevant spaces - Use
query_spaceswith the recommended space IDs - Process the results in your response
Adding Knowledge
- Use
list_spacesorcreate_spaceto get/create a space - Use
upload_documentto add content - Use
get_documentto verify processing completed
Managing Content
- Use
list_documentsto see existing content - Use
update_documentto modify metadata - Use
delete_documentto remove outdated content