Class: RosettAi::Mcp::Prompts::DiagnosticsPrompt

Inherits:
Object
  • Object
show all
Defined in:
lib/rosett_ai/mcp/prompts/diagnostics_prompt.rb

Overview

MCP prompt: diagnostics workflow.

Provides a structured prompt for AI agents to run diagnostics and troubleshoot issues.

Author:

  • hugo

  • claude

Constant Summary collapse

PROMPT_NAME =

Returns MCP prompt identifier string.

Returns:

  • (String)

    MCP prompt identifier string.

'rai_diagnostics_workflow'
DESCRIPTION =

Returns Human-readable description of this tool.

Returns:

  • (String)

    Human-readable description of this tool.

'Run diagnostics and troubleshoot issues'

Instance Method Summary collapse

Instance Method Details

#call(check: nil) ⇒ Array<Hash>

Generates the diagnostics prompt messages.

Parameters:

  • check (String, nil) (defaults to: nil)

    specific check to focus on

Returns:

  • (Array<Hash>)

    MCP prompt messages



26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/rosett_ai/mcp/prompts/diagnostics_prompt.rb', line 26

def call(check: nil)
  check_text = check ? " specifically the '#{check}' check" : ''
  [
    {
      role: 'user',
      content: {
        type: 'text',
        text: "Please run rosett-ai diagnostics#{check_text}. " \
              'Use the Rosett-AI_doctor tool to check system health, then ' \
              'review any failures and suggest troubleshooting steps.'
      }
    }
  ]
end