load_systems_documentation
Load systems documentation, examples, and specifications to enhance model accuracy in generating system specifications.
Instructions
Load systems documentation, examples, and specification details to improve the models ability to generate specifications.
Returns: Documentation and several examples of systems models
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:42-57 (handler)The main handler function for the 'load_systems_documentation' tool. It loads documentation from predefined files into a global cache if not already loaded and returns it as a formatted string.@mcp.tool() async def load_systems_documentation() -> str: """Load systems documentation, examples, and specification details to improve the models ability to generate specifications. Returns: Documentation and several examples of systems models """ global DOC_CACHE if DOC_CACHE is None: DOC_CACHE = "" for rel_file_path in DOCUMENTATION_FILES: with open(os.path.abspath(rel_file_path), 'r') as fin: DOC_CACHE += fin.read() + "\n\n" return f"Systems Documentation:\n\n {DOC_CACHE}"
- main.py:8-9 (helper)Global variables defining the list of documentation files to load and the cache for the loaded content, used by the tool handler.DOCUMENTATION_FILES = ("./docs/readme.md", "./docs/examples.md") DOC_CACHE = None
- main.py:42-42 (registration)The @mcp.tool() decorator registers this function as an MCP tool.@mcp.tool()