Skip to main content
Glama
dstreefkerk

ms-sentinel-mcp-server

by dstreefkerk

tool_docs_list

Lists available Microsoft Sentinel documentation markdown files to help users locate and access server resources.

Instructions

Enumerate available Sentinel server documentation markdown paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kwargsYes

Implementation Reference

  • The `ToolDocsListTool` class defines and implements the `tool_docs_list` tool, including the `run` method which lists all `*.md` files under `resources/tool_docs`, optionally filtered by `prefix`, returning a list of relative paths or an error.
    class ToolDocsListTool(MCPToolBase):
        """Tool for enumerating available Sentinel server documentation markdown paths."""
    
        name = "tool_docs_list"
        description = "Enumerate available Sentinel server documentation markdown paths."
    
        async def run(self, ctx, **kwargs) -> Any:
            """
            Enumerate available Sentinel server documentation markdown paths.
    
            Args:
                ctx: The tool context (unused).
                **kwargs: Optional arguments. May include:
                    - prefix (str, optional):
                      Only include docs whose relative path starts with this prefix.
    
            Returns:
                dict: {
                    'paths': list of relative markdown doc paths,
                    'error': error message if directory cannot be read
                }
            """
    
            # Defensive: handle string, None, or dict for kwargs
    
            # Extract prefix parameter using the centralized parameter extraction from MCPToolBase
            prefix = self._extract_param(kwargs, "prefix")
            try:
                paths = [str(p.relative_to(DOC_ROOT)) for p in DOC_ROOT.rglob("*.md")]
                if prefix:
                    paths = [p for p in paths if p.startswith(prefix)]
                return {"paths": paths}
            except Exception as e:
                return {"error": f"Failed to list docs: {e}"}
  • `register_tools` function registers the `ToolDocsListTool` (among other doc tools) with the MCP server instance via `ToolDocsListTool.register(mcp)`.
    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)
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions enumeration but fails to specify whether this is a read-only operation, if it requires authentication, what the output format is, or any rate limits. This leaves significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that is front-loaded with the core purpose. There is no wasted verbiage, making it highly concise and well-structured for quick understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (one parameter with 0% schema coverage, no annotations, and no output schema), the description is incomplete. It lacks details on parameters, behavioral traits, and output, making it insufficient for effective agent use without additional context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not explain the single parameter 'kwargs'. It provides no meaning beyond the schema, failing to compensate for the lack of schema documentation, which is inadequate for a tool with one required parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Enumerate') and resource ('available Sentinel server documentation markdown paths'), providing a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'tool_docs_get' or 'tool_docs_search', which appear related to documentation access but serve different purposes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description lacks context about prerequisites, timing, or comparisons to sibling tools such as 'tool_docs_get' or 'tool_docs_search', leaving the agent without usage direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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