Skip to main content
Glama

get_workflow

Retrieve structured workflow information for Stylus development, including step-by-step commands for build, deploy, and test operations to guide development processes.

Instructions

Get structured workflow information for Stylus development. Returns step-by-step commands for build, deploy, test operations. Use this when the user needs guidance on development workflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_typeYesType of workflow information to retrieve
networkNoTarget network for deploy workflow (default: arbitrum_sepolia)arbitrum_sepolia
include_troubleshootingNoInclude common errors and solutions (default: true)

Implementation Reference

  • The execute method contains the primary handler logic for the get_workflow tool, which routes to specific workflow retrieval methods based on the input parameters.
    def execute(
        self,
        workflow_type: str,
        network: Optional[str] = "arbitrum_sepolia",
        include_troubleshooting: bool = True,
        **kwargs
    ) -> dict:
        """
        Execute the workflow retrieval.
    
        Args:
            workflow_type: Type of workflow (build, deploy, test, cli_reference, networks, all)
            network: Target network for deploy workflow
            include_troubleshooting: Whether to include error solutions
    
        Returns:
            Structured workflow information with commands and steps
        """
        result = {
            "workflow_type": workflow_type,
            "network": network if workflow_type == "deploy" else None,
        }
    
        if workflow_type == "build" or workflow_type == "all":
            result["build"] = self._get_build_workflow(include_troubleshooting)
    
        if workflow_type == "deploy" or workflow_type == "all":
            result["deploy"] = self._get_deploy_workflow(network, include_troubleshooting)
    
        if workflow_type == "test" or workflow_type == "all":
            result["test"] = self._get_test_workflow(include_troubleshooting)
    
        if workflow_type == "cli_reference" or workflow_type == "all":
            result["cli_reference"] = self._get_cli_reference()
    
        if workflow_type == "networks" or workflow_type == "all":
            result["networks"] = self._get_network_configs()
    
        return result
  • The input_schema definition for the get_workflow tool.
    input_schema = {
        "type": "object",
        "properties": {
            "workflow_type": {
                "type": "string",
                "enum": ["build", "deploy", "test", "cli_reference", "networks", "all"],
                "description": "Type of workflow information to retrieve",
            },
            "network": {
                "type": "string",
                "enum": ["arbitrum_sepolia", "arbitrum_one", "arbitrum_nova", "local"],
                "description": "Target network (for deploy workflow)",
            },
            "include_troubleshooting": {
                "type": "boolean",
                "default": True,
                "description": "Include common errors and solutions",
            },
        },
        "required": ["workflow_type"],
    }
  • The registration of the tool name as 'get_workflow'.
    name = "get_workflow"

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/Quantum3-Labs/ARBuilder'

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