get_account_context
What it answers
Describe an account’s settings, import freshness, data coverage and report prerequisites. Omit account only when the key reaches exactly one account. No person-level data is returned. computable describes data prerequisites, not every possible date range or filter. tool names the reporting tool available over this connection; null with toolUnavailableReason means the report cannot be requested here regardless of computable. Read parakeeto://methodology for shared response conventions and INVALID_ARGUMENT guidance.
Read-only.
Arguments
| Argument | Type | Required | Default | Allowed values |
|---|---|---|---|---|
account |
string (uuid) | no | — | — |
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: objectdata.account.id: string (uuid)data.account.name: stringdata.account.currency: string or nulldata.account.locale: string or nulldata.account.annualDays: string or null (pattern^-?\d+(?:\.\d+)?$)
data.imports: array of objectdata.imports[].source: string ("time-entries","role-task-mappings","annual-days","dashboard-inputs")data.imports[].everCompleted: booleandata.imports[].completedAt: string (date-time) or null
data.hasTimeEntries: booleandata.reports: array of objectdata.reports[].computable: booleandata.reports[].missing: array of objectdata.reports[].missing[].code: stringdata.reports[].missing[].message: string
data.reports[].unchecked: array of objectdata.reports[].unchecked[]: same shape asdata.reports[].missing[]
data.reports[].id: stringdata.reports[].freshness: same shape asdata.importsdata.reports[].gridFreshness: array of objectdata.reports[].gridFreshness[].kind: string ("payroll","expense","project")data.reports[].gridFreshness[].gridId: string (uuid)data.reports[].gridFreshness[].name: stringdata.reports[].gridFreshness[].storage: string ("sheet","database")data.reports[].gridFreshness[].sheetRefreshedAt: string (date-time) or null
data.reports[].grids: array of object, optionaldata.reports[].grids[].id: string (uuid)data.reports[].grids[].billings: objectdata.reports[].grids[].billings.computable: booleandata.reports[].grids[].billings.missing: same shape asdata.reports[].missingdata.reports[].grids[].billings.unchecked: same shape asdata.reports[].unchecked
data.reports[].grids[].agi: same shape asdata.reports[].grids[].billings
data.reports[].tool: string or nulldata.reports[].toolUnavailableReason: string or null
data.caveats: array of objectdata.caveats[].code: stringdata.caveats[].message: string
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
This tool returns no definitions.
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": "get_account_context",
"arguments": {}
}
Add account with an identifier from list_accounts; omit it only when the connection reaches exactly one account.
Questions and answers
What does get_account_context answer?
Describe an account’s settings, import freshness, data coverage and report prerequisites. Omit account only when the key reaches exactly one account. No person-level data is returned. computable describes data prerequisites, not every possible date range or filter. tool names the reporting tool available over this connection; null with toolUnavailableReason means the report cannot be requested here regardless of computable. Read parakeeto://methodology for shared response conventions and INVALID_ARGUMENT guidance.
Which arguments does get_account_context accept?
Argument Type Required Default Allowed values account string (uuid) no — —
What does get_account_context return?
The result is an envelope: ok: true with data, or ok: false with error.