Tool tree
gradeNot graded
describe_gridAnswer
Describe the worklist and safe usage. If the user's text is gibberish, ambiguous, or not a supported grid request, call this with requestStatus='unclear'; do not invent a query or action. The tool will show a no-changes notice and return example prompts.
View tool JSON
{
"name": "describe_grid",
"kind": "answer",
"impl": "imperative",
"description": "Describe the worklist and safe usage. If the user's text is gibberish, ambiguous, or not a supported grid request, call this with requestStatus='unclear'; do not invent a query or action. The tool will show a no-changes notice and return example prompts.",
"inputSchema": {
"type": "object",
"properties": {
"userRequest": {
"type": "string"
},
"requestStatus": {
"enum": [
"clear",
"unclear"
]
}
}
}
}apply_queryAction
Apply a deterministic query to the visible grid. Supports nested AND, OR, and NOT. Include requestSummary mirroring the user's intent.
View tool JSON
{
"name": "apply_query",
"kind": "act",
"impl": "imperative",
"description": "Apply a deterministic query to the visible grid. Supports nested AND, OR, and NOT. Include requestSummary mirroring the user's intent.",
"inputSchema": {
"type": "object",
"$defs": {
"node": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"const": "condition"
},
"field": {
"enum": [
"id",
"patient",
"age",
"department",
"exam",
"status",
"priority",
"createdAt",
"assignee",
"followUp",
"warning",
"location"
]
},
"operator": {
"enum": [
"eq",
"neq",
"gte",
"lte",
"in",
"after",
"before"
]
},
"value": {}
},
"required": [
"kind",
"field",
"operator",
"value"
]
},
{
"type": "object",
"properties": {
"kind": {
"const": "group"
},
"operator": {
"enum": [
"AND",
"OR"
]
},
"children": {
"type": "array",
"items": {
"$ref": "#/$defs/node"
},
"minItems": 1
}
},
"required": [
"kind",
"operator",
"children"
]
},
{
"type": "object",
"properties": {
"kind": {
"const": "not"
},
"child": {
"$ref": "#/$defs/node"
}
},
"required": [
"kind",
"child"
]
}
]
}
},
"properties": {
"requestSummary": {
"type": "string"
},
"root": {
"$ref": "#/$defs/node"
},
"sort": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"direction": {
"enum": [
"asc",
"desc"
]
}
},
"required": [
"field",
"direction"
]
}
}
},
"required": [
"requestSummary",
"root"
]
}
}explain_recordAction
Explain why one visible record matched. Requires an active query; otherwise tell the user to filter first.
View tool JSON
{
"name": "explain_record",
"kind": "act",
"impl": "imperative",
"description": "Explain why one visible record matched. Requires an active query; otherwise tell the user to filter first.",
"inputSchema": {
"type": "object",
"properties": {
"recordId": {
"type": "string"
}
},
"required": [
"recordId"
]
}
}preview_batch_actionAction
After a query is active, create a non-mutating deterministic plan for one requested action across only the current visible batch (up to 50 records), never every match. Never call before filtering. 'Next batch' means preview the current visible batch after the previous batch has executed. Returns exact transition counts and small samples.
View tool JSON
{
"name": "preview_batch_action",
"kind": "act",
"impl": "imperative",
"description": "After a query is active, create a non-mutating deterministic plan for one requested action across only the current visible batch (up to 50 records), never every match. Never call before filtering. 'Next batch' means preview the current visible batch after the previous batch has executed. Returns exact transition counts and small samples.",
"inputSchema": {
"type": "object",
"properties": {
"action": {
"enum": [
"approve",
"send_to_review",
"cancel"
]
},
"requestSummary": {
"type": "string"
}
},
"required": [
"action",
"requestSummary"
]
}
}execute_batch_actionAction
Execute a saved preview for the current visible batch only, after explicit human confirmation. After execution the same query remains active and the next eligible batch automatically becomes visible.
View tool JSON
{
"name": "execute_batch_action",
"kind": "act",
"impl": "imperative",
"description": "Execute a saved preview for the current visible batch only, after explicit human confirmation. After execution the same query remains active and the next eligible batch automatically becomes visible.",
"inputSchema": {
"type": "object",
"properties": {
"previewId": {
"type": "string"
},
"humanConfirmed": {
"type": "boolean",
"const": true
}
},
"required": [
"previewId",
"humanConfirmed"
]
}
}undo_last_batchAction
Undo the most recent executed batch action. Do not call when audit history is empty.
View tool JSON
{
"name": "undo_last_batch",
"kind": "act",
"impl": "imperative",
"description": "Undo the most recent executed batch action. Do not call when audit history is empty."
}