Skip to main content
Glama

search_tools

Find appropriate editing tools for Markdown operations by describing your task, enabling structured document manipulation through hierarchical paths.

Instructions

Scalability feature: find the right tool for your complex task among all available tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesDescription of the operation you want to perform

Implementation Reference

  • Handler implementation for the 'search_tools' tool. It extracts the query, fetches all tools via list_tools(), matches tools by name or description containing the query, and returns relevant tool names.
    if name == "search_tools": query = arguments.get("query", "").lower() all_tools = await list_tools() relevant = [t.name for t in all_tools if query in t.name or (t.description and query in t.description.lower())] return { "content": [TextContent(type="text", text=f"Relevant tools: {', '.join(relevant)}")], "structuredContent": {"tools": relevant}, "isError": False }
  • Registration of the 'search_tools' tool in the list_tools() function, including input and output schemas.
    Tool( name="search_tools", title="Search Tools", description="Scalability feature: find the right tool for your complex task among all available tools.", inputSchema={ "type": "object", "properties": { "query": { "type": "string", "description": "Description of the operation you want to perform", "examples": [ "find paragraphs", "replace text", "move section", "delete element", "list files" ] } }, "required": ["query"], "additionalProperties": False }, outputSchema={ "type": "object", "properties": { "tools": { "type": "array", "description": "List of relevant tool names", "items": {"type": "string"} } } } ),

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/KazKozDev/markdown-editor-mcp-server'

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