Compare periods
figa_compare_periodsCompare two explicit date ranges. Unknown valuations remain unknown; overlapping groups are not additive. Equivalent calendar periods (the same number of whole months, or the same dates whole years apart) include a percentage even when their day counts differ. Other unequal-length ranges return unequal_duration without a percentage.
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": {
"workspaceId": "<workspaceId>",
"scope": "<scope>"
},
"name": "figa_compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Date range {start, end} as YYYY-MM-DD, at most 24 calendar months, with optional filters {categoryIds, tagIds, recipientIds}: IDs within one filter are alternatives, different filters must all match, and a category includes its subcategories. comparison is the second range {start, end}; optional group limits both periods to the same categories, tags, recipients or recurring expenses. | |
| workspaceId | Yes | ID of a workspace selected for this connection. Other workspaces are rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | Yes | ||
| success | Yes |