Get the FREE Ultimate OpenClaw Setup Guide →
npx machina-cli add skill ranbot-ai/awesome-skills/2chat-automation --openclaw
Files (1)
SKILL.md
3.0 KB

2chat Automation via Rube MCP

Automate 2chat operations through Composio's 2chat toolkit via Rube MCP.

Toolkit docs: composio.dev/toolkits/_2chat

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active 2chat connection via RUBE_MANAGE_CONNECTIONS with toolkit _2chat
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit _2chat
  3. If connection is not ACTIVE, follow the returned auth link to complete setup
  4. Confirm connection status shows ACTIVE before running any workflows

Tool Discovery

Always discover available tools before executing workflows:

RUBE_SEARCH_TOOLS
queries: [{use_case: "2chat operations", known_fields: ""}]
session: {generate_id: true}

This returns available tool slugs, input schemas, recommended execution plans, and known pitfalls.

Core Workflow Pattern

Step 1: Discover Available Tools

RUBE_SEARCH_TOOLS
queries: [{use_case: "your specific 2chat task"}]
session: {id: "existing_session_id"}

Step 2: Check Connection

RUBE_MANAGE_CONNECTIONS
toolkits: ["_2chat"]
session_id: "your_session_id"

Step 3: Execute Tools

RUBE_MULTI_EXECUTE_TOOL
tools: [{
  tool_slug: "TOOL_SLUG_FROM_SEARCH",
  arguments: {/* schema-compliant args from search results */}
}]
memory: {}
session_id: "your_session_id"

Known Pitfalls

  • Always search first: Tool schemas change. Never hardcode tool slugs or arguments without calling RUBE_SEARCH_TOOLS
  • Check connection: Verify RUBE_MANAGE_CONNECTIONS shows ACTIVE status before executing tools
  • Schema compliance: Use exact field names and types from the search results
  • Memory parameter: Always include memory in RUBE_MULTI_EXECUTE_TOOL calls, even if empty ({})
  • Session reuse: Reuse session IDs within a workflow. Generate new ones for new workflows
  • Pagination: Check responses for pagination tokens and continue fetching until complete

Quick Reference

OperationApproach
Find toolsRUBE_SEARCH_TOOLS with 2chat-specific use case
ConnectRUBE_MANAGE_CONNECTIONS with toolkit _2chat
ExecuteRUBE_MULTI_EXECUTE_TOOL with discovered tool slugs
Bulk opsRUBE_REMOTE_WORKBENCH with run_composio_tool()
Full schemaRUBE_GET_TOOL_SCHEMAS for tools with schemaRef

Powered by Composio

Source

git clone https://github.com/ranbot-ai/awesome-skills/blob/main/skills/2chat-automation/SKILL.mdView on GitHub

Overview

Automate 2chat operations using Composio’s 2chat toolkit via Rube MCP. It emphasizes discovering current tool schemas before execution to avoid hardcoding slugs, keeping workflows resilient to updates. The workflow covers setup, connection checks, tool discovery, and multi-tool execution.

How This Skill Works

First, discover available tools with RUBE_SEARCH_TOOLS to fetch current 2chat tool slugs and schemas. Next, ensure an ACTIVE connection to the _2chat toolkit via RUBE_MANAGE_CONNECTIONS, then execute the chosen tool with RUBE_MULTI_EXECUTE_TOOL using the discovered slug and required arguments, memory, and an existing session_id. Throughout, reuse session IDs within a workflow and always include memory and up-to-date schemas.

When to Use It

  • Automating recurring 2chat tasks using the latest tool schemas.
  • When tool schemas change and you must refresh slugs and args with RUBE_SEARCH_TOOLS.
  • Setting up or verifying a 2chat connection before workflows.
  • Running a single-tool or multi-tool execution in a session using RUBE_MULTI_EXECUTE_TOOL.
  • Batching multiple 2chat actions via RUBE_REMOTE_WORKBENCH for bulk operations.

Quick Start

  1. Step 1: Verify Rube MCP and 2chat toolkit are accessible using RUBE_SEARCH_TOOLS.
  2. Step 2: Establish or confirm an ACTIVE connection with RUBE_MANAGE_CONNECTIONS for toolkit _2chat.
  3. Step 3: Discover tools, then execute a chosen tool with RUBE_MULTI_EXECUTE_TOOL using memory and a session_id.

Best Practices

  • Always call RUBE_SEARCH_TOOLS before execution to obtain current tool slugs and input schemas.
  • Verify RUBE_MANAGE_CONNECTIONS shows ACTIVE status before running tools.
  • Use exact field names and types from the search results; avoid hardcoding.
  • Always include memory in RUBE_MULTI_EXECUTE_TOOL calls, even if empty ({}).
  • Reuse session IDs within a workflow; generate new ones for new workflows.

Example Use Cases

  • A daily 2chat automation workflow that pulls the latest tool schemas and executes a prepared sequence without hardcoding slugs.
  • After a schema update, re-discover tools with RUBE_SEARCH_TOOLS and run the updated tool in the same session.
  • Initialize and verify an ACTIVE 2chat connection, then dispatch a sequence of 2chat actions in one session.
  • Execute multiple 2chat actions in a single session using RUBE_MULTI_EXECUTE_TOOL with discovered tool slugs.
  • Bulk 2chat operations using RUBE_REMOTE_WORKBENCH to run several 2chat tasks derived from current schemas.

Frequently Asked Questions

Add this skill to your agents

Related Skills

Sponsor this space

Reach thousands of developers