Skip to main content
Glama

ask_stream_ask_stream_post

Get real-time legal answers with statute verification. Stream token-by-token responses to Korean or English legal questions using specialized AI agents.

Instructions

Ask Stream

SSE streaming legal question — real-time token-by-token response with statute verification.

Responses:

200: Successful Response (Success Response) Content-Type: application/json

Output Schema:

{}

422: Validation Error Content-Type: application/json

Example Response:

{
  "detail": [
    {
      "loc": [],
      "msg": "Message",
      "type": "Error Type"
    }
  ]
}

Output Schema:

{
  "properties": {
    "detail": {
      "items": {
        "properties": {
          "loc": {
            "items": {},
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "type": "array",
      "title": "Detail"
    }
  },
  "type": "object",
  "title": "HTTPValidationError"
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesLegal question in Korean or English (max 2000 chars).
historyNoConversation history (max 6 recent turns).
langNoResponse language: 'ko' or 'en'. Auto-detected if omitted.
modeNoStream mode: 'general' (default), 'leader_chat', or 'expert'.general
current_leaderNoCurrent leader context for handoff.
leader_idNoSpecific leader ID (e.g. 'L01') for 1:1 chat mode.
is_first_questionNoWhether this is the user's first question in the session.

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/peter120525-cmd/lawmadi-os-v60'

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