Skip to main content
Glama

tool_suggest_workflow

Analyzes research queries to recommend optimal tools and workflow steps for answering questions efficiently, using intent classification and dynamic generation.

Instructions

Suggest optimal research workflow for a query.

Analyzes the query and recommends the best tools and workflow to answer it. Uses smart intent classification and dynamic workflow generation.

Args: query: Research question or task description. known_urls: Optional list of already known URLs (default None).

Returns: Dictionary with intent, workflow steps, and suggested parameters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
known_urlsNo

Implementation Reference

  • The handler implementation for the tool_suggest_workflow tool, which uses suggest_tools to provide workflow recommendations.
    def tool_suggest_workflow(query: str, known_urls: list[str] = None) -> dict:
        """Suggest optimal research workflow for a query.
    
        Analyzes the query and recommends the best tools and workflow to answer it.
        Uses smart intent classification and dynamic workflow generation.
    
        Args:
            query: Research question or task description.
            known_urls: Optional list of already known URLs (default None).
    
        Returns:
            Dictionary with intent, workflow steps, and suggested parameters.
        """
        # Build context from known URLs
        context = ResearchContext()
        if known_urls:
            context.known_urls = known_urls
    
        # Get workflow suggestions
        result = suggest_tools(query, context)
    
        return result

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/Y4NN777/devlens-mcp'

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