google_classroom-automation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoogle Classroom Automation via Rube MCP
基于Rube MCP的Google Classroom自动化
Automate Google Classroom operations through Composio's Google Classroom toolkit via Rube MCP.
Toolkit docs: composio.dev/toolkits/google_classroom
通过Rube MCP,借助Composio的Google Classroom工具包自动化Google Classroom操作。
Prerequisites
前提条件
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Google Classroom connection via with toolkit
RUBE_MANAGE_CONNECTIONSgoogle_classroom - Always call first to get current tool schemas
RUBE_SEARCH_TOOLS
- 必须已连接Rube MCP(需提供RUBE_SEARCH_TOOLS)
- 通过并使用
RUBE_MANAGE_CONNECTIONS工具包,已建立有效的Google Classroom连接google_classroom - 请始终先调用以获取最新的工具schema
RUBE_SEARCH_TOOLS
Setup
设置步骤
Get Rube MCP: Add as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
https://rube.app/mcp- Verify Rube MCP is available by confirming responds
RUBE_SEARCH_TOOLS - Call with toolkit
RUBE_MANAGE_CONNECTIONSgoogle_classroom - If connection is not ACTIVE, follow the returned auth link to complete setup
- Confirm connection status shows ACTIVE before running any workflows
获取Rube MCP:在客户端配置中添加作为MCP服务器。无需API密钥——只需添加端点即可使用。
https://rube.app/mcp- 通过确认能正常响应,验证Rube MCP是否可用
RUBE_SEARCH_TOOLS - 调用并指定工具包
RUBE_MANAGE_CONNECTIONSgoogle_classroom - 如果连接状态未显示为ACTIVE,请按照返回的授权链接完成设置
- 在运行任何工作流之前,确认连接状态为ACTIVE
Tool Discovery
工具发现
Always discover available tools before executing workflows:
RUBE_SEARCH_TOOLS: queries=[{"use_case": "course management, assignments, student rosters, and announcements", "known_fields": ""}]This returns:
- Available tool slugs for Google Classroom
- Recommended execution plan steps
- Known pitfalls and edge cases
- Input schemas for each tool
在执行工作流之前,请始终先发现可用工具:
RUBE_SEARCH_TOOLS: queries=[{"use_case": "course management, assignments, student rosters, and announcements", "known_fields": ""}]此命令将返回:
- Google Classroom的可用工具标识(tool slugs)
- 推荐的执行计划步骤
- 已知的陷阱和边缘情况
- 每个工具的输入schema
Core Workflows
核心工作流
1. Discover Available Google Classroom Tools
1. 发现可用的Google Classroom工具
RUBE_SEARCH_TOOLS:
queries:
- use_case: "list all available Google Classroom tools and capabilities"Review the returned tools, their descriptions, and input schemas before proceeding.
RUBE_SEARCH_TOOLS:
queries:
- use_case: "list all available Google Classroom tools and capabilities"在继续操作之前,请查看返回的工具、其描述以及输入schema。
2. Execute Google Classroom Operations
2. 执行Google Classroom操作
After discovering tools, execute them via:
RUBE_MULTI_EXECUTE_TOOL:
tools:
- tool_slug: "<discovered_tool_slug>"
arguments: {<schema-compliant arguments>}
memory: {}
sync_response_to_workbench: false发现工具后,通过以下方式执行:
RUBE_MULTI_EXECUTE_TOOL:
tools:
- tool_slug: "<discovered_tool_slug>"
arguments: {<schema-compliant arguments>}
memory: {}
sync_response_to_workbench: false3. Multi-Step Workflows
3. 多步骤工作流
For complex workflows involving multiple Google Classroom operations:
- Search for all relevant tools: with specific use case
RUBE_SEARCH_TOOLS - Execute prerequisite steps first (e.g., fetch before update)
- Pass data between steps using tool responses
- Use for bulk operations or data processing
RUBE_REMOTE_WORKBENCH
对于涉及多个Google Classroom操作的复杂工作流:
- 使用特定用例调用,搜索所有相关工具
RUBE_SEARCH_TOOLS - 先执行前置步骤(例如,先获取数据再更新)
- 利用工具响应在步骤之间传递数据
- 使用进行批量操作或数据处理
RUBE_REMOTE_WORKBENCH
Common Patterns
常见模式
Search Before Action
操作前先搜索
Always search for existing resources before creating new ones to avoid duplicates.
在创建新资源之前,请始终先搜索现有资源以避免重复。
Pagination
分页
Many list operations support pagination. Check responses for or and continue fetching until exhausted.
next_cursorpage_token许多列表操作支持分页。请检查响应中的或,并持续获取数据直到全部加载完成。
next_cursorpage_tokenError Handling
错误处理
- Check tool responses for errors before proceeding
- If a tool fails, verify the connection is still ACTIVE
- Re-authenticate via if connection expired
RUBE_MANAGE_CONNECTIONS
- 在继续操作之前,请检查工具响应中的错误
- 如果工具执行失败,请验证连接是否仍处于ACTIVE状态
- 如果OAuth令牌过期,请通过重新认证
RUBE_MANAGE_CONNECTIONS
Batch Operations
批量操作
For bulk operations, use with in a loop with for parallel execution.
RUBE_REMOTE_WORKBENCHrun_composio_tool()ThreadPoolExecutor对于批量操作,在中使用,结合实现循环并行执行。
RUBE_REMOTE_WORKBENCHrun_composio_tool()ThreadPoolExecutorKnown Pitfalls
常见陷阱
- Always search tools first: Tool schemas and available operations may change. Never hardcode tool slugs without first discovering them via .
RUBE_SEARCH_TOOLS - Check connection status: Ensure the Google Classroom connection is ACTIVE before executing any tools. Expired OAuth tokens require re-authentication.
- Respect rate limits: If you receive rate limit errors, reduce request frequency and implement backoff.
- Validate schemas: Always pass strictly schema-compliant arguments. Use to load full input schemas when
RUBE_GET_TOOL_SCHEMASis returned instead ofschemaRef.input_schema
- 始终先搜索工具:工具schema和可用操作可能会发生变化。请勿在未通过发现工具的情况下硬编码工具标识(tool slugs)。
RUBE_SEARCH_TOOLS - 检查连接状态:在执行任何工具之前,请确保Google Classroom连接处于ACTIVE状态。过期的OAuth令牌需要重新认证。
- 遵守速率限制:如果收到速率限制错误,请降低请求频率并实现退避机制。
- 验证schema:请始终传递严格符合schema要求的参数。当返回而非
schemaRef时,请使用input_schema加载完整的输入schema。RUBE_GET_TOOL_SCHEMAS
Quick Reference
快速参考
| Operation | Approach |
|---|---|
| Find tools | |
| Connect | |
| Execute | |
| Bulk ops | |
| Full schema | |
Toolkit docs: composio.dev/toolkits/google_classroom
| 操作 | 方法 |
|---|---|
| 查找工具 | 使用Google Classroom特定用例调用 |
| 建立连接 | 使用工具包 |
| 执行操作 | 使用已发现的工具标识调用 |
| 批量操作 | 在 |
| 获取完整schema | 对带有 |