Skip to main content
Glama
live_get_document_content.py918 B
import asyncio from goodday_openwebui_complete_tool import Tools async def main(): tools = Tools() # Optionally set your API key here if not using env var # tools.valves.api_key = "your_goodday_api_token" # First, search for documents to get a document ID print("=== Searching for documents ===") search_result = await tools.search_project_documents( project_name="ASTRA", document_name="postgres" ) print(search_result) # Then, get content of a specific document (replace with actual document ID from search results) print("\n=== Getting document content ===") # Replace 'YOUR_DOCUMENT_ID_HERE' with an actual document ID from the search results above result = await tools.get_document_content( document_id="YOUR_DOCUMENT_ID_HERE" # Replace with actual document ID ) print(result) if __name__ == "__main__": asyncio.run(main())

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/cdmx-in/goodday-mcp'

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