preview_v2_program
Validates a supported typed intent and produces the server preview for the exact request and current revision dependencies. Read the returned effects and keep the exact program. An expired, stale or mismatched preview requires reconciliation or a new preview according to the operation contract.
These signatures come from local MCP tool discovery. Use the signature registered by your deployment and confirm your identity and permissions before calling the tool.
Endpoint signatures and example arguments
Examples show the arguments to the tool. Replace placeholder IDs and illustrative revisions with values from your authorized disposable scope.
Bound application
Validate a catalogued durable program and sign a revision-pinned preview.
- Required arguments
program- Optional arguments
- None
{
"program": {
"languageVersion": 2,
"function": "facts.numeric.batch",
"arguments": {
"mutations": [
{
"coordinate": {
"Account": "InputA",
"Entity": "PointA",
"Year": "Y2027",
"Period": "P01",
"View": "Input",
"Value": "Raw",
"Custom01": "ItemA"
},
"op": "set",
"value": {
"type": "AmountLiteral",
"decimal": "12.50000000"
},
"expectedChangeId": "{{numeric_change_id}}"
}
]
}
}
}
Exact JSON input schema
{
"properties": {
"program": {
"additionalProperties": true,
"title": "Program",
"type": "object"
}
},
"required": [
"program"
],
"title": "preview_v2_programArguments",
"type": "object"
}
Application router
Preview a revision-pinned scoped write program.
- Required arguments
workspace_id,application_id,program- Optional arguments
- None
{
"workspace_id": "{{workspace_id}}",
"application_id": "operating-cube",
"program": {
"languageVersion": 2,
"function": "facts.numeric.batch",
"arguments": {
"mutations": [
{
"coordinate": {
"Account": "InputA",
"Entity": "PointA",
"Year": "Y2027",
"Period": "P01",
"View": "Input",
"Value": "Raw",
"Custom01": "ItemA"
},
"op": "set",
"value": {
"type": "AmountLiteral",
"decimal": "12.50000000"
},
"expectedChangeId": "{{numeric_change_id}}"
}
]
}
}
}
Exact JSON input schema
{
"properties": {
"workspace_id": {
"title": "Workspace Id",
"type": "string"
},
"application_id": {
"title": "Application Id",
"type": "string"
},
"program": {
"additionalProperties": true,
"title": "Program",
"type": "object"
}
},
"required": [
"workspace_id",
"application_id",
"program"
],
"title": "preview_v2_programArguments",
"type": "object"
}
Supported application-language functions
calculated.member.materializecube.write.scope.approvecube.write.scope.lockcube.write.scope.reopencube.write.scope.submitfacts.expression.calculatefacts.line-detail.replacefacts.numeric.batchfacts.numeric.iteratefacts.numeric.scalefacts.numeric.sequencefacts.numeric.transformfacts.projections.cleanupfacts.projections.rebuildfacts.text.batchrules.expression.runrules.expression.sequence.runrules.numeric_sequence.run
Handling errors
MCP_TOOL_CAPACITY_NOT_DISPATCHED means the server did not dispatch this call. MCP_TOOL_DEADLINE_OUTCOME_UNKNOWN or MCP_TOOL_PROCESS_FAILED_OUTCOME_UNKNOWN leaves the outcome unknown. For a call with effects, reconcile the original request before starting a new one. For a scoped denial, verify the caller's grant and the selected target.
Module guidelines Β· Related workflow Β· Application-language function catalog