Skip to main content
Glama

ask_ask_post

Get legal answers by routing questions to specialized Korean law agents with real-time statute verification. Supports Korean and English queries.

Instructions

Ask

Main legal question endpoint — routes to 1 of 60 specialist agents with real-time 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). Example: '부당해고를 당했는데 어떻게 해야 하나요?'
historyNoConversation history (max 6 recent turns). Each item: {role: 'user'|'model', content: '...'}
langNoResponse language: 'ko' (Korean) or 'en' (English). Auto-detected from query if omitted.
current_leaderNoCurrent leader context for handoff/deliberation.
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