ask_by_context
Ask whether an action is allowed WITHOUT choosing the law yourself (NOMOS-SPEC-014). Describe where the act happens and who it involves; NOMOS works out from its signed registrar log which laws govern it, asks every one, and combines strictly: any deny denies, a yes needs every law. Prefer this over ask_authority whenever you do not already know which law applies: naming one law leaves out the others. Each law's own answer is a permanent, signed transcript (members[].query_id). If a fact that decides which law applies is missing, the answer is INSUFFICIENT_DATA with open_facts naming it: ask the user, never guess. A place the registrar does not cover is answered INSUFFICIENT_DATA, never as permission; say so plainly. Relay coverage: the registrar lists only its own laws, so other law may also apply.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context": "<context>"
},
"name": "ask_by_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Optional label for what is being done (e.g. "share_customer_data_with_analytics_vendor"), recorded on each transcript. | |
| inputs | No | Facts about the action itself, evaluated by every law that applies (e.g. {"processing_fair_and_transparent": true}). A law that needs a fact you did not give holds the answer open and names it. | |
| context | Yes | The facts that decide which law applies. Codes: EU (an EU member state), QA (Qatar), AE (the UAE outside free zones with their own data law), DIFC, ADGM, QFC, US, SA, and so on. | |
| purpose | No | Set "test" for test or evaluation queries: answered and sealed, but kept out of public history and counts. | |
| acts_for | No | Optional organisation the agent acts for. | |
| agent_id | No | Optional stable name for the agent asking, recorded on each transcript. | |
| exchange_api_key | No | Exchange API key (nxk_...). Optional; needed only for licensed (paid) authorities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "resolution": the laws were worked out from the context, not chosen by the caller | |
| reason | No | Why, in words | |
| members | No | Each law's own answer, with its permanent transcript (query_id) | |
| verdict | No | The strict combination of every applicable law's verdict | |
| coverage | No | What the answer covers; relay it to the user | |
| authorized | No | True only when every applicable law authorizes; never true over an empty set of laws | |
| open_facts | No | Facts to supply when the answer is held open | |
| resolution | No | How the laws were resolved (status, applicable, missing, proof with the log head consulted) | |
| escalations | No | Each law that requires approval, with its escalation | |
| answered_under | No | The laws the answer was computed under | |
| deciding_authorities | No | The laws that decided the verdict |