list_scenarios
What it answers
List the Model Calculator scenarios for an account: the read-only Base case first (id base), then saved scenarios with id, name, revision, window, Include pending setting, who saved it and whether the connection owner can change it. Use get_scenario for one scenario's stored choices and calculated figures, and save_scenario to create or change one. The same saved scenarios the Model Calculator and the report pages list. Requires the connection owner to be an administrator or have Model Calculator access on the account. Read only. Read parakeeto://methodology for shared response conventions and INVALID_ARGUMENT guidance.
Read-only.
Arguments
| Argument | Type | Required | Default | Allowed values |
|---|---|---|---|---|
account |
string (uuid) | no | — | — |
includeDefinitions |
boolean | no | true |
— |
Returned fields
The result is an envelope: ok: true with data, or ok: false with error. Error codes: MODEL_CALCULATOR_ACCESS_REQUIRED, PAYROLL_GRID_MISSING, PAYROLL_GRID_REQUIRED, PROJECT_GRID_REQUIRED, EXPENSE_GRID_REQUIRED, PAYROLL_ENTRY_REFERENCE_STALE, ACCOUNT_NOT_FOUND, ACCOUNT_CONFIGURATION_MISSING, NO_IMPORTED_TIME, NOTHING_IMPORTED, ACCOUNT_REQUIRED, NO_REACHABLE_ACCOUNTS, FEATURE_NOT_ENTITLED, PERMISSION_DENIED, CALCULATION_FAILED, INTERNAL_ERROR, INVALID_ARGUMENT.
data: objectdata.account: string (uuid)data.scenarios: array of objectdata.scenarios[].id: stringdata.scenarios[].name: stringdata.scenarios[].readOnly: booleandata.scenarios[].revision: string or null (pattern^[1-9]\d*$)data.scenarios[].window: object or nulldata.scenarios[].window.from: string (pattern^\d{4}-\d{2}-\d{2}$)data.scenarios[].window.to: string (pattern^\d{4}-\d{2}-\d{2}$)
data.scenarios[].includePending: boolean or nulldata.scenarios[].createdByName: string or nulldata.scenarios[].updatedAt: string (date-time) or nulldata.scenarios[].canManage: boolean
data.definitions: map of string to string, optionaldata.definitions.*: string
data.caveats: array of objectdata.caveats[].code: stringdata.caveats[].message: stringdata.caveats[].reference: string, optional
On failure:
error: objecterror.code: string ("MODEL_CALCULATOR_ACCESS_REQUIRED","PAYROLL_GRID_MISSING","PAYROLL_GRID_REQUIRED","PROJECT_GRID_REQUIRED","EXPENSE_GRID_REQUIRED","PAYROLL_ENTRY_REFERENCE_STALE","ACCOUNT_NOT_FOUND","ACCOUNT_CONFIGURATION_MISSING","NO_IMPORTED_TIME","NOTHING_IMPORTED","ACCOUNT_REQUIRED","NO_REACHABLE_ACCOUNTS","FEATURE_NOT_ENTITLED","PERMISSION_DENIED","CALCULATION_FAILED","INTERNAL_ERROR","INVALID_ARGUMENT")error.argument: string, optional (minLength: 1)error.message: stringerror.accounts: array of object, optionalerror.accounts[].id: string (uuid)error.accounts[].name: string
error.payrollGrids: array of object, optionalerror.payrollGrids[]: same shape aserror.accounts[]
error.projectGrids: array of object, optionalerror.projectGrids[]: same shape aserror.accounts[]
error.expenseGrids: array of object, optionalerror.expenseGrids[]: same shape aserror.accounts[]
error.context: object, optionalerror.context.account: object- Further fields: see the response.
error.context.imports: array of object- Further fields: see the response.
error.context.hasTimeEntries: booleanerror.context.reports: array of object- Further fields: see the response.
Definitions
Returned in definitions when includeDefinitions is true (the default). It is a map of string to string: each key names a field and each value is its definition text.
Caveats
Always empty for this tool.
Read every caveat before interpreting a figure. See methodology on how to communicate caveats and data-quality conditions.
Example call
{
"name": "list_scenarios",
"arguments": {}
}
Add account with an identifier from list_accounts; omit it only when the connection reaches exactly one account.
Questions and answers
What does list_scenarios answer?
List the Model Calculator scenarios for an account: the read-only Base case first (id base), then saved scenarios with id, name, revision, window, Include pending setting, who saved it and whether the connection owner can change it. Use get_scenario for one scenario's stored choices and calculated figures, and save_scenario to create or change one. The same saved scenarios the Model Calculator and the report pages list. Requires the connection owner to be an administrator or have Model Calculator access on the account. Read only. Read parakeeto://methodology for shared response conventions and INVALID_ARGUMENT guidance.
Which arguments does list_scenarios accept?
Argument Type Required Default Allowed values account string (uuid) no — — includeDefinitions boolean no true —
What does list_scenarios return?
The result is an envelope: ok: true with data, or ok: false with error.