Skip to main content
Glama

documents-list

List all documents in Shortcut project management to access and organize project files directly from AI tools.

Instructions

List all documents in Shortcut.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'documents-list' tool. Fetches all documents using this.client.listDocs() and returns a formatted list or error message using toResult.
    private async listDocuments() { try { const docs = await this.client.listDocs(); if (!docs?.length) return this.toResult("No documents were found."); return this.toResult(`Found ${docs.length} documents.`, docs); } catch (error) { const errorMessage = error instanceof Error ? error.message : "Unknown error"; return this.toResult(`Failed to list documents: ${errorMessage}`); } }
  • Registration of the 'documents-list' tool on the CustomMcpServer instance with read access and no parameters, linking to the listDocuments handler.
    server.addToolWithReadAccess( "documents-list", "List all documents in Shortcut.", async () => await tools.listDocuments(), );

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/useshortcut/mcp-server-shortcut'

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