Skip to main content
Glama

list_all_docs

Retrieve all available documents, including disabled ones, from the open-docs-mcp server for comprehensive document management.

Instructions

List all available docs including disabled ones

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
verboseNoWhether to show detailed information

Implementation Reference

  • The main handler function for the 'list_all_docs' tool, which lists all available docs including disabled ones, showing their status, crawler start URL, and crawl history.
    case "list_all_docs": { // Ensure config file exists before reading it await ensureConfigFile(); const verbose = Boolean(request.params.arguments?.verbose); const config = await fs.readJson(configPath); const result = docs.map(doc => { const isEnabled = docConfig[doc.name]; const crawledAt = isEnabled ? (config.crawledDocs?.[doc.name] || "Not crawled") : ""; return verbose ? `${doc.name} (${isEnabled ? "Enabled" : "Disabled"})\n Start URL: ${doc.crawlerStart}\n Last crawled: ${crawledAt || "N/A"}` : `${doc.name} [${isEnabled ? (crawledAt === "Not crawled" ? "Enabled, not cached" : "Enabled, cached") : "Disabled"}]`; }); return { content: [{ type: "text", text: result.join("\n") || "No docs found" }] }; }
  • src/index.ts:517-529 (registration)
    Tool registration in the ListToolsRequestSchema handler, defining the name, description, and input schema for 'list_all_docs'.
    name: "list_all_docs", description: "List all available docs including disabled ones", inputSchema: { type: "object", properties: { verbose: { type: "boolean", description: "Whether to show detailed information", default: false } } } }
  • Input schema definition for the 'list_all_docs' tool, specifying optional 'verbose' boolean parameter.
    inputSchema: { type: "object", properties: { verbose: { type: "boolean", description: "Whether to show detailed information", default: false } } }

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/askme765cs/open-docs-mcp'

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