Skip to main content
Glama

report_outcome

Report solution success or failure to improve ranking in Hivemind MCP's debugging knowledge base.

Instructions

Report whether a solution worked or not. Helps improve solution rankings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
solution_idNoThe ID of the solution from search results.
outcomeYesDid the solution work?

Implementation Reference

  • The core implementation of the report_outcome tool. Sends HTTP POST to Hivemind backend (/report) with optional solution_id and required outcome (success/failure), returns confirmation.
    export async function reportOutcome(
      solutionId: number | undefined,
      outcome: "success" | "failure"
    ): Promise<OutcomeResult> {
      const response = await fetch(`${API_BASE}/report`, {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        body: JSON.stringify({ solution_id: solutionId, outcome }),
      });
    
      if (!response.ok) {
        throw new Error(`Report failed: ${response.statusText}`);
      }
    
      return response.json();
    }
  • MCP tool schema defining input parameters: optional solution_id (number), required outcome (success|failure). Used in ListTools response.
    {
      name: "report_outcome",
      description:
        "Report whether a solution worked or not. Helps improve solution rankings.",
      inputSchema: {
        type: "object",
        properties: {
          solution_id: {
            type: "number",
            description: "The ID of the solution from search results.",
          },
          outcome: {
            type: "string",
            enum: ["success", "failure"],
            description: "Did the solution work?",
          },
        },
        required: ["outcome"],
      },
    },
  • src/index.ts:366-374 (registration)
    MCP server registration: handles CallToolRequest for report_outcome by extracting args and invoking reportOutcome handler, returning JSON stringified result.
    case "report_outcome": {
      const result = await reportOutcome(
        args?.solution_id as number | undefined,
        args?.outcome as "success" | "failure"
      );
      return {
        content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
      };
    }
  • TypeScript interface defining the expected return type from the reportOutcome API call.
    interface OutcomeResult {
      success: boolean;
      message: 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/Kevthetech143/hivemind-mcp'

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