Skip to main content
Glama

faf_chat

Conduct a guided interview to build project.faf through interactive conversation, helping structure project requirements and specifications.

Instructions

Guided interview to build project.faf

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handleFafChat method implements the tool logic by calling the engineAdapter's chat engine.
    private async handleFafChat(_args: any): Promise<CallToolResult> {
      try {
        const result = await this.engineAdapter.callEngine('chat');
    
        if (!result.success) {
          return {
            content: [{
              type: 'text',
              text: `Error running faf chat: ${result.error || 'Unknown error'}`
            }],
            isError: true
          };
        }
    
        // Format the response text
        const responseText = typeof result.data === 'string'
          ? result.data
          : result.data?.output || JSON.stringify(result.data, null, 2);
    
        return {
          content: [{
            type: 'text',
            text: responseText
          }]
        };
      } catch (error) {
        return {
          content: [{
            type: 'text',
            text: `Error running faf chat: ${error instanceof Error ? error.message : String(error)}`
          }],
          isError: true
        };
      }
  • Registration of the faf_chat tool in the tools list.
      name: 'faf_chat',
      description: 'Guided interview to build project.faf',
      inputSchema: {
        type: 'object',
        properties: {},
      }
    },
  • Definition of the FafChatArgs interface.
    export interface FafChatArgs {
      prompt?: string;
    }

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/Wolfe-Jam/grok-faf-mcp'

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