Skip to main content
Glama

return all the docs

Retrieve all document IDs from the Document MCP Server to manage and access stored documents efficiently.

Instructions

Return a list of all the document ids.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the tool logic. It returns a list of all document IDs from the docs dictionary.
    def list_docs_id():
        return list(docs.keys())
  • mcp_server.py:46-49 (registration)
    Registration of the tool with FastMCP. Decorates the handler function with the tool name and description.
    @mcp.tool(
        name="return all the docs",
        description="Return a list of all the document ids."
    )
  • The data structure (dictionary) containing all documents that the tool returns IDs from.
    docs = {
        "deposition.md": "This deposition covers the testimony of Angela Smith, P.E.",
        "report.pdf": "The report details the state of a 20m condenser tower.",
        "financials.docx": "These financials outline the project's budget and expenditures",
        "outlook.pdf": "This document presents the projected future performance of the system",
        "plan.md": "The plan outlines the steps for the project's implementation.",
        "spec.txt": "These specifications define the technical requirements for the equipment"
    }

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/mparth14/MCP-anthropic'

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