{
  "name": "Clarify",
  "description": "Task clarification and handover platform. Helps users make ambiguous tasks clear, structured, and actionable through guided AI questioning.",
  "url": "https://grabit.dk",
  "version": "2.1.0",
  "capabilities": [
    {
      "name": "clarify_task",
      "description": "Start a guided clarification session for a task description",
      "input": {
        "taskDescription": "string (required) — the task to clarify",
        "agentId": "string (optional) — specific agent to use"
      }
    },
    {
      "name": "get_synthesis",
      "description": "Retrieve the structured synthesis of a completed clarification session"
    },
    {
      "name": "list_agents",
      "description": "List available clarification agents with their configuration"
    }
  ],
  "protocols": ["WebMCP", "A2A", "OpenClaw"],
  "endpoints": {
    "a2a_clarify": {
      "method": "POST",
      "url": "https://asbgnfzgxymjbtnztboa.supabase.co/functions/v1/a2a?action=clarify",
      "description": "Start a new clarification session. Returns sessionId for tracking. Send { taskDescription, language? }",
      "authentication": "Bearer token (anon key)"
    },
    "a2a_answer": {
      "method": "POST",
      "url": "https://asbgnfzgxymjbtnztboa.supabase.co/functions/v1/a2a?action=answer",
      "description": "Answer a clarification question. Send { taskDescription, answers: { question: answer }, sessionId?, language? }",
      "authentication": "Bearer token (anon key)"
    },
    "a2a_status": {
      "method": "POST",
      "url": "https://asbgnfzgxymjbtnztboa.supabase.co/functions/v1/a2a?action=status",
      "description": "Check the status of a clarification session. Send { sessionId } or GET with ?sessionId=X. Returns { sessionId, phase, status, synthesis, hasRating, createdAt }",
      "authentication": "Bearer token (anon key)"
    },
    "a2a_execute": {
      "method": "POST",
      "url": "https://asbgnfzgxymjbtnztboa.supabase.co/functions/v1/a2a?action=execute",
      "description": "Execute a clarified task with AI. Send { sessionId }. Returns the full deliverable as text.",
      "authentication": "Bearer token (anon key)"
    },
    "openclaw_webhook": {
      "method": "POST",
      "url": "https://asbgnfzgxymjbtnztboa.supabase.co/functions/v1/openclaw-webhook",
      "description": "OpenClaw messaging gateway webhook. Send { message, channelType, channelUserId, command? }. Manages session state automatically.",
      "authentication": "x-webhook-token header"
    }
  },
  "authentication": {
    "type": "bearer",
    "description": "Use the public anon key as Bearer token for A2A endpoints. WebMCP tools work in-browser without auth."
  },
  "contact": {
    "documentation": "https://grabit.dk"
  }
}
