Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GEMINI_KEY | Yes | Gemini API key (used via Vertex AI) for LLM analysis. | |
| LAWGO_DRF_OC | Yes | law.go.kr API key (DRF API) for real-time statute verification. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ask_ask_post | 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: Output Schema: |
| ask_stream_ask_stream_post | 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: Output Schema: |
| ask_expert_ask_expert_post | Ask Expert Expert mode — full 4-Stage Legal Pipeline with deep analysis and comprehensive statute verification. Responses:200: Successful Response (Success Response) Content-Type: application/json Output Schema: 422: Validation Error Content-Type: application/json Example Response: Output Schema: |
| search_search_get | Search Responses:200: Successful Response (Success Response) Content-Type: application/json Output Schema: 422: Validation Error Content-Type: application/json Example Response: Output Schema: |
| suggest_questions_suggest_questions_post | Suggest Questions Suggest 3 contextual follow-up questions based on the current query and leader specialty. Responses:200: Successful Response (Success Response) Content-Type: application/json Output Schema: 422: Validation Error Content-Type: application/json Example Response: Output Schema: |
| get_leaders_api_leaders_get | Get Leaders List all 60+ specialist legal agents (leaders) with their names, specialties, and profiles. Responses:200: Successful Response (Success Response) Content-Type: application/json Output Schema: |
| chat_leader_api_chat_leader_post | Chat Leader 1:1 chat with a specific legal specialist leader via SSE streaming. Responses:200: Successful Response (Success Response) Content-Type: application/json Output Schema: 422: Validation Error Content-Type: application/json Example Response: Output Schema: |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| legal_question | Ask a Korean legal question — routed to the best specialist among 60 agents |
| expert_analysis | Deep 4-stage expert legal analysis with full statute verification |
| find_specialist | Find the right legal specialist for your situation |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| About Lawmadi OS | Overview of the Korean Legal AI service |
| Legal Domains | All 60 specialized legal domains covered by Lawmadi OS |