What it does
ask_lexomat lets you ask a natural-language Slovak legal question and get a grounded, cited answer drawn from Slovak legislation and case law. It is the only natural-language Q&A tool in the LEXOMA MCP connector — the other tools are precise retrieval and verification primitives.
It covers Slovak law only, and its output is informational, not legal advice. Unlike most tools in this connector, it is not read-only: asking a question starts a research session in your Lexomat account and saves the question and its answer there — the same record a question asked in Lexomat's own chat leaves — listed in your research history and found again with List earlier sessions.
Do not send client, case, or personal data in your query.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The Slovak legal question to ask. |
wait | boolean | No | Default false: return a handle immediately and read the answer with get_answer. true: hold the call open until the research finishes (only for clients with a long tool-call timeout) — for at most about 8 minutes; a question still running then comes back with status: "working" and a handle, exactly as with false. |
session_id | string | No | Continue an earlier research session — see Follow-up questions. Omit for a new topic. |
How a question runs
Research takes anywhere from 30 seconds to several minutes, and most AI clients cap a single tool call well below that (ChatGPT at 60 seconds). So by default ask_lexomat does not wait: it files the question and returns a handle at once —
{
"session_id": "…",
"message_id": 4242,
"status": "working",
"poll_after_s": 10,
"hint": "Research started. Wait 10 seconds, then call get_answer(...) …"
}
The calling AI then calls get_answer(session_id, message_id) after poll_after_s seconds and repeats while status is working — see Get answer. When it turns completed, the reply carries the grounded answer and its citations, framed exactly as a waited answer would be. failed and cancelled are final. cancel_answer(session_id) stops a running question early — see Cancel answer. Neither get_answer nor cancel_answer consumes quota — only the question itself does.
message_id is the same value the Lexomat web API returns as chat_id; if your client loses its connection, the handle still reads.
Follow-up questions
To ask a further question about the same matter, pass the session_id an earlier ask_lexomat returned as the optional session_id input. The earlier questions and answers in that session become context for the new one — exactly as a second message does in the Lexomat web chat — so "A ako je to pri okamžitom skončení?" is understood in light of what was asked before. Omit session_id to start a new topic. Only your own live personal research sessions can be continued — sessions created inside an organisation workspace on the web are not, since the connector is personal-only; an unknown, organisational or someone else's session_id is refused with a single generic message, and a second question while one is still running in that session is refused until you have read the running one with get_answer. A follow-up is a full research turn and counts towards the same quota as a first question.
Returns (wait: true, or get_answer on a completed question)
A grounded answer, prefixed with a jurisdiction/disclaimer note, followed by a Zdroje: (Sources) citation block. (With wait: true, a question still running after about 8 minutes instead returns the working handle shown above — poll get_answer for it. A failed or cancelled question returns status: "failed", with a short reason in error, or status: "cancelled", so "the question could not be answered" reads differently from "no grounded answer exists".) The structured output shape is:
{
"jurisdiction": "SK",
"disclaimer": "...",
"status": "completed",
"answer": "...",
"citations": [
{
"url": "...",
"title": "...",
"source_type": "..."
}
]
}
Example
Ask something like:
Aké sú podmienky pre výpoveď zo strany zamestnávateľa podľa Zákonníka práce?
The calling AI sends this as query, and ask_lexomat returns a handle; once get_answer reports completed, the reply carries the cited answer plus the citations array your client can use to link back to the underlying sources. To continue — "A ako je to pri okamžitom skončení?" — it calls ask_lexomat again with the same session_id.
Notes
ask_lexomatis the only LLM-backed tool in the connector, and the only tool that debits your monthly ask quota — see Usage limits.- If no grounded answer can be found, the tool returns a Slovak "no supported answer found" message instead of guessing.
- An empty query is not accepted — the tool asks for a specific question instead.