Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.shingleai.com/llms.txt

Use this file to discover all available pages before exploring further.

The ShingleAI MCP server provides 7 tools for managing files and folders in organization storage. These tools are organized into two categories: files and folders.

Files

Tools for uploading, downloading, listing, searching, and deleting files. File content is exchanged as base64-encoded strings to support the MCP protocol.

uploadFile

Upload a file to organization storage with base64-encoded content. Permission: files:write Parameters:
NameTypeRequiredDescription
filenamestringYesName of the file (1-255 characters)
contentstringYesBase64-encoded file content (max 10MB file size)
contentTypestringYesMIME type of the file (e.g., application/pdf, image/png)
folderIdstring (UUID) | nullNoOptional folder ID to place the file in
descriptionstringNoOptional description of the file (max 5000 characters)
tagsstring[]NoOptional tags for the file (max 10)
Returns: Object with success boolean and a file object containing id, filename, size, contentType, and folderId.

downloadFile

Download a file from organization storage as base64-encoded content. Permission: files:read Parameters:
NameTypeRequiredDescription
fileIdstring (UUID)YesThe ID of the file to download
Returns: Object with a file metadata object (id, filename, contentType, size) and a content string containing base64-encoded file bytes.
Downloads are gated by each file’s agentAccessEnabled flag. Files with agent access disabled return an error.

listFiles

List files in organization storage with optional folder filtering and pagination. Permission: files:read Parameters:
NameTypeRequiredDefaultDescription
folderIdstring (UUID) | nullNo-Filter by folder ID (null for root level, omit for all files)
limitnumberNo10Number of files to return (1-100)
offsetnumberNo0Pagination offset
sortOrderstringNo”desc”Sort order by creation date (asc or desc)
Returns:
{
  "files": [...],
  "count": 23,
  "limit": 10,
  "offset": 0
}

searchFiles

Search files by filename, description, or tags using full-text search. Permission: files:read Parameters:
NameTypeRequiredDefaultDescription
querystringYes-Search query to match against filename, description, and tags (1-255 characters)
limitnumberNo10Number of results to return (1-100)
offsetnumberNo0Pagination offset
Returns:
{
  "files": [...],
  "count": 5,
  "query": "invoice",
  "limit": 10,
  "offset": 0
}

deleteFile

Delete a file from organization storage (soft delete). Permission: files:delete Parameters:
NameTypeRequiredDescription
fileIdstring (UUID)YesThe ID of the file to delete
Returns: Object with success boolean, the deleted file object, and a message string.

Folders

Tools for organizing files into a folder hierarchy. Folders can be nested up to 5 levels deep.

createFolder

Create a new folder in organization storage with optional parent folder (max 5 levels deep). Permission: folders:write Parameters:
NameTypeRequiredDescription
namestringYesName of the folder (1-255 characters)
parentFolderIdstring (UUID) | nullNoOptional parent folder ID (null for root level)
Returns: The created folder object.

listFolders

List folders in organization storage with optional parent folder filtering and pagination. Permission: folders:read Parameters:
NameTypeRequiredDefaultDescription
parentFolderIdstring (UUID) | nullNo-Filter by parent folder ID (null for root level, omit for all folders)
limitnumberNo10Number of folders to return (1-100)
offsetnumberNo0Pagination offset
sortOrderstringNo”desc”Sort order by creation date (asc or desc)
Returns:
{
  "folders": [...],
  "count": 6,
  "limit": 10,
  "offset": 0
}

Next Steps

Contact Tools

Manage contacts and their associated data

Authentication

Learn how MCP clients authenticate to the server