ai·rete·rag is an MCP server published by com.ai-rete-rag, hosted at ai-rete-rag.com. When last checked on 2026-11-24 it was working: it answers and lists its tools. It declares 10 tools, including decide, list_rules, get_parameters, ingest_text, list_documents.
Author rules from policy docs, then decide: a Rete engine gives the verdict, an LLM explains why.
1 connections through 5 shared values. Tap any node.
Make a deterministic, auditable decision in a domain. The verdict comes from the domain's rule set (Rete engine, never the LLM), so it is reproducible and compliant. The explanation is generated from the domain's ingested policy documents. Without an API key only the shared demo domains are available, and the response carries `next_step`: how to get a free key for your own rules. Args: domain: Rule-set domain, e.g. "loan", "fraud", "clinical". query: Natural-language question or decision request. facts: Structured facts for working memory, e.g. {"credit_score": 710, "annual_income": 85000}, keyed by the field names the domain's rules test. Facts read from photos, document scans, voice notes or video belong here too; explicit facts always win over anything extracted server-side. fact_sources: Where each fact in `facts` came from, e.g. {"monthly_income": "payslip.jpg", "claim_usd": "voice note 1"}. Stored in the decision's audit record so a reviewer can tell typed facts from ones read off evidence. Facts without a source are recorded as "request". as_of: Read the domain's policy documents as of this day, as YYYY-MM-DD (default: today), so a case can be decided under the policy in force on the day it was filed; the rules themselves are always the current ones. unstructured_text: Optional free text (an application, a case note, a voice-note transcript, what a photo or video shows); facts are extracted from it automatically and merged. response_mode: "verdict_only" (fastest), "verdict_with_explanation", or "full_audit" (every rule evaluation + retrieved chunks, available on every plan including the free tier). rule_firings come back in causal order: a rule that matched a fact asserted by an earlier firing appears after it, with the derived facts listed under `asserted_facts`. filter_retrieval_with_rules: Pattern 01 — run the rules first and let a fired rule's `retrieval_scope` action narrow which documents the retrieval searches before it runs. extract_from_retrieval: Pattern 02 — parse the retrieved documents into facts and assert them into working memory, so rules fire on what was actually read (not just the facts you passed). The result's `missing_parameters` lists rule inputs that were not supplied but could still change the verdict, most decisive first. When it is non-empty the verdict is provisional; when it is empty, more facts cannot change the verdict.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
| Parameter | Type | Description |
|---|---|---|
| as_of | any | |
| facts | any | |
| query * | string | |
| domain * | string | |
| fact_sources | any | |
| response_mode | string | one of ["verdict_only","verdict_with_explanation","full_audit"] |
| unstructured_text | any | |
| extract_from_retrieval | boolean | |
| filter_retrieval_with_rules | boolean |
{
"name": "decide",
"title": "Make a decision",
"description": "Make a deterministic, auditable decision in a domain.\n\nThe verdict comes from the domain's rule set (Rete engine, never the LLM),\nso it is reproducible and compliant. The explanation is generated from the\ndomain's ingested policy documents.\n\nWithout an API key only the shared demo domains are available, and the\nresponse carries `next_step`: how to get a free key for your own rules.\n\nArgs:\n domain: Rule-set domain, e.g. \"loan\", \"fraud\", \"clinical\".\n query: Natural-language question or decision request.\n facts: Structured facts for working memory, e.g.\n {\"credit_score\": 710, \"annual_income\": 85000}, keyed by the\n field names the domain's rules test. Facts read from photos,\n document scans, voice notes or video belong here too; explicit\n facts always win over anything extracted server-side.\n fact_sources: Where each fact in `facts` came from, e.g.\n {\"monthly_income\": \"payslip.jpg\", \"claim_usd\": \"voice note 1\"}.\n Stored in the decision's audit record so a reviewer can tell\n typed facts from ones read off evidence. Facts without a source\n are recorded as \"request\".\n as_of: Read the domain's policy documents as of this day, as\n YYYY-MM-DD (default: today), so a case can be decided under the\n policy in force on the day it was filed; the rules themselves are\n always the current ones.\n unstructured_text: Optional free text (an application, a case note,\n a voice-note transcript, what a photo or video shows); facts are\n extracted from it automatically and merged.\n response_mode: \"verdict_only\" (fastest), \"verdict_with_explanation\",\n or \"full_audit\" (every rule evaluation + retrieved chunks, available\n on every plan including the free tier).\n rule_firings come back in causal order: a rule that matched a fact\n asserted by an earlier firing appears after it, with the derived\n facts listed under `asserted_facts`.\n filter_retrieval_with_rules: Pattern 01 — run the rules first and let a\n fired rule's `retrieval_scope` action narrow which documents the\n retrieval searches before it runs.\n extract_from_retrieval: Pattern 02 — parse the retrieved documents into\n facts and assert them into working memory, so rules fire on what was\n actually read (not just the facts you passed).\n\nThe result's `missing_parameters` lists rule inputs that were not\nsupplied but could still change the verdict, most decisive first. When it\nis non-empty the verdict is provisional; when it is empty, more facts\ncannot change the verdict.\n",
"inputSchema": {
"type": "object",
"title": "decideArguments",
"required": [
"domain",
"query"
],
"properties": {
"as_of": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "As Of",
"default": null
},
"facts": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Facts",
"default": null
},
"query": {
"type": "string",
"title": "Query"
},
"domain": {
"type": "string",
"title": "Domain"
},
"fact_sources": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
],
"title": "Fact Sources",
"default": null
},
"response_mode": {
"enum": [
"verdict_only",
"verdict_with_explanation",
"full_audit"
],
"type": "string",
"title": "Response Mode",
"default": "verdict_with_explanation"
},
"unstructured_text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Unstructured Text",
"default": null
},
"extract_from_retrieval": {
"type": "boolean",
"title": "Extract From Retrieval",
"default": false
},
"filter_retrieval_with_rules": {
"type": "boolean",
"title": "Filter Retrieval With Rules",
"default": false
}
}
},
"outputSchema": {
"type": "object",
"title": "decideOutput",
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"title": "Result"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}List the decision rules for one domain (or all domains). Returns each rule's conditions — either a flat AND list (field / operator / value) or a `when` condition tree (nested all/any/not) — plus its verdict, salience, and any asserted facts (`action.assert`, the facts a rule produces for other rules to consume). `edges` lists the derived rule→rule dependencies: src asserts a fact type that dst's conditions test (forward chaining). Each rule may also carry `citation` — the policy sentence it encodes — which is what lets a decision be traced back to the source clause. Also includes overlap warnings and, through the conditions, the fact fields the domain's rules test.
| Parameter | Type | Description |
|---|---|---|
| domain | any |
{
"name": "list_rules",
"title": "List rules",
"description": "List the decision rules for one domain (or all domains).\n\nReturns each rule's conditions — either a flat AND list (field / operator /\nvalue) or a `when` condition tree (nested all/any/not) — plus its verdict,\nsalience, and any asserted facts (`action.assert`, the facts a rule\nproduces for other rules to consume). `edges` lists the derived rule→rule\ndependencies: src asserts a fact type that dst's conditions test (forward\nchaining). Each rule may also carry `citation` — the policy sentence it\nencodes — which is what lets a decision be traced back to the source\nclause. Also includes overlap warnings and, through the conditions, the\nfact fields the domain's rules test.\n",
"inputSchema": {
"type": "object",
"title": "list_rulesArguments",
"properties": {
"domain": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Domain",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "list_rulesOutput",
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"title": "Result"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}List the input parameters a domain's rules decide on — the facts a decision in that domain uses. Derived from your account's own copy of the rules, so it covers your custom domains too. Each parameter has its `field` name (the key to use in `facts`), `kind` (number / boolean / string), the `tests` rules make on it (e.g. >= 720 — match these units and scales), the `rules` and `verdicts` it can lead to, and `max_salience`. Parameters come most decisive first: those feeding the highest-salience rules, which win when several rules fire. Also returns every verdict the domain can reach.
| Parameter | Type | Description |
|---|---|---|
| domain * | string |
{
"name": "get_parameters",
"title": "Get decision parameters",
"description": "List the input parameters a domain's rules decide on — the facts a\ndecision in that domain uses. Derived from your account's own copy of\nthe rules, so it covers your custom domains too.\n\nEach parameter has its `field` name (the key to use in `facts`), `kind`\n(number / boolean / string), the `tests` rules make on it (e.g. >= 720 —\nmatch these units and scales), the `rules` and `verdicts` it can lead to,\nand `max_salience`. Parameters come most decisive first: those feeding\nthe highest-salience rules, which win when several rules fire. Also\nreturns every verdict the domain can reach.\n",
"inputSchema": {
"type": "object",
"title": "get_parametersArguments",
"required": [
"domain"
],
"properties": {
"domain": {
"type": "string",
"title": "Domain"
}
}
},
"outputSchema": {
"type": "object",
"title": "get_parametersOutput",
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"title": "Result"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Add policy/reference text to a domain's knowledge base. The text is chunked and embedded; explanations for future decisions in this domain will cite it. Creating a new domain claims it for your account (plan limits apply). Ingesting into a built-in demo domain gives your account its own copy of that demo (it counts as one of your domains); the shared demo others see is unchanged. On team plans, only the domain admin (the member who created the domain, or the subscription owner) can add documents. Documents can be dated. A decision only cites documents in force on its date, so a replaced policy is never quoted for a new decision. To publish a new version, ingest it under a new `source` with `supersedes` naming the old one: the old document stops applying on the new one's `effective_from` (today if not given), and the new one starts that day. A document can be superseded only once; to replace a successor, supersede the successor. Args: domain: Domain to ingest into (existing or new). text: The policy or reference text. source: Optional source name shown in the document list. effective_from: First day this document applies, as YYYY-MM-DD (default: always). effective_until: First day it no longer applies, as YYYY-MM-DD (default: no end). supersedes: Source name of the document this one replaces.
| Parameter | Type | Description |
|---|---|---|
| text * | string | |
| domain * | string | |
| source | any | |
| supersedes | any | |
| effective_from | any | |
| effective_until | any |
{
"name": "ingest_text",
"title": "Ingest policy text",
"description": "Add policy/reference text to a domain's knowledge base.\n\nThe text is chunked and embedded; explanations for future decisions in this\ndomain will cite it. Creating a new domain claims it for your account\n(plan limits apply). Ingesting into a built-in demo domain gives your\naccount its own copy of that demo (it counts as one of your domains); the\nshared demo others see is unchanged. On team plans, only the domain admin (the member\nwho created the domain, or the subscription owner) can add documents.\n\nDocuments can be dated. A decision only cites documents in force on its\ndate, so a replaced policy is never quoted for a new decision. To publish a\nnew version, ingest it under a new `source` with `supersedes` naming the old\none: the old document stops applying on the new one's `effective_from`\n(today if not given), and the new one starts that day. A document can be\nsuperseded only once; to replace a successor, supersede the successor.\n\nArgs:\n domain: Domain to ingest into (existing or new).\n text: The policy or reference text.\n source: Optional source name shown in the document list.\n effective_from: First day this document applies, as YYYY-MM-DD\n (default: always).\n effective_until: First day it no longer applies, as YYYY-MM-DD\n (default: no end).\n supersedes: Source name of the document this one replaces.\n",
"inputSchema": {
"type": "object",
"title": "ingest_textArguments",
"required": [
"domain",
"text"
],
"properties": {
"text": {
"type": "string",
"title": "Text"
},
"domain": {
"type": "string",
"title": "Domain"
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Source",
"default": null
},
"supersedes": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Supersedes",
"default": null
},
"effective_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Effective From",
"default": null
},
"effective_until": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Effective Until",
"default": null
}
}
},
"outputSchema": {
"type": "object",
"title": "ingest_textOutput",
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"title": "Result"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": false
}
}List the documents ingested into a domain's knowledge base.
| Parameter | Type | Description |
|---|---|---|
| domain * | string |
{
"name": "list_documents",
"title": "List documents",
"description": "List the documents ingested into a domain's knowledge base.",
"inputSchema": {
"type": "object",
"title": "list_documentsArguments",
"required": [
"domain"
],
"properties": {
"domain": {
"type": "string",
"title": "Domain"
}
}
},
"outputSchema": {
"type": "object",
"title": "list_documentsOutput",
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"title": "Result"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Permanently delete your own copy of a domain: its rule set and every ingested document. This frees its slot in your plan's domain limit. Decision audit records are kept for the audit trail. A domain created later under the same name starts empty, with a fresh history. The shared demo domains are never affected: deleting `loan` removes only your own copy of it. Args: domain: The domain to delete. confirm: Must repeat the domain name exactly; any other value is refused.
| Parameter | Type | Description |
|---|---|---|
| domain * | string | |
| confirm * | string |
{
"name": "delete_domain",
"title": "Delete domain",
"description": "Permanently delete your own copy of a domain: its rule set and every\ningested document. This frees its slot in your plan's domain limit.\n\nDecision audit records are kept for the audit trail. A domain created later\nunder the same name starts empty, with a fresh history. The shared demo\ndomains are never affected: deleting `loan` removes only your own copy of it.\n\nArgs:\n domain: The domain to delete.\n confirm: Must repeat the domain name exactly; any other value is refused.\n",
"inputSchema": {
"type": "object",
"title": "delete_domainArguments",
"required": [
"domain",
"confirm"
],
"properties": {
"domain": {
"type": "string",
"title": "Domain"
},
"confirm": {
"type": "string",
"title": "Confirm"
}
}
},
"outputSchema": {
"type": "object",
"title": "delete_domainOutput",
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"title": "Result"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": true
}
}Fetch a domain's complete rule set as editable YAML, plus whether you may edit it. The whole YAML file is returned as one fenced block; show it to the user in full, never just its first lines. For a built-in demo domain you get your own copy's rules once you have edited it, otherwise the shared demo's.
| Parameter | Type | Description |
|---|---|---|
| domain * | string |
{
"name": "get_rule_source",
"title": "Get rule source (YAML)",
"description": "Fetch a domain's complete rule set as editable YAML, plus whether you may\nedit it. The whole YAML file is returned as one fenced block; show it to the\nuser in full, never just its first lines. For a built-in demo domain you get\nyour own copy's rules once you have edited it, otherwise the shared demo's.\n",
"inputSchema": {
"type": "object",
"title": "get_rule_sourceArguments",
"required": [
"domain"
],
"properties": {
"domain": {
"type": "string",
"title": "Domain"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Create or replace a domain's rule set from YAML (self-serve rule authoring). The first save to a new domain claims it for your account (plan limits apply). Saving to a built-in demo domain saves your own copy of it, seeded from the demo; the shared demo others see is unchanged. Rules are validated before saving — set dry_run=true to validate without persisting. The response reports ok/errors, the parsed rules, and any overlap warnings. YAML format — a list of rules. Flat form (conditions are AND-ed): - name: "Approve" salience: 10 conditions: - type: loan field: credit_score op: ">=" value: 700 action: verdict: "APPROVED" reason: "Credit score meets threshold" Tree form — `when:` holds nested all/any/not condition groups, and an action may assert derived facts that other rules consume (forward chaining; the rule graph derives from these automatically): - name: "Sepsis Screen" salience: 30 when: all: - {type: clinical, field: temperature_f, op: ">=", value: 101.5} - any: - {type: clinical, field: wbc_count, op: ">", value: 12.0} - {type: clinical, field: bands_pct, op: ">", value: 10} action: verdict: "URGENT_ALERT" assert: - {type: sepsis_flag, fields: {severity: high}} - name: "Escalate" salience: 40 when: all: - {type: sepsis_flag, field: severity, op: "==", value: high} - {type: clinical, field: age, op: ">=", value: 65} action: verdict: "ADMIT_ICU" Use either `conditions:` or `when:` per rule, never both. `not` passes when the inner condition does not hold (including when the field is absent). Produce/consume cycles between rules are rejected at validation. An action may also carry `retrieval_scope: { <key>: <value> }` to narrow which documents retrieval searches (Pattern 01). A rule may also carry `citation:` — the policy sentence it encodes. It is stored with the rule and shown beside it in decision audits, so a verdict can be defended with the source language, not just the rule name: - name: "Decline Late Returns" salience: 20 citation: "Returns are accepted within 30 days of delivery." when: all: - {type: retail, field: days_since_delivery, op: ">", value: 30} action: verdict: "DENIED" A rule saved without its `citation` has no link from its decisions back to the policy clause that justifies it. Args: domain: Domain to author (an owned domain, or a new name to claim). rules_yaml: The full rule set as YAML text. dry_run: Validate only, without saving.
| Parameter | Type | Description |
|---|---|---|
| domain * | string | |
| dry_run | boolean | |
| rules_yaml * | string |
{
"name": "put_rules",
"title": "Save rules",
"description": "Create or replace a domain's rule set from YAML (self-serve rule authoring).\n\nThe first save to a new domain claims it for your account (plan limits\napply). Saving to a built-in demo domain saves your own copy of it, seeded\nfrom the demo; the shared demo others see is unchanged. Rules are validated before\nsaving — set dry_run=true to validate without persisting. The response\nreports ok/errors, the parsed rules, and any overlap warnings.\n\nYAML format — a list of rules. Flat form (conditions are AND-ed):\n - name: \"Approve\"\n salience: 10\n conditions:\n - type: loan\n field: credit_score\n op: \">=\"\n value: 700\n action:\n verdict: \"APPROVED\"\n reason: \"Credit score meets threshold\"\n\nTree form — `when:` holds nested all/any/not condition groups, and an\naction may assert derived facts that other rules consume (forward\nchaining; the rule graph derives from these automatically):\n - name: \"Sepsis Screen\"\n salience: 30\n when:\n all:\n - {type: clinical, field: temperature_f, op: \">=\", value: 101.5}\n - any:\n - {type: clinical, field: wbc_count, op: \">\", value: 12.0}\n - {type: clinical, field: bands_pct, op: \">\", value: 10}\n action:\n verdict: \"URGENT_ALERT\"\n assert:\n - {type: sepsis_flag, fields: {severity: high}}\n - name: \"Escalate\"\n salience: 40\n when:\n all:\n - {type: sepsis_flag, field: severity, op: \"==\", value: high}\n - {type: clinical, field: age, op: \">=\", value: 65}\n action:\n verdict: \"ADMIT_ICU\"\n\nUse either `conditions:` or `when:` per rule, never both. `not` passes\nwhen the inner condition does not hold (including when the field is\nabsent). Produce/consume cycles between rules are rejected at validation.\nAn action may also carry `retrieval_scope: { <key>: <value> }` to narrow\nwhich documents retrieval searches (Pattern 01).\n\nA rule may also carry `citation:` — the policy sentence it encodes. It is\nstored with the rule and shown beside it in decision audits, so a verdict\ncan be defended with the source language, not just the rule name:\n - name: \"Decline Late Returns\"\n salience: 20\n citation: \"Returns are accepted within 30 days of delivery.\"\n when:\n all:\n - {type: retail, field: days_since_delivery, op: \">\", value: 30}\n action:\n verdict: \"DENIED\"\n\nA rule saved without its `citation` has no link from its decisions back\nto the policy clause that justifies it.\n\nArgs:\n domain: Domain to author (an owned domain, or a new name to claim).\n rules_yaml: The full rule set as YAML text.\n dry_run: Validate only, without saving.\n",
"inputSchema": {
"type": "object",
"title": "put_rulesArguments",
"required": [
"domain",
"rules_yaml"
],
"properties": {
"domain": {
"type": "string",
"title": "Domain"
},
"dry_run": {
"type": "boolean",
"title": "Dry Run",
"default": false
},
"rules_yaml": {
"type": "string",
"title": "Rules Yaml"
}
}
},
"outputSchema": {
"type": "object",
"title": "put_rulesOutput",
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"title": "Result"
}
}
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"destructiveHint": true
}
}Convert a written policy document into DRAFT decision rules (LLM-assisted). Returns validated draft rules (when/action, including chained asserts where the policy stages its determinations), derived rule→rule edges, and overlap warnings. Each returned rule carries a `citation` field holding the policy sentence it encodes (also summarized in the top-level `citations` map). Coverage runs the other way too: `uncovered_sentences` lists policy sentences no rule's citation points back to (out of `policy_sentence_count`), and `unverified_citations` names rules whose quote is missing or not found verbatim in the policy. An uncovered sentence may need a rule; an unverified one may be a paraphrase that misstates the policy. `background_sentences` is the subset of uncovered sentences with no obligation language (definitions, preamble), split by a keyword heuristic. Nothing is saved: the drafts are returned for review only. Args: domain: Domain the rules are drafted for (an owned domain or a new name). policy_text: The policy document text (max ~50k characters).
| Parameter | Type | Description |
|---|---|---|
| domain * | string | |
| policy_text * | string |
{
"name": "import_policy_rules",
"title": "Draft rules from a policy",
"description": "Convert a written policy document into DRAFT decision rules (LLM-assisted).\n\nReturns validated draft rules (when/action, including chained asserts where\nthe policy stages its determinations), derived rule→rule edges, and overlap\nwarnings. Each returned rule carries a `citation` field holding the policy\nsentence it encodes (also summarized in the top-level `citations` map).\nCoverage runs the other way too: `uncovered_sentences` lists policy\nsentences no rule's citation points back to (out of\n`policy_sentence_count`), and `unverified_citations` names rules whose\nquote is missing or not found verbatim in the policy. An uncovered\nsentence may need a rule; an unverified one may be a paraphrase that\nmisstates the policy. `background_sentences` is the subset of uncovered\nsentences with no obligation language (definitions, preamble), split by a\nkeyword heuristic.\nNothing is saved: the drafts are returned for review only.\n\nArgs:\n domain: Domain the rules are drafted for (an owned domain or a new name).\n policy_text: The policy document text (max ~50k characters).\n",
"inputSchema": {
"type": "object",
"title": "import_policy_rulesArguments",
"required": [
"domain",
"policy_text"
],
"properties": {
"domain": {
"type": "string",
"title": "Domain"
},
"policy_text": {
"type": "string",
"title": "Policy Text"
}
}
},
"outputSchema": {
"type": "object",
"title": "import_policy_rulesOutput",
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"title": "Result"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Show this account's decision usage, plan, and remaining monthly quota.
No parameters.
{
"name": "get_usage",
"title": "Check usage and quota",
"description": "Show this account's decision usage, plan, and remaining monthly quota.",
"inputSchema": {
"type": "object",
"title": "get_usageArguments",
"properties": {}
},
"outputSchema": {
"type": "object",
"title": "get_usageOutput",
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"title": "Result"
}
}
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}ai·rete·rag combines a deterministic Rete rule engine with RAG so decisions are auditable (rules decide the verdict) and explainable (an LLM explains why, grounded in the domain's policy documents). Use `decide` for any decision in a known domain. To decide from a user's case, call `get_parameters` first to learn which facts the domain's rules decide on, collect those, then `decide`; if the result lists `missing_parameters`, the verdict could still change, so ask for those facts and decide again. When the case arrives as photos, voice notes or video, read them yourself, pass the values you found as `facts` under the `get_parameters` field names with `fact_sources` naming the file each came from, and pass any transcript or description as `unstructured_text`. If a `decide` result carries `next_step` (anonymous use), relay it to the user. To turn a policy into rules: `import_policy_rules` returns drafts and saves nothing; show the user the drafts, `uncovered_sentences` and `unverified_citations`, then save with `put_rules` (validate with dry_run first) and keep each rule's `citation` in the YAML. Use `get_rule_source` to see current rules before editing them. If a save or ingest is refused with a domain limit, `delete_domain` frees a slot, but only after the user confirms which domain to delete; copies of the demo domains never count toward the limit. Built-in demo domains: loan, fraud, clinical, blockchain, insurance, legal, operations, ecommerce.
Names, descriptions and schemas were written by the server and are shown as data.