Readout programs: update, delete
The Readout Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.
Reference for Readout, one group of Readout programs.
Readout.update
Changes the given properties of a Readout. Verb page.
do: return await $.Readout.update(input)Emits Readout.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Readout. |
value | number | The Metric’s value for the Variant. | |
n | integer | How many exposed units it counts. | |
interval | json | The low and high bounds of the estimate. | |
readability | string | One of A, B, C, or inadmissible: how far the number can be trusted. | |
pooled | boolean | True when exposures from sibling Startups or earlier Portfolio results are pooled in. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
readout | Readout | required | The Readout. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Readout.update({ id: 'readout_dlRDxjf2vt', value: 1 })"
}
}Readout.delete
Deletes a Readout: a soft delete that keeps its history, undone by Thing.restore. Verb page.
do: return await $.Readout.delete(input)Emits Readout.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Readout. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
readout | Readout | required | The Readout. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
{
"name": "do",
"arguments": {
"code": "return await $.Readout.delete({ id: 'readout_dlRDxjf2vt' })"
}
}