tealflow_agent_guidance
Retrieve essential agent guidance before any Teal app task. Provides step-by-step workflows, module constraints, and best practices for correct, complete solutions.
Instructions
Get comprehensive guidance for assisting users with Teal application development.
⚠️ IMPORTANT: This tool MUST be called FIRST whenever a user requests:
Creating a Teal application or Teal app
Adding Teal modules to an app
Building clinical trial analysis applications
Survival analysis, safety analysis, efficacy analysis, or any clinical data analysis
Working with Statistical Analysis Plans (SAP)
Understanding Teal modules or datasets
Any other Teal-related task
This tool provides the complete agent usage guide that includes:
Your role and responsibilities as a Teal assistant
Available MCP tools and when to use them
Step-by-step workflow guidance for common scenarios
Teal framework knowledge (modules, datasets, architecture)
Important module constraints and special cases
Development philosophy and R code style guidelines
Best practices for agent behavior
Example workflows for common tasks
The guidance ensures you:
Follow correct workflows for creating and modifying Teal apps
Use the right MCP tools in the right sequence
Verify dataset compatibility before suggesting modules
Generate properly structured R code
Provide complete, working solutions
Handle multi-step tasks with proper planning
Usage: Always retrieve this guidance at the start of any Teal-related conversation to ensure you have the latest best practices, workflows, and constraints.
Returns: str: Complete agent guidance document in markdown format with all necessary context, workflows, and best practices for assisting with Teal development.
Examples: User: "I need to create a survival analysis app" → First action: Call this tool to get guidance → Then follow the workflow in the guidance to assist the user
User: "Add a Kaplan-Meier module to my app"
→ First action: Call this tool to get guidance
→ Then use the appropriate MCP tools as directed in the guidance
User: "Help me implement analyses from my SAP"
→ First action: Call this tool to get guidance
→ Then follow the SAP workflow described in the guidance
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |