Skip to main content
Glama
dstreefkerk

ms-sentinel-mcp-server

by dstreefkerk
tool_docs_search.md1.06 kB
# Tool Docs Search Tool **Tool Name:** `tool_docs_search` ## Overview Performs a full-text search across documentation in the `resources/tool_docs` directory and returns matching paths. ## Parameters - `query` (str, required): Regex or text to search for in docs. - `k` (int, optional): Max number of results to return (default: 10). ## Output - `hits` (list[str]): Relative doc paths containing a match. - If error, returns a dict with `error` (str). ## Example Requests ### Search for docs containing the word "analytics" ``` { "query": "analytics" } ``` ### Search for docs containing the word "incident" (limit 2 results) ``` { "query": "incident", "k": 2 } ``` ## Example Output ``` { "hits": [ "sentinel_analytics_rule_get.md", "sentinel_analytics_rule_list.md" ] } ``` ## Error Handling - Returns `error` if the search fails or required parameters are missing. ## MCP Compliance - Inherits from `MCPToolBase`. - Implements `async def run(self, ctx, **kwargs)`. - Registered in `register_tools()`. - Uses robust error handling.

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