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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_server.py:50-51 (handler)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." ) - mcp_server.py:6-13 (helper)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" }