Take ontology work items
get_ontology_workTake ready ontology work items for this datasource; items a person answered come first. When none are ready and server measurements are in flight it waits up to wait_seconds, then returns with status. timed_out is true only when that wait spent its budget and the batch carries no items. An empty batch with timed_out false means either the wait ended early on a change or no wait was needed: call again only when status shows server.pending, server.running or agent.ready above zero. Each item carries facts and closes_with; section_instructions holds each section's guidance once. Column facts and staged values are shared by the batch: the column_facts and staged_values entries an item reads are named by its facts (its columns and its candidates' source and target), each key a "<schema.table.column>" name or, for a column path that already contains a dot, that path as written; an entry of an item's facts.columns is that key, or the column's own facts object inline when this item's copy differs, and staged_values (measured values, when you are entitled to them) is keyed by the same names. A name two different columns would share is published under neither map: those items keep their facts inline and no values are sent under that name. Apply the answer, then resolve_ontology_question. requested_item_ids names items returned by request_ontology_work: their stored outcome is reported in requested_items as soon as it completes, and an answered value-reading item carries the staged values you are entitled to. Only the caller that asked for an item can read it back, and requested_items are always reported in full: the byte budget trims the work batch's items, never the read-back. The work batch's JSON is held to 40,000 bytes so MCP clients can read it: when the ready items would not fit, it returns the first items that do (always at least one, even if oversized) and counts the rest in deferred_items. Deferred items are returned to the queue at once; call again to take them. deferred_until_expiry counts the deferred items the queue did not hand back (its release failed, or a person resolved that item meanwhile or another session holds its lease now), so those are not claimable again until their leases expire or that outcome stands. A setup-change notice may follow as a separate text block.
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": {
"datasource": "<datasource>"
},
"name": "get_ontology_work"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum items this call (1-25, default 5); fewer are returned when more would not fit the response budget | |
| datasource | Yes | Datasource UUID to take work for | |
| wait_seconds | No | Seconds to wait for work when none is ready and the server is still measuring (0-60, default 30) | |
| requested_item_ids | No | Optional request_ontology_work item UUIDs to report the outcome of, including staged values for an answered value-reading item when entitled |