Skip to main content
Glama
dstreefkerk

ms-sentinel-mcp-server

by dstreefkerk

llm_instructions_get

Retrieve usage instructions for the Microsoft Sentinel MCP Server to understand how to interact with its security tools effectively.

Instructions

Retrieve the LLM usage instructions for the Sentinel MCP Server. Use this tool first before all other tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kwargsYes

Implementation Reference

  • The LLMInstructionsGetTool class defines the tool named 'llm_instructions_get' with its description and the 'run' handler method. The handler reads the LLM instructions markdown file from the docs directory and returns its content or an error.
    class LLMInstructionsGetTool(MCPToolBase): """Tool for retrieving the LLM usage instructions for the Sentinel MCP Server.""" name = "llm_instructions_get" description = ( "Retrieve the LLM usage instructions for the Sentinel MCP Server. " "Use this tool first before all other tools." ) async def run(self, ctx, **kwargs) -> Any: """ Retrieve the LLM usage instructions for the Sentinel MCP Server. Args: ctx: The tool context (unused). **kwargs: Optional arguments (unused). Returns: dict: { 'content': raw markdown content of docs/llm_instructions.md, 'error': error message if file cannot be read } """ # Defensive: handle string, None, or dict for kwargs (even if unused) # No parameters to extract, but we'll normalize kwargs for consistency # using the centralized parameter extraction from MCPToolBase _ = self._extract_param(kwargs, "") try: llm_path = Path(__file__).parent.parent / "docs" / "llm_instructions.md" content = llm_path.read_text(encoding="utf-8") return {"content": content} except Exception as e: return {"error": f"Failed to read LLM instructions: {e}"}
  • The register_tools function registers the LLMInstructionsGetTool (and other documentation tools) with the MCP server instance.
    def register_tools(mcp): """Register all documentation tools with the given MCP server instance.""" ToolDocsListTool.register(mcp) ToolDocsGetTool.register(mcp) ToolDocsSearchTool.register(mcp) LLMInstructionsGetTool.register(mcp)

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/dstreefkerk/ms-sentinel-mcp-server'

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