list_guidelines
Discover available GO-CAM guideline documents for biological knowledge modeling. Use this tool to identify which guidelines can be accessed for building and editing Gene Ontology Causal Activity Models.
Instructions
List all available GO-CAM guideline documents.
Returns a list of available guideline names that can be accessed using the get_guideline_content tool.
Returns: Dictionary with 'guidelines' key containing list of available guidelines
Examples: # List all available guidelines result = list_guidelines() for guide in result['guidelines']: print(guide)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
Implementation Reference
- src/noctua_mcp/mcp_server.py:1879-1902 (handler)The handler function for the 'list_guidelines' MCP tool. It calls the helper _get_available_guidelines() to list all .md guideline files in the guidelines directory and returns them with count and usage note.@mcp.tool() async def list_guidelines() -> Dict[str, Any]: """List all available GO-CAM guideline documents. Returns a list of available guideline names that can be accessed using the get_guideline_content tool. Returns: Dictionary with 'guidelines' key containing list of available guidelines Examples: # List all available guidelines result = list_guidelines() for guide in result['guidelines']: print(guide) """ guidelines = _get_available_guidelines() return { "guidelines": guidelines, "count": len(guidelines), "note": "Use get_guideline_content(guideline_name) to fetch any guideline" }
- Helper utility function that scans the GUIDELINES_DIR for .md files and returns sorted list of their stem names (filenames without .md extension). Used by list_guidelines tool.def _get_available_guidelines() -> List[str]: """Get list of available guideline files.""" if not GUIDELINES_DIR.exists(): return [] return sorted([f.stem for f in GUIDELINES_DIR.glob("*.md")])
- src/noctua_mcp/mcp_server.py:27-28 (helper)Definition of GUIDELINES_DIR path, which points to the local 'guidelines' directory containing .md guideline files. Used by guideline-related tools.# Path to guidelines directory GUIDELINES_DIR = Path(__file__).parent / "guidelines"
- src/noctua_mcp/mcp_server.py:1879-1879 (registration)FastMCP decorator that registers the list_guidelines function as an MCP tool.@mcp.tool()