[
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Estado da instalação, contas e importações. Informa parcialidade e referência temporal; nunca inicia coleta.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "connectionIds": {
          "minItems": 1,
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        }
      },
      "additionalProperties": false
    },
    "name": "caderninho_status"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": true,
      "readOnlyHint": false
    },
    "description": "Importar contas e transações da origem. Retorna execução existente ou admissão/cooldown por conexão. Não exige coordenar páginas.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "connectionIds": {
          "minItems": 1,
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        }
      },
      "additionalProperties": false
    },
    "name": "caderninho_sync"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Consultar histórico local por campos conhecidos. Cursor exige mesmo estado da seleção; categoria e descrição vêm da origem.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "cursor": {
          "type": "object",
          "properties": {
            "accountId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "date": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "scope": {
              "type": "string",
              "minLength": 64,
              "maxLength": 64
            },
            "state": {
              "type": "string",
              "minLength": 64,
              "maxLength": 64
            }
          },
          "required": [
            "accountId",
            "date",
            "id",
            "scope",
            "state"
          ],
          "additionalProperties": false
        },
        "filter": {
          "type": "object",
          "properties": {
            "accountIds": {
              "description": "IDs de contas obtidos em status. IDs desconhecidos retornam NOT_FOUND.",
              "minItems": 1,
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            },
            "category": {
              "description": "Categoria exata da origem, sensível a maiúsculas e minúsculas.",
              "type": "string",
              "maxLength": 2048
            },
            "connectionIds": {
              "description": "IDs de conexões obtidos em status. IDs desconhecidos retornam NOT_FOUND.",
              "minItems": 1,
              "maxItems": 200,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            },
            "currency": {
              "description": "Moeda exata, por exemplo BRL. Obrigatória para limites monetários.",
              "type": "string",
              "minLength": 1,
              "maxLength": 12
            },
            "description": {
              "description": "Trecho literal da descrição; ignora caixa, inclusive acentos portugueses. Não remove acentos nem aceita curingas.",
              "type": "string",
              "maxLength": 2048
            },
            "direction": {
              "type": "string",
              "enum": [
                "DEBIT",
                "CREDIT"
              ]
            },
            "from": {
              "description": "Dia financeiro inicial inclusivo, AAAA-MM-DD.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "maxAmountMinor": {
              "description": "Limite máximo inclusivo do valor ASSINADO, em unidades menores da moeda, como string inteira. BRL -10000 = -R$100,00. Não é magnitude.",
              "type": "string",
              "pattern": "^-?(0|[1-9]\\d{0,29})$"
            },
            "minAmountMinor": {
              "description": "Limite mínimo inclusivo do valor ASSINADO, em unidades menores da moeda, como string inteira. BRL 10000 = R$100,00. Não é magnitude.",
              "type": "string",
              "pattern": "^-?(0|[1-9]\\d{0,29})$"
            },
            "personId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "profileId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "status": {
              "type": "string",
              "enum": [
                "PENDING",
                "POSTED"
              ]
            },
            "to": {
              "description": "Dia financeiro final inclusivo, AAAA-MM-DD.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          "additionalProperties": false
        },
        "limit": {
          "default": 50,
          "description": "Máximo por página. Prefira 5–20 para exemplos; use aggregate para totais.",
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        }
      },
      "additionalProperties": false
    },
    "name": "caderninho_transactions"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Totais exatos por moeda sobre todo o universo filtrado. Débito não equivale a gasto. Informe parcialidade, desconhecidos e referência temporal.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "filter": {
          "type": "object",
          "properties": {
            "accountIds": {
              "description": "IDs de contas obtidos em status. IDs desconhecidos retornam NOT_FOUND.",
              "minItems": 1,
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            },
            "category": {
              "description": "Categoria exata da origem, sensível a maiúsculas e minúsculas.",
              "type": "string",
              "maxLength": 2048
            },
            "connectionIds": {
              "description": "IDs de conexões obtidos em status. IDs desconhecidos retornam NOT_FOUND.",
              "minItems": 1,
              "maxItems": 200,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              }
            },
            "currency": {
              "description": "Moeda exata, por exemplo BRL. Obrigatória para limites monetários.",
              "type": "string",
              "minLength": 1,
              "maxLength": 12
            },
            "description": {
              "description": "Trecho literal da descrição; ignora caixa, inclusive acentos portugueses. Não remove acentos nem aceita curingas.",
              "type": "string",
              "maxLength": 2048
            },
            "direction": {
              "type": "string",
              "enum": [
                "DEBIT",
                "CREDIT"
              ]
            },
            "from": {
              "description": "Dia financeiro inicial inclusivo, AAAA-MM-DD.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "maxAmountMinor": {
              "description": "Limite máximo inclusivo do valor ASSINADO, em unidades menores da moeda, como string inteira. BRL -10000 = -R$100,00. Não é magnitude.",
              "type": "string",
              "pattern": "^-?(0|[1-9]\\d{0,29})$"
            },
            "minAmountMinor": {
              "description": "Limite mínimo inclusivo do valor ASSINADO, em unidades menores da moeda, como string inteira. BRL 10000 = R$100,00. Não é magnitude.",
              "type": "string",
              "pattern": "^-?(0|[1-9]\\d{0,29})$"
            },
            "personId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "profileId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "status": {
              "type": "string",
              "enum": [
                "PENDING",
                "POSTED"
              ]
            },
            "to": {
              "description": "Dia financeiro final inclusivo, AAAA-MM-DD.",
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          "additionalProperties": false
        },
        "groupBy": {
          "type": "string",
          "enum": [
            "account",
            "category",
            "month"
          ]
        },
        "metric": {
          "default": "count",
          "description": "count conta registros, inclusive pendentes e futuros. debits/credits somam magnitudes POSTED maduras; cash_flow aplica a direção somente em BANK.",
          "type": "string",
          "enum": [
            "cash_flow",
            "count",
            "credits",
            "debits"
          ]
        }
      },
      "additionalProperties": false
    },
    "name": "caderninho_aggregate"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Registrar contribuição; transação existente não é contada novamente.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "date": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "transactionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "amountMinor",
        "date",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "add_goal_contribution"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Analisar despesas categorizadas e itens sem categoria.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "cardNumber": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "include_ignored": {
          "default": false,
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        },
        "tagId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "text": {
          "type": "string",
          "maxLength": 240
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "uncategorized": {
          "description": "Somente lançamentos sem categoria efetiva.",
          "type": "boolean"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "analyze_categories",
    "outputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "connectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "imported",
                "local_only",
                "empty"
              ]
            },
            "oldestLastSuccessAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "partial": {
              "type": "boolean"
            }
          },
          "required": [
            "connectionIds",
            "kind",
            "oldestLastSuccessAt",
            "partial"
          ],
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {
            "classification": {
              "type": "string"
            },
            "from": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "groups": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "group": {
                    "type": "string"
                  },
                  "categoryId": {
                    "type": "string"
                  },
                  "categoryName": {
                    "type": "string"
                  },
                  "formattedAmount": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "scale": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amountMinor",
                  "currency",
                  "group",
                  "formattedAmount",
                  "label",
                  "scale"
                ],
                "additionalProperties": false
              }
            },
            "partial": {
              "type": "boolean"
            },
            "referenceDay": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "to": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "totals": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "cashFlowMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "type": "string"
                  },
                  "expenseMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "incomeMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "knownCashFlowMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownExpenseMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownIncomeMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "knownUnclassifiedMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unclassifiedUnknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "cashFlowMinor",
                  "count",
                  "currency",
                  "expenseMinor",
                  "incomeMinor",
                  "knownCashFlowMinor",
                  "knownExpenseMinor",
                  "knownIncomeMinor",
                  "unclassifiedCount",
                  "unknownAmountCount",
                  "knownUnclassifiedMinor",
                  "unclassifiedMinor",
                  "unclassifiedUnknownAmountCount"
                ],
                "additionalProperties": false
              }
            },
            "dateBasis": {
              "type": "string",
              "const": "transaction"
            },
            "eligibility": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "const": "POSTED"
                },
                "throughDay": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "status",
                "throughDay"
              ],
              "additionalProperties": false
            },
            "measure": {
              "type": "string",
              "const": "classified_expense"
            },
            "selection": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string"
                },
                "cardNumber": {
                  "type": "string"
                },
                "categoryId": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "direction": {
                  "type": "string",
                  "enum": [
                    "DEBIT",
                    "CREDIT"
                  ]
                },
                "from": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "include_ignored": {
                  "type": "boolean"
                },
                "personId": {
                  "type": "string"
                },
                "spaceId": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "PENDING",
                    "POSTED"
                  ]
                },
                "tagId": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "to": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "from",
                "include_ignored",
                "spaceId",
                "to"
              ],
              "additionalProperties": {}
            },
            "unit": {
              "type": "string",
              "const": "minor"
            }
          },
          "required": [
            "classification",
            "from",
            "groups",
            "partial",
            "referenceDay",
            "to",
            "totals",
            "dateBasis",
            "eligibility",
            "measure",
            "selection",
            "unit"
          ],
          "additionalProperties": {}
        },
        "oldestLastSuccessAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "scope": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "spaceId": {
              "type": "string"
            }
          },
          "required": [
            "spaceId"
          ],
          "additionalProperties": false
        },
        "view": {
          "type": "string",
          "const": "effective"
        }
      },
      "required": [
        "coverage",
        "data",
        "oldestLastSuccessAt",
        "partial",
        "revision",
        "scope",
        "view"
      ],
      "additionalProperties": {}
    }
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Aplicar regras sincronicamente a até 500 transações; operação atômica.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "apply_rules"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Alterar tags das transações selecionadas.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "ids": {
          "minItems": 1,
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "tagIds": {
          "minItems": 1,
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "ids",
        "tagIds"
      ],
      "additionalProperties": false
    },
    "name": "attach_transaction_tags"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir apresentação local preservando origem; confirmação e repetição idempotente.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "ids": {
          "minItems": 1,
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "ids"
      ],
      "additionalProperties": false
    },
    "name": "batch_delete_transactions"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Editar atomicamente até 500 transações selecionadas.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "expected_revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "ids": {
          "minItems": 1,
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "category": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "date": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "ignored": {
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "ids"
      ],
      "additionalProperties": false
    },
    "name": "batch_edit_transactions"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Concluir meta manualmente.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "complete_goal"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Alterar conclusão manual sem inventar pagamentos.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "complete_installment"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar categoria personalizada.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9a-fA-F]{6}$"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "icon": {
          "type": "string",
          "enum": [
            "activity",
            "book",
            "briefcase",
            "car",
            "gift",
            "heart",
            "home",
            "money",
            "shopping",
            "star",
            "transfer",
            "utensils"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "income",
            "expense",
            "transfer"
          ]
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "kind",
        "name"
      ],
      "additionalProperties": false
    },
    "name": "create_category"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar agrupador de categorias com nome, ícone e cor.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9a-fA-F]{6}$"
        },
        "icon": {
          "type": "string",
          "enum": [
            "activity",
            "book",
            "briefcase",
            "car",
            "gift",
            "heart",
            "home",
            "money",
            "shopping",
            "star",
            "transfer",
            "utensils"
          ]
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "color",
        "icon",
        "name"
      ],
      "additionalProperties": false
    },
    "name": "create_category_group"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar meta financeira.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "targetDate": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "targetMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "currency",
        "name",
        "targetMinor"
      ],
      "additionalProperties": false
    },
    "name": "create_goal"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar conta ou cartão manual.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "closeDay": {
          "type": "integer",
          "minimum": 1,
          "maximum": 31
        },
        "creditLimitMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "dueDay": {
          "type": "integer",
          "minimum": 1,
          "maximum": 31
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "openingBalanceMinor": {
          "default": "0",
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "type": {
          "type": "string",
          "enum": [
            "BANK",
            "CREDIT"
          ]
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "currency",
        "name",
        "type"
      ],
      "additionalProperties": false
    },
    "name": "create_manual_account"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar plano e recorrência de parcelas sem gerar transações futuras.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "categoryId": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "current": {
          "type": "integer",
          "minimum": 1,
          "maximum": 600
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "startDate": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "total": {
          "type": "integer",
          "minimum": 1,
          "maximum": 600
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "accountId",
        "amountMinor",
        "current",
        "name",
        "startDate",
        "total"
      ],
      "additionalProperties": false
    },
    "name": "create_manual_installment"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar investimento manual.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "date": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "included": {
          "default": true,
          "type": "boolean"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "amountMinor",
        "currency",
        "date",
        "name",
        "type"
      ],
      "additionalProperties": false
    },
    "name": "create_manual_investment"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Cadastrar dívida manual sem efetuar contratação bancária.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "firstPaymentDate": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "installmentMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "paid": {
          "type": "integer",
          "minimum": 0,
          "maximum": 600
        },
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "total": {
          "type": "integer",
          "minimum": 1,
          "maximum": 600
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "amountMinor",
        "currency",
        "firstPaymentDate",
        "installmentMinor",
        "name",
        "paid",
        "total"
      ],
      "additionalProperties": false
    },
    "name": "create_manual_loan"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar cronograma SAC exato; juros mensais em pontos-base e arredondamento half-up.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "count": {
          "type": "integer",
          "minimum": 1,
          "maximum": 600
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "monthlyRateBps": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "principalMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "startDate": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "count",
        "id",
        "monthlyRateBps",
        "principalMinor",
        "startDate"
      ],
      "additionalProperties": false
    },
    "name": "create_manual_loan_schedule"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar conta fixa ou receita mensal projetada.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "active": {
          "default": true,
          "type": "boolean"
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "categoryId": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "endDate": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "startDate": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "accountId",
        "amountMinor",
        "currency",
        "direction",
        "name",
        "startDate"
      ],
      "additionalProperties": false
    },
    "name": "create_recurrence"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar regra textual determinística de categorização.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "direction": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "DEBIT",
                "CREDIT"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "filter": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "alternatives": {
                  "minItems": 1,
                  "maxItems": 4,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "conditions": {
                        "minItems": 1,
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "description"
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "contains",
                                    "not_contains",
                                    "equals",
                                    "starts_with"
                                  ]
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "direction"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "enum": [
                                    "DEBIT",
                                    "CREDIT"
                                  ]
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "status"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "enum": [
                                    "POSTED",
                                    "PENDING"
                                  ]
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "accountId"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "personId"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "date"
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "equals",
                                    "gte",
                                    "lte"
                                  ]
                                },
                                "value": {
                                  "type": "string",
                                  "format": "date",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "amount"
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "equals",
                                    "gte",
                                    "lte"
                                  ]
                                },
                                "value": {
                                  "type": "string",
                                  "pattern": "^(0|[1-9]\\d{0,29})$"
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "conditions"
                    ],
                    "additionalProperties": false
                  }
                },
                "currency": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "alternatives"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "priority": {
          "default": 100,
          "type": "integer",
          "minimum": 0,
          "maximum": 1000
        },
        "text": {
          "default": "",
          "type": "string",
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "categoryId",
        "name"
      ],
      "additionalProperties": false
    },
    "name": "create_rule"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar espaço local da mesma pessoa; não cria usuários nem permissões.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "color": {
          "default": "blue",
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "icon": {
          "default": "wallet",
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "monthStartDay": {
          "default": 1,
          "type": "integer",
          "minimum": 1,
          "maximum": 28
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "type": {
          "default": "personal",
          "type": "string",
          "enum": [
            "personal",
            "business",
            "family"
          ]
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "currency",
        "name"
      ],
      "additionalProperties": false
    },
    "name": "create_space"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar tag.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "color": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "color",
        "name"
      ],
      "additionalProperties": false
    },
    "name": "create_tag"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Lançar receita ou despesa em conta manual.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "category": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "date": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "recurrenceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "status": {
          "default": "POSTED",
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "accountId",
        "amountMinor",
        "date",
        "description",
        "direction"
      ],
      "additionalProperties": false
    },
    "name": "create_transaction"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Desativar projeções futuras.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "deactivate_recurrence"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir apresentação de cartão adicional, preservando histórico.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_card"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir categoria personalizada e reatribuir referências à categoria de sistema do mesmo tipo.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_category"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Remover agrupador; suas categorias e transações são preservadas e ficam sem grupo.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_category_group"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir meta e contribuições locais; preservar transações.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_goal"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir conta manual vazia; recusa referências financeiras ativas.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_manual_account"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir investimento manual e remover vínculo de metas.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_manual_investment"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir dívida manual sem parcelas pendentes vinculadas.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_manual_loan"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir regra sem reverter classificações já aplicadas.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_rule"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir um espaço vazio; preserva o grupo pessoal e impede referências órfãs.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_space"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir tag e suas associações.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_tag"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir apresentação local preservando origem; confirmação e repetição idempotente.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "delete_transaction"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Excluir apresentação local preservando origem; confirmação e repetição idempotente.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "delete_transactions_by_period"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Editar projeção local sem sobrescrever registro bancário.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "category": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "date": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "ignored": {
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "edit_transaction"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Editar seleção integral do período; recusa seleções acima de 500.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "category": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "date": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "description": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "ignored": {
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "edit_transactions_by_period"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Séries exatas por moeda, com nomes e apresentação monetária. Use includeSvg=false para compor sua própria visualização; SVG estático é opcional.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "cardNumber": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "include_ignored": {
          "default": false,
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        },
        "tagId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "text": {
          "type": "string",
          "maxLength": 240
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "uncategorized": {
          "description": "Somente lançamentos sem categoria efetiva.",
          "type": "boolean"
        },
        "groupBy": {
          "default": "category",
          "type": "string",
          "enum": [
            "category",
            "month"
          ]
        },
        "includeSvg": {
          "default": true,
          "type": "boolean"
        },
        "type": {
          "type": "string",
          "enum": [
            "bar",
            "line",
            "doughnut"
          ]
        }
      },
      "required": [
        "from",
        "to",
        "type"
      ],
      "additionalProperties": false
    },
    "name": "generate_chart",
    "outputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "connectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "imported",
                "local_only",
                "empty"
              ]
            },
            "oldestLastSuccessAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "partial": {
              "type": "boolean"
            }
          },
          "required": [
            "connectionIds",
            "kind",
            "oldestLastSuccessAt",
            "partial"
          ],
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {
            "classification": {
              "type": "string"
            },
            "from": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "groups": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "group": {
                    "type": "string"
                  },
                  "categoryId": {
                    "type": "string"
                  },
                  "categoryName": {
                    "type": "string"
                  },
                  "formattedAmount": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "scale": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amountMinor",
                  "currency",
                  "group",
                  "formattedAmount",
                  "label",
                  "scale"
                ],
                "additionalProperties": false
              }
            },
            "partial": {
              "type": "boolean"
            },
            "referenceDay": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "to": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "totals": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "cashFlowMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "type": "string"
                  },
                  "expenseMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "incomeMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "knownCashFlowMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownExpenseMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownIncomeMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "knownUnclassifiedMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unclassifiedUnknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "cashFlowMinor",
                  "count",
                  "currency",
                  "expenseMinor",
                  "incomeMinor",
                  "knownCashFlowMinor",
                  "knownExpenseMinor",
                  "knownIncomeMinor",
                  "unclassifiedCount",
                  "unknownAmountCount",
                  "knownUnclassifiedMinor",
                  "unclassifiedMinor",
                  "unclassifiedUnknownAmountCount"
                ],
                "additionalProperties": false
              }
            },
            "dateBasis": {
              "type": "string",
              "const": "transaction"
            },
            "eligibility": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "const": "POSTED"
                },
                "throughDay": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "status",
                "throughDay"
              ],
              "additionalProperties": false
            },
            "measure": {
              "type": "string",
              "const": "classified_expense"
            },
            "selection": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string"
                },
                "cardNumber": {
                  "type": "string"
                },
                "categoryId": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "direction": {
                  "type": "string",
                  "enum": [
                    "DEBIT",
                    "CREDIT"
                  ]
                },
                "from": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "include_ignored": {
                  "type": "boolean"
                },
                "personId": {
                  "type": "string"
                },
                "spaceId": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "PENDING",
                    "POSTED"
                  ]
                },
                "tagId": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "to": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "from",
                "include_ignored",
                "spaceId",
                "to"
              ],
              "additionalProperties": {}
            },
            "unit": {
              "type": "string",
              "const": "minor"
            },
            "charts": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string"
                  },
                  "mimeType": {
                    "type": "string",
                    "const": "image/svg+xml"
                  },
                  "svg": {
                    "type": "string"
                  }
                },
                "required": [
                  "currency",
                  "mimeType",
                  "svg"
                ],
                "additionalProperties": false
              }
            },
            "groupBy": {
              "type": "string",
              "enum": [
                "category",
                "month"
              ]
            },
            "type": {
              "type": "string",
              "enum": [
                "bar",
                "line",
                "doughnut"
              ]
            }
          },
          "required": [
            "classification",
            "from",
            "groups",
            "partial",
            "referenceDay",
            "to",
            "totals",
            "dateBasis",
            "eligibility",
            "measure",
            "selection",
            "unit",
            "charts",
            "groupBy",
            "type"
          ],
          "additionalProperties": {}
        },
        "oldestLastSuccessAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "scope": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "spaceId": {
              "type": "string"
            }
          },
          "required": [
            "spaceId"
          ],
          "additionalProperties": false
        },
        "view": {
          "type": "string",
          "const": "effective"
        }
      },
      "required": [
        "coverage",
        "data",
        "oldestLastSuccessAt",
        "partial",
        "revision",
        "scope",
        "view"
      ],
      "additionalProperties": {}
    }
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Contas e saldos com referência temporal; inclui contas manuais e preferências locais.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "include_hidden": {
          "default": false,
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "name": "get_accounts"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Faturas importadas, pagamentos bancários e marcação manual separada.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "additionalProperties": false
    },
    "name": "get_bills"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Orçamento configurado e consumo do ciclo vigente por moeda e categoria; informa valores sem classificação.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "name": "get_budget"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Compromissos observados de contas CREDIT: gastos efetivos POSTED, pendentes e futuras importadas separados; parcelas por mês, categorias e limites explícitos. Créditos classificados como despesa reduzem o gasto. Não prevê parcelas ausentes, não soma pagamento de fatura e não confunde ocupação observada com limite bancário.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        },
        "month": {
          "type": "string",
          "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
        },
        "months": {
          "default": 12,
          "type": "integer",
          "minimum": 1,
          "maximum": 12
        },
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "name": "get_card_commitments",
    "outputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "connectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "imported",
                "local_only",
                "empty"
              ]
            },
            "oldestLastSuccessAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "partial": {
              "type": "boolean"
            }
          },
          "required": [
            "connectionIds",
            "kind",
            "oldestLastSuccessAt",
            "partial"
          ],
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {
            "accounts": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "allocatedCreditMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "availabilitySource": {
                    "type": "string",
                    "enum": [
                      "provider",
                      "estimated",
                      "unavailable"
                    ]
                  },
                  "availableCreditMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "balanceObservedAt": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "creditLimitMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currency": {
                    "type": "string"
                  },
                  "hidden": {
                    "type": "boolean"
                  },
                  "id": {
                    "type": "string"
                  },
                  "identity": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "cardBrand": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "institution": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "logoUrl": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "logoUrl",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "cardBrand",
                          "institution"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "limitSource": {
                    "type": "string",
                    "enum": [
                      "provider",
                      "manual",
                      "unavailable"
                    ]
                  },
                  "manual": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "personId": {
                    "type": "string"
                  },
                  "personName": {
                    "type": "string"
                  }
                },
                "required": [
                  "allocatedCreditMinor",
                  "availabilitySource",
                  "availableCreditMinor",
                  "balanceObservedAt",
                  "creditLimitMinor",
                  "currency",
                  "hidden",
                  "id",
                  "limitSource",
                  "manual",
                  "name",
                  "personId",
                  "personName"
                ],
                "additionalProperties": false
              }
            },
            "assumptions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "categories": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "color": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "knownAmountMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "name": {
                    "type": "string"
                  },
                  "unknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "amountMinor",
                  "color",
                  "currency",
                  "id",
                  "knownAmountMinor",
                  "name",
                  "unknownAmountCount"
                ],
                "additionalProperties": false
              }
            },
            "categoryBasis": {
              "type": "string",
              "const": "observed_commitments"
            },
            "from": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "installments": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "accountId": {
                    "type": "string"
                  },
                  "accountName": {
                    "type": "string"
                  },
                  "amountMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cardNumber": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "categoryId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "categoryName": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "date": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "description": {
                    "type": "string"
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "DEBIT",
                      "CREDIT"
                    ]
                  },
                  "id": {
                    "type": "string"
                  },
                  "installmentNumber": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "phase": {
                    "type": "string",
                    "enum": [
                      "spent",
                      "pending",
                      "future"
                    ]
                  },
                  "purchaseDate": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "POSTED",
                      "PENDING"
                    ]
                  },
                  "totalInstallments": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "accountId",
                  "accountName",
                  "amountMinor",
                  "cardNumber",
                  "categoryId",
                  "categoryName",
                  "currency",
                  "date",
                  "description",
                  "direction",
                  "id",
                  "installmentNumber",
                  "phase",
                  "purchaseDate",
                  "status",
                  "totalInstallments"
                ],
                "additionalProperties": false
              }
            },
            "month": {
              "type": "string",
              "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
            },
            "months": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string"
                  },
                  "futureMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "knownFutureMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownObservedCommitmentsMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownPendingMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownSpentMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownUnclassifiedMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "observedCommitmentsMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "pendingMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "spentMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unclassifiedCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unclassifiedUnknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "month": {
                    "type": "string",
                    "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
                  }
                },
                "required": [
                  "currency",
                  "futureMinor",
                  "knownFutureMinor",
                  "knownObservedCommitmentsMinor",
                  "knownPendingMinor",
                  "knownSpentMinor",
                  "knownUnclassifiedMinor",
                  "observedCommitmentsMinor",
                  "pendingMinor",
                  "spentMinor",
                  "unclassifiedCount",
                  "unclassifiedUnknownAmountCount",
                  "unknownAmountCount",
                  "month"
                ],
                "additionalProperties": false
              }
            },
            "referenceDay": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "to": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "totals": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string"
                  },
                  "futureMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "knownFutureMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownObservedCommitmentsMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownPendingMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownSpentMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownUnclassifiedMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "observedCommitmentsMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "pendingMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "spentMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unclassifiedCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unclassifiedUnknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "currency",
                  "futureMinor",
                  "knownFutureMinor",
                  "knownObservedCommitmentsMinor",
                  "knownPendingMinor",
                  "knownSpentMinor",
                  "knownUnclassifiedMinor",
                  "observedCommitmentsMinor",
                  "pendingMinor",
                  "spentMinor",
                  "unclassifiedCount",
                  "unclassifiedUnknownAmountCount",
                  "unknownAmountCount"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "accounts",
            "assumptions",
            "categories",
            "categoryBasis",
            "from",
            "installments",
            "month",
            "months",
            "referenceDay",
            "to",
            "totals"
          ],
          "additionalProperties": false
        },
        "oldestLastSuccessAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "scope": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "spaceId": {
              "type": "string"
            }
          },
          "required": [
            "spaceId"
          ],
          "additionalProperties": false
        },
        "view": {
          "type": "string",
          "const": "effective"
        }
      },
      "required": [
        "coverage",
        "data",
        "oldestLastSuccessAt",
        "partial",
        "revision",
        "scope",
        "view"
      ],
      "additionalProperties": false
    }
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Cartões principais e adicionais identificados na origem; ids estáveis e suporte a include_hidden.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "include_hidden": {
          "default": false,
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "name": "get_cards"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Listar registros locais e importados, incluindo ocultos quando solicitado.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "include_hidden": {
          "default": false,
          "type": "boolean"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "name": "get_categories"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Listar agrupadores de categorias de um espaço; não são espaços financeiros.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "name": "get_category_groups"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Quanto guardar por mês, arredondado para cima em unidades mínimas; sem presumir rendimento.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "months": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1200
        }
      },
      "required": [
        "id",
        "months"
      ],
      "additionalProperties": false
    },
    "name": "get_goal_plan"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Metas locais com valor, prazo e vínculo patrimonial; use get_goal_plan para calcular aportes.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "name": "get_goals"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Planos manuais e candidatos derivados de metadados; agrupamento da origem é estimativa, não prova de pagamento.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "cardNumber": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "include_completed": {
          "default": false,
          "type": "boolean"
        },
        "month": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}$"
        }
      },
      "additionalProperties": false
    },
    "name": "get_installments"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Carteira do investidor: posições brutas/líquidas, resultado informado, resgate e alocação por classe/instituição, por moeda. Excluídos e resgatados não compõem totais; campos ausentes são desconhecidos. Não infere rentabilidade nem histórico.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "institutionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "status": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "additionalProperties": false
    },
    "name": "get_investments",
    "outputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "connectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "imported",
                "local_only",
                "empty"
              ]
            },
            "oldestLastSuccessAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "partial": {
              "type": "boolean"
            }
          },
          "required": [
            "connectionIds",
            "kind",
            "oldestLastSuccessAt",
            "partial"
          ],
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {
            "records": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "connectionId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "currency": {
                    "type": "string"
                  },
                  "date": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "details": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "annualRate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "balanceMinor": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "code": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "dueDate": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "financialTaxMinor": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "fixedAnnualRate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "incomeTaxMinor": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "issuer": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "lastMonthRate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastTwelveMonthsRate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "originalMinor": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "profitMinor": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "purchaseDate": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rate": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+(\\.\\d+)?$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateType": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "subtype": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "withdrawalMinor": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^-?\\d+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "annualRate",
                          "balanceMinor",
                          "code",
                          "dueDate",
                          "financialTaxMinor",
                          "fixedAnnualRate",
                          "incomeTaxMinor",
                          "issuer",
                          "lastMonthRate",
                          "lastTwelveMonthsRate",
                          "originalMinor",
                          "profitMinor",
                          "purchaseDate",
                          "quantity",
                          "rate",
                          "rateType",
                          "status",
                          "subtype",
                          "withdrawalMinor"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "id": {
                    "type": "string"
                  },
                  "identity": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "cardBrand": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "institution": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "logoUrl": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "logoUrl",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "cardBrand",
                          "institution"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "included": {
                    "type": "boolean"
                  },
                  "manual": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "personId": {
                    "type": "string"
                  },
                  "personName": {
                    "type": "string"
                  },
                  "profileId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "spaceId": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  }
                },
                "required": [
                  "amountMinor",
                  "connectionId",
                  "currency",
                  "date",
                  "id",
                  "included",
                  "manual",
                  "name",
                  "spaceId",
                  "type"
                ],
                "additionalProperties": false
              }
            },
            "totals": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "byInstitution": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "knownMinor": {
                          "type": "string",
                          "pattern": "^-?\\d+$"
                        },
                        "totalMinor": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^-?\\d+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unknownCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "knownMinor",
                        "totalMinor",
                        "unknownCount",
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "byType": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "knownMinor": {
                          "type": "string",
                          "pattern": "^-?\\d+$"
                        },
                        "totalMinor": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^-?\\d+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unknownCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "knownMinor",
                        "totalMinor",
                        "unknownCount",
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "type": "string"
                  },
                  "gross": {
                    "type": "object",
                    "properties": {
                      "knownMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "totalMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unknownCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "knownMinor",
                      "totalMinor",
                      "unknownCount"
                    ],
                    "additionalProperties": false
                  },
                  "net": {
                    "type": "object",
                    "properties": {
                      "knownMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "totalMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unknownCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "knownMinor",
                      "totalMinor",
                      "unknownCount"
                    ],
                    "additionalProperties": false
                  },
                  "original": {
                    "type": "object",
                    "properties": {
                      "knownMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "totalMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unknownCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "knownMinor",
                      "totalMinor",
                      "unknownCount"
                    ],
                    "additionalProperties": false
                  },
                  "profit": {
                    "type": "object",
                    "properties": {
                      "knownMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "totalMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unknownCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "knownMinor",
                      "totalMinor",
                      "unknownCount"
                    ],
                    "additionalProperties": false
                  },
                  "withdrawal": {
                    "type": "object",
                    "properties": {
                      "knownMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "totalMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unknownCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "knownMinor",
                      "totalMinor",
                      "unknownCount"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "byInstitution",
                  "byType",
                  "count",
                  "currency",
                  "gross",
                  "net",
                  "original",
                  "profit",
                  "withdrawal"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "records",
            "totals"
          ],
          "additionalProperties": false
        },
        "oldestLastSuccessAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "scope": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "spaceId": {
              "type": "string"
            }
          },
          "required": [
            "spaceId"
          ],
          "additionalProperties": false
        },
        "view": {
          "type": "string",
          "const": "effective"
        }
      },
      "required": [
        "coverage",
        "data",
        "oldestLastSuccessAt",
        "partial",
        "revision",
        "scope",
        "view"
      ],
      "additionalProperties": {}
    }
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Cronograma SAC local e estado de conciliação de cada parcela.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "name": "get_loan_schedule"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Listar registros locais e importados, incluindo ocultos quando solicitado.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "include_hidden": {
          "default": false,
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "name": "get_loans"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Preferências locais de avisos. deliveryConfigured=false informa que o envio não está configurado.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "name": "get_notification_preferences"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Saldos, entradas e saídas por moeda, sem tratar transferências e pagamentos de cartão como consumo.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "cardNumber": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "include_ignored": {
          "default": false,
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        },
        "tagId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "text": {
          "type": "string",
          "maxLength": 240
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "uncategorized": {
          "description": "Somente lançamentos sem categoria efetiva.",
          "type": "boolean"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "get_overview",
    "outputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "connectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "imported",
                "local_only",
                "empty"
              ]
            },
            "oldestLastSuccessAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "partial": {
              "type": "boolean"
            }
          },
          "required": [
            "connectionIds",
            "kind",
            "oldestLastSuccessAt",
            "partial"
          ],
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {
            "classification": {
              "type": "string"
            },
            "from": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "groups": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "group": {
                    "type": "string"
                  },
                  "categoryId": {
                    "type": "string"
                  },
                  "categoryName": {
                    "type": "string"
                  },
                  "formattedAmount": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "scale": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amountMinor",
                  "currency",
                  "group",
                  "formattedAmount",
                  "label",
                  "scale"
                ],
                "additionalProperties": false
              }
            },
            "partial": {
              "type": "boolean"
            },
            "referenceDay": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "to": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "totals": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "cashFlowMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "type": "string"
                  },
                  "expenseMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "incomeMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "knownCashFlowMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownExpenseMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownIncomeMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "knownUnclassifiedMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unclassifiedUnknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "cashFlowMinor",
                  "count",
                  "currency",
                  "expenseMinor",
                  "incomeMinor",
                  "knownCashFlowMinor",
                  "knownExpenseMinor",
                  "knownIncomeMinor",
                  "unclassifiedCount",
                  "unknownAmountCount",
                  "knownUnclassifiedMinor",
                  "unclassifiedMinor",
                  "unclassifiedUnknownAmountCount"
                ],
                "additionalProperties": false
              }
            },
            "dateBasis": {
              "type": "string",
              "const": "transaction"
            },
            "eligibility": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "const": "POSTED"
                },
                "throughDay": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "status",
                "throughDay"
              ],
              "additionalProperties": false
            },
            "measure": {
              "type": "string",
              "const": "classified_expense"
            },
            "selection": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string"
                },
                "cardNumber": {
                  "type": "string"
                },
                "categoryId": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "direction": {
                  "type": "string",
                  "enum": [
                    "DEBIT",
                    "CREDIT"
                  ]
                },
                "from": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "include_ignored": {
                  "type": "boolean"
                },
                "personId": {
                  "type": "string"
                },
                "spaceId": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "PENDING",
                    "POSTED"
                  ]
                },
                "tagId": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "to": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "from",
                "include_ignored",
                "spaceId",
                "to"
              ],
              "additionalProperties": {}
            },
            "unit": {
              "type": "string",
              "const": "minor"
            },
            "accounts": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "balanceMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "balanceObservedAt": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "currency": {
                    "type": "string"
                  },
                  "hidden": {
                    "type": "boolean"
                  },
                  "id": {
                    "type": "string"
                  },
                  "identity": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "cardBrand": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "institution": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "logoUrl": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "logoUrl",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "cardBrand",
                          "institution"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "manual": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  },
                  "personId": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "BANK",
                      "CREDIT"
                    ]
                  }
                },
                "required": [
                  "balanceMinor",
                  "currency",
                  "hidden",
                  "id",
                  "manual",
                  "name",
                  "personId",
                  "type"
                ],
                "additionalProperties": false
              }
            },
            "investments": {
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "loans": {
              "type": "array",
              "items": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            }
          },
          "required": [
            "classification",
            "from",
            "groups",
            "partial",
            "referenceDay",
            "to",
            "totals",
            "dateBasis",
            "eligibility",
            "measure",
            "selection",
            "unit",
            "accounts",
            "investments",
            "loans"
          ],
          "additionalProperties": {}
        },
        "oldestLastSuccessAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "scope": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "spaceId": {
              "type": "string"
            }
          },
          "required": [
            "spaceId"
          ],
          "additionalProperties": false
        },
        "view": {
          "type": "string",
          "const": "effective"
        }
      },
      "required": [
        "coverage",
        "data",
        "oldestLastSuccessAt",
        "partial",
        "revision",
        "scope",
        "view"
      ],
      "additionalProperties": {}
    }
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Projeção de saldo BANK com recorrências e vencimentos; informa premissas e desconhecidos.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "get_projection"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Compromissos recorrentes cadastrados. Não detecta automaticamente assinaturas no histórico.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "name": "get_recurrences"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Regras locais ordenadas por prioridade. Salvar não reaplica o histórico; use preview_rule antes de aplicar.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "name": "get_rules"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Espaços locais e suas configurações de moeda, ciclo e orçamento.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "name": "get_spaces"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Despesas classificadas por categoria; exclui transferências e itens ignorados.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "cardNumber": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "include_ignored": {
          "default": false,
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        },
        "tagId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "text": {
          "type": "string",
          "maxLength": 240
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "uncategorized": {
          "description": "Somente lançamentos sem categoria efetiva.",
          "type": "boolean"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "get_spending_by_category",
    "outputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "connectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "imported",
                "local_only",
                "empty"
              ]
            },
            "oldestLastSuccessAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "partial": {
              "type": "boolean"
            }
          },
          "required": [
            "connectionIds",
            "kind",
            "oldestLastSuccessAt",
            "partial"
          ],
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {
            "classification": {
              "type": "string"
            },
            "from": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "groups": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "group": {
                    "type": "string"
                  },
                  "categoryId": {
                    "type": "string"
                  },
                  "categoryName": {
                    "type": "string"
                  },
                  "formattedAmount": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "scale": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amountMinor",
                  "currency",
                  "group",
                  "formattedAmount",
                  "label",
                  "scale"
                ],
                "additionalProperties": false
              }
            },
            "partial": {
              "type": "boolean"
            },
            "referenceDay": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "to": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "totals": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "cashFlowMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "type": "string"
                  },
                  "expenseMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "incomeMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "knownCashFlowMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownExpenseMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownIncomeMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "knownUnclassifiedMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unclassifiedUnknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "cashFlowMinor",
                  "count",
                  "currency",
                  "expenseMinor",
                  "incomeMinor",
                  "knownCashFlowMinor",
                  "knownExpenseMinor",
                  "knownIncomeMinor",
                  "unclassifiedCount",
                  "unknownAmountCount",
                  "knownUnclassifiedMinor",
                  "unclassifiedMinor",
                  "unclassifiedUnknownAmountCount"
                ],
                "additionalProperties": false
              }
            },
            "dateBasis": {
              "type": "string",
              "const": "transaction"
            },
            "eligibility": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "const": "POSTED"
                },
                "throughDay": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "status",
                "throughDay"
              ],
              "additionalProperties": false
            },
            "measure": {
              "type": "string",
              "const": "classified_expense"
            },
            "selection": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string"
                },
                "cardNumber": {
                  "type": "string"
                },
                "categoryId": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "direction": {
                  "type": "string",
                  "enum": [
                    "DEBIT",
                    "CREDIT"
                  ]
                },
                "from": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "include_ignored": {
                  "type": "boolean"
                },
                "personId": {
                  "type": "string"
                },
                "spaceId": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "PENDING",
                    "POSTED"
                  ]
                },
                "tagId": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "to": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "from",
                "include_ignored",
                "spaceId",
                "to"
              ],
              "additionalProperties": {}
            },
            "unit": {
              "type": "string",
              "const": "minor"
            }
          },
          "required": [
            "classification",
            "from",
            "groups",
            "partial",
            "referenceDay",
            "to",
            "totals",
            "dateBasis",
            "eligibility",
            "measure",
            "selection",
            "unit"
          ],
          "additionalProperties": {}
        },
        "oldestLastSuccessAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "scope": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "spaceId": {
              "type": "string"
            }
          },
          "required": [
            "spaceId"
          ],
          "additionalProperties": false
        },
        "view": {
          "type": "string",
          "const": "effective"
        }
      },
      "required": [
        "coverage",
        "data",
        "oldestLastSuccessAt",
        "partial",
        "revision",
        "scope",
        "view"
      ],
      "additionalProperties": {}
    }
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Comparar gastos com período anterior de igual duração, mesmos dias do mês anterior ou intervalo explícito. Já inclui grupos e totais dos dois períodos.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "cardNumber": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "include_ignored": {
          "default": false,
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        },
        "tagId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "text": {
          "type": "string",
          "maxLength": 240
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "uncategorized": {
          "description": "Somente lançamentos sem categoria efetiva.",
          "type": "boolean"
        },
        "comparison": {
          "default": "previous_period",
          "type": "string",
          "enum": [
            "previous_period",
            "previous_month",
            "explicit"
          ]
        },
        "previousFrom": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "previousTo": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "get_spending_comparison",
    "outputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "connectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "imported",
                "local_only",
                "empty"
              ]
            },
            "oldestLastSuccessAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "partial": {
              "type": "boolean"
            }
          },
          "required": [
            "connectionIds",
            "kind",
            "oldestLastSuccessAt",
            "partial"
          ],
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {
            "comparison": {
              "type": "string",
              "enum": [
                "previous_period",
                "previous_month",
                "explicit"
              ]
            },
            "current": {
              "type": "object",
              "properties": {
                "classification": {
                  "type": "string"
                },
                "from": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "groups": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "amountMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "group": {
                        "type": "string"
                      },
                      "categoryId": {
                        "type": "string"
                      },
                      "categoryName": {
                        "type": "string"
                      },
                      "formattedAmount": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "scale": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "amountMinor",
                      "currency",
                      "group",
                      "formattedAmount",
                      "label",
                      "scale"
                    ],
                    "additionalProperties": false
                  }
                },
                "partial": {
                  "type": "boolean"
                },
                "referenceDay": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "to": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "totals": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "cashFlowMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "type": "string"
                      },
                      "expenseMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "incomeMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "knownCashFlowMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "knownExpenseMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "knownIncomeMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "unclassifiedCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unknownAmountCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "knownUnclassifiedMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "unclassifiedMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unclassifiedUnknownAmountCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "cashFlowMinor",
                      "count",
                      "currency",
                      "expenseMinor",
                      "incomeMinor",
                      "knownCashFlowMinor",
                      "knownExpenseMinor",
                      "knownIncomeMinor",
                      "unclassifiedCount",
                      "unknownAmountCount",
                      "knownUnclassifiedMinor",
                      "unclassifiedMinor",
                      "unclassifiedUnknownAmountCount"
                    ],
                    "additionalProperties": false
                  }
                },
                "dateBasis": {
                  "type": "string",
                  "const": "transaction"
                },
                "eligibility": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "POSTED"
                    },
                    "throughDay": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    }
                  },
                  "required": [
                    "status",
                    "throughDay"
                  ],
                  "additionalProperties": false
                },
                "measure": {
                  "type": "string",
                  "const": "classified_expense"
                },
                "selection": {
                  "type": "object",
                  "properties": {
                    "accountId": {
                      "type": "string"
                    },
                    "cardNumber": {
                      "type": "string"
                    },
                    "categoryId": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "direction": {
                      "type": "string",
                      "enum": [
                        "DEBIT",
                        "CREDIT"
                      ]
                    },
                    "from": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "include_ignored": {
                      "type": "boolean"
                    },
                    "personId": {
                      "type": "string"
                    },
                    "spaceId": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "PENDING",
                        "POSTED"
                      ]
                    },
                    "tagId": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "to": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    }
                  },
                  "required": [
                    "from",
                    "include_ignored",
                    "spaceId",
                    "to"
                  ],
                  "additionalProperties": {}
                },
                "unit": {
                  "type": "string",
                  "const": "minor"
                }
              },
              "required": [
                "classification",
                "from",
                "groups",
                "partial",
                "referenceDay",
                "to",
                "totals",
                "dateBasis",
                "eligibility",
                "measure",
                "selection",
                "unit"
              ],
              "additionalProperties": {}
            },
            "previous": {
              "type": "object",
              "properties": {
                "classification": {
                  "type": "string"
                },
                "from": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "groups": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "amountMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "group": {
                        "type": "string"
                      },
                      "categoryId": {
                        "type": "string"
                      },
                      "categoryName": {
                        "type": "string"
                      },
                      "formattedAmount": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "scale": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "amountMinor",
                      "currency",
                      "group",
                      "formattedAmount",
                      "label",
                      "scale"
                    ],
                    "additionalProperties": false
                  }
                },
                "partial": {
                  "type": "boolean"
                },
                "referenceDay": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "to": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "totals": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "cashFlowMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "currency": {
                        "type": "string"
                      },
                      "expenseMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "incomeMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "knownCashFlowMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "knownExpenseMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "knownIncomeMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "unclassifiedCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "unknownAmountCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "knownUnclassifiedMinor": {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      "unclassifiedMinor": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^-?\\d+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unclassifiedUnknownAmountCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "cashFlowMinor",
                      "count",
                      "currency",
                      "expenseMinor",
                      "incomeMinor",
                      "knownCashFlowMinor",
                      "knownExpenseMinor",
                      "knownIncomeMinor",
                      "unclassifiedCount",
                      "unknownAmountCount",
                      "knownUnclassifiedMinor",
                      "unclassifiedMinor",
                      "unclassifiedUnknownAmountCount"
                    ],
                    "additionalProperties": false
                  }
                },
                "dateBasis": {
                  "type": "string",
                  "const": "transaction"
                },
                "eligibility": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "POSTED"
                    },
                    "throughDay": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    }
                  },
                  "required": [
                    "status",
                    "throughDay"
                  ],
                  "additionalProperties": false
                },
                "measure": {
                  "type": "string",
                  "const": "classified_expense"
                },
                "selection": {
                  "type": "object",
                  "properties": {
                    "accountId": {
                      "type": "string"
                    },
                    "cardNumber": {
                      "type": "string"
                    },
                    "categoryId": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "direction": {
                      "type": "string",
                      "enum": [
                        "DEBIT",
                        "CREDIT"
                      ]
                    },
                    "from": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "include_ignored": {
                      "type": "boolean"
                    },
                    "personId": {
                      "type": "string"
                    },
                    "spaceId": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "PENDING",
                        "POSTED"
                      ]
                    },
                    "tagId": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "to": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    }
                  },
                  "required": [
                    "from",
                    "include_ignored",
                    "spaceId",
                    "to"
                  ],
                  "additionalProperties": {}
                },
                "unit": {
                  "type": "string",
                  "const": "minor"
                }
              },
              "required": [
                "classification",
                "from",
                "groups",
                "partial",
                "referenceDay",
                "to",
                "totals",
                "dateBasis",
                "eligibility",
                "measure",
                "selection",
                "unit"
              ],
              "additionalProperties": {}
            }
          },
          "required": [
            "comparison",
            "current",
            "previous"
          ],
          "additionalProperties": false
        },
        "oldestLastSuccessAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "scope": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "spaceId": {
              "type": "string"
            }
          },
          "required": [
            "spaceId"
          ],
          "additionalProperties": false
        },
        "view": {
          "type": "string",
          "const": "effective"
        }
      },
      "required": [
        "coverage",
        "data",
        "oldestLastSuccessAt",
        "partial",
        "revision",
        "scope",
        "view"
      ],
      "additionalProperties": {}
    }
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Ritmo observado de despesas e projeção linear explicitamente estimada.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "cardNumber": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "include_ignored": {
          "default": false,
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        },
        "tagId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "text": {
          "type": "string",
          "maxLength": 240
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "uncategorized": {
          "description": "Somente lançamentos sem categoria efetiva.",
          "type": "boolean"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "get_spending_pace",
    "outputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "connectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "imported",
                "local_only",
                "empty"
              ]
            },
            "oldestLastSuccessAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "partial": {
              "type": "boolean"
            }
          },
          "required": [
            "connectionIds",
            "kind",
            "oldestLastSuccessAt",
            "partial"
          ],
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {
            "classification": {
              "type": "string"
            },
            "from": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "groups": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "group": {
                    "type": "string"
                  },
                  "categoryId": {
                    "type": "string"
                  },
                  "categoryName": {
                    "type": "string"
                  },
                  "formattedAmount": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "scale": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amountMinor",
                  "currency",
                  "group",
                  "formattedAmount",
                  "label",
                  "scale"
                ],
                "additionalProperties": false
              }
            },
            "partial": {
              "type": "boolean"
            },
            "referenceDay": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "to": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "totals": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "cashFlowMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "type": "string"
                  },
                  "expenseMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "incomeMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "knownCashFlowMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownExpenseMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "knownIncomeMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "knownUnclassifiedMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "unclassifiedMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unclassifiedUnknownAmountCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "cashFlowMinor",
                  "count",
                  "currency",
                  "expenseMinor",
                  "incomeMinor",
                  "knownCashFlowMinor",
                  "knownExpenseMinor",
                  "knownIncomeMinor",
                  "unclassifiedCount",
                  "unknownAmountCount",
                  "knownUnclassifiedMinor",
                  "unclassifiedMinor",
                  "unclassifiedUnknownAmountCount"
                ],
                "additionalProperties": false
              }
            },
            "dateBasis": {
              "type": "string",
              "const": "transaction"
            },
            "eligibility": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "const": "POSTED"
                },
                "throughDay": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "status",
                "throughDay"
              ],
              "additionalProperties": false
            },
            "measure": {
              "type": "string",
              "const": "classified_expense"
            },
            "selection": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string"
                },
                "cardNumber": {
                  "type": "string"
                },
                "categoryId": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "direction": {
                  "type": "string",
                  "enum": [
                    "DEBIT",
                    "CREDIT"
                  ]
                },
                "from": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "include_ignored": {
                  "type": "boolean"
                },
                "personId": {
                  "type": "string"
                },
                "spaceId": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "PENDING",
                    "POSTED"
                  ]
                },
                "tagId": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "to": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "from",
                "include_ignored",
                "spaceId",
                "to"
              ],
              "additionalProperties": {}
            },
            "unit": {
              "type": "string",
              "const": "minor"
            },
            "elapsedDays": {
              "type": "number",
              "minimum": 0
            },
            "estimated": {
              "type": "boolean",
              "const": true
            },
            "periodDays": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "projection": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^-?\\d+$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currency": {
                    "type": "string"
                  }
                },
                "required": [
                  "amountMinor",
                  "currency"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "classification",
            "from",
            "groups",
            "partial",
            "referenceDay",
            "to",
            "totals",
            "dateBasis",
            "eligibility",
            "measure",
            "selection",
            "unit",
            "elapsedDays",
            "estimated",
            "periodDays",
            "projection"
          ],
          "additionalProperties": {}
        },
        "oldestLastSuccessAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "scope": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "spaceId": {
              "type": "string"
            }
          },
          "required": [
            "spaceId"
          ],
          "additionalProperties": false
        },
        "view": {
          "type": "string",
          "const": "effective"
        }
      },
      "required": [
        "coverage",
        "data",
        "oldestLastSuccessAt",
        "partial",
        "revision",
        "scope",
        "view"
      ],
      "additionalProperties": {}
    }
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Identificar candidatos a assinaturas e cobranças recorrentes no histórico efetivo, com frequência, valores exatos e evidências. Exclui pendentes, futuros, transferências classificadas e parcelas identificadas. Padrão: últimos 12 meses e 3 ocorrências. Não confirma contratos nem cria recorrências; partial/truncated indicam análise incompleta.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "limit": {
          "default": 50,
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "minOccurrences": {
          "default": 3,
          "type": "integer",
          "minimum": 2,
          "maximum": 12
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "additionalProperties": false
    },
    "name": "get_subscriptions",
    "outputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "coverage": {
          "type": "object",
          "properties": {
            "connectionIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "kind": {
              "type": "string",
              "enum": [
                "imported",
                "local_only",
                "empty"
              ]
            },
            "oldestLastSuccessAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "partial": {
              "type": "boolean"
            }
          },
          "required": [
            "connectionIds",
            "kind",
            "oldestLastSuccessAt",
            "partial"
          ],
          "additionalProperties": false
        },
        "data": {
          "type": "object",
          "properties": {
            "estimated": {
              "type": "boolean",
              "const": true
            },
            "matchedCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "records": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "accountId": {
                    "type": "string"
                  },
                  "amountMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "cadence": {
                    "type": "string",
                    "enum": [
                      "monthly",
                      "quarterly",
                      "weekly",
                      "yearly"
                    ]
                  },
                  "cardNumber": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "currency": {
                    "type": "string"
                  },
                  "evidence": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "amountMinor": {
                          "type": "string",
                          "pattern": "^-?\\d+$"
                        },
                        "date": {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                        },
                        "transactionId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "amountMinor",
                        "date",
                        "transactionId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "firstSeen": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "lastSeen": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "maxAmountMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "minAmountMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "name": {
                    "type": "string"
                  },
                  "nextExpectedDate": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "observedTotalMinor": {
                    "type": "string",
                    "pattern": "^-?\\d+$"
                  },
                  "occurrences": {
                    "type": "integer",
                    "minimum": 2,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "accountId",
                  "amountMinor",
                  "cadence",
                  "cardNumber",
                  "currency",
                  "evidence",
                  "firstSeen",
                  "lastSeen",
                  "maxAmountMinor",
                  "minAmountMinor",
                  "name",
                  "nextExpectedDate",
                  "observedTotalMinor",
                  "occurrences"
                ],
                "additionalProperties": false
              }
            },
            "referenceDay": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "scanLimit": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "scannedCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "selection": {
              "type": "object",
              "properties": {
                "accountId": {
                  "type": "string"
                },
                "cardNumber": {
                  "type": "string"
                },
                "categoryId": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "direction": {
                  "type": "string",
                  "enum": [
                    "DEBIT",
                    "CREDIT"
                  ]
                },
                "from": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "include_ignored": {
                  "type": "boolean"
                },
                "personId": {
                  "type": "string"
                },
                "spaceId": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "PENDING",
                    "POSTED"
                  ]
                },
                "tagId": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "to": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                }
              },
              "required": [
                "from",
                "include_ignored",
                "spaceId",
                "to"
              ],
              "additionalProperties": {}
            },
            "truncated": {
              "type": "boolean"
            }
          },
          "required": [
            "estimated",
            "matchedCount",
            "records",
            "referenceDay",
            "scanLimit",
            "scannedCount",
            "selection",
            "truncated"
          ],
          "additionalProperties": false
        },
        "oldestLastSuccessAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": "boolean"
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "scope": {
          "type": "object",
          "properties": {
            "personId": {
              "type": "string"
            },
            "spaceId": {
              "type": "string"
            }
          },
          "required": [
            "spaceId"
          ],
          "additionalProperties": false
        },
        "view": {
          "type": "string",
          "const": "effective"
        }
      },
      "required": [
        "coverage",
        "data",
        "oldestLastSuccessAt",
        "partial",
        "revision",
        "scope",
        "view"
      ],
      "additionalProperties": {}
    }
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Etiquetas locais do espaço, com IDs e nomes para filtrar e organizar transações.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "additionalProperties": false
    },
    "name": "get_tags"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Compras e transações com parcelas de cartão agrupadas antes da paginação, como na lista do painel. Mantém valores de cada parcela, moeda, pendência, datas e identificação. Datas filtram a compra ou primeira parcela conhecida; nunca some a página para calcular totais.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "include_ignored": {
          "default": false,
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        },
        "text": {
          "type": "string",
          "maxLength": 240
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "uncategorized": {
          "description": "Somente lançamentos sem categoria efetiva.",
          "type": "boolean"
        },
        "cursor": {
          "type": "string",
          "maxLength": 4096
        },
        "future": {
          "default": false,
          "type": "boolean"
        },
        "limit": {
          "default": 100,
          "type": "integer",
          "minimum": 1,
          "maximum": 500
        },
        "order": {
          "default": "date_desc",
          "type": "string",
          "const": "date_desc"
        }
      },
      "additionalProperties": false
    },
    "name": "get_transaction_purchases"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Histórico efetivo com edições locais e paginação consistente. Para últimas compras envie order=date_desc e limit=5; não some páginas para calcular totais.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "cardNumber": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "include_ignored": {
          "default": false,
          "type": "boolean"
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "POSTED"
          ]
        },
        "tagId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "text": {
          "type": "string",
          "maxLength": 240
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "uncategorized": {
          "description": "Somente lançamentos sem categoria efetiva.",
          "type": "boolean"
        },
        "cursor": {
          "type": "string",
          "maxLength": 4096
        },
        "limit": {
          "default": 100,
          "type": "integer",
          "minimum": 1,
          "maximum": 500
        },
        "order": {
          "default": "id",
          "type": "string",
          "enum": [
            "id",
            "date_desc"
          ]
        }
      },
      "additionalProperties": false
    },
    "name": "get_transactions"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Vencimentos de faturas, recorrências e parcelas de empréstimos sem executar pagamentos.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "default": "personal",
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "from": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "to": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "additionalProperties": false
    },
    "name": "get_upcoming_payments"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Importar JSON de regras compostas atomicamente no espaço confirmado. Preserva regras pessoais e duplicatas; exige a revisão da prévia. Não reaplica histórico.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "categoryIds": {
          "default": {},
          "type": "object",
          "propertyNames": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
          },
          "additionalProperties": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "pack": {
          "type": "object",
          "properties": {
            "categories": {
              "minItems": 1,
              "maxItems": 50,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "income",
                      "expense",
                      "transfer"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  }
                },
                "required": [
                  "key",
                  "kind",
                  "name"
                ],
                "additionalProperties": false
              }
            },
            "id": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
            },
            "rules": {
              "minItems": 1,
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "accountId": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "direction": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "DEBIT",
                          "CREDIT"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "filter": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "alternatives": {
                            "minItems": 1,
                            "maxItems": 4,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "conditions": {
                                  "minItems": 1,
                                  "maxItems": 8,
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "description"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "enum": [
                                              "contains",
                                              "not_contains",
                                              "equals",
                                              "starts_with"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 160
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "direction"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "const": "equals"
                                          },
                                          "value": {
                                            "type": "string",
                                            "enum": [
                                              "DEBIT",
                                              "CREDIT"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "status"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "const": "equals"
                                          },
                                          "value": {
                                            "type": "string",
                                            "enum": [
                                              "POSTED",
                                              "PENDING"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "accountId"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "const": "equals"
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 160
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "personId"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "const": "equals"
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 160
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "date"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "enum": [
                                              "equals",
                                              "gte",
                                              "lte"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "format": "date",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "amount"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "enum": [
                                              "equals",
                                              "gte",
                                              "lte"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "pattern": "^(0|[1-9]\\d{0,29})$"
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "conditions"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "currency": {
                            "default": null,
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "alternatives"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  },
                  "priority": {
                    "default": 100,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "text": {
                    "default": "",
                    "type": "string",
                    "maxLength": 240
                  },
                  "categoryKey": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
                  },
                  "key": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
                  }
                },
                "required": [
                  "name",
                  "categoryKey",
                  "key"
                ],
                "additionalProperties": false
              }
            },
            "version": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "categories",
            "id",
            "rules",
            "version"
          ],
          "additionalProperties": false
        },
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "pack",
        "revision"
      ],
      "additionalProperties": false
    },
    "name": "import_rules"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Vincular exatamente uma conta ou investimento da mesma moeda à meta.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "investmentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "link_goal_asset"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Alterar apenas confirmação manual da fatura; nunca enviar pagamento ao banco.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "mark_bill_paid"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Mover conta ou todas as contas da conexão entre espaços pessoais.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "targetSpaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id",
        "targetSpaceId"
      ],
      "additionalProperties": false
    },
    "name": "move_account"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Mover conta ou todas as contas da conexão entre espaços pessoais.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "connectionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "targetSpaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "connectionId",
        "targetSpaceId"
      ],
      "additionalProperties": false
    },
    "name": "move_connection"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Mover projeções de transações para outro espaço da mesma instalação.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "ids": {
          "minItems": 1,
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "targetSpaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "ids",
        "targetSpaceId"
      ],
      "additionalProperties": false
    },
    "name": "move_transactions"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Simular uma regra sem salvar nem reclassificar. Usa o mesmo escopo obrigatório, alternativas OU, condições E e dinheiro exato do painel. Informa contagem, amostras e limites de cobertura; truncated ou partial impedem tratar a contagem como definitiva.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "accountId": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "direction": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "DEBIT",
                "CREDIT"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "filter": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "alternatives": {
                  "minItems": 1,
                  "maxItems": 4,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "conditions": {
                        "minItems": 1,
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "description"
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "contains",
                                    "not_contains",
                                    "equals",
                                    "starts_with"
                                  ]
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "direction"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "enum": [
                                    "DEBIT",
                                    "CREDIT"
                                  ]
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "status"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "enum": [
                                    "POSTED",
                                    "PENDING"
                                  ]
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "accountId"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "personId"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "date"
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "equals",
                                    "gte",
                                    "lte"
                                  ]
                                },
                                "value": {
                                  "type": "string",
                                  "format": "date",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "amount"
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "equals",
                                    "gte",
                                    "lte"
                                  ]
                                },
                                "value": {
                                  "type": "string",
                                  "pattern": "^(0|[1-9]\\d{0,29})$"
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "conditions"
                    ],
                    "additionalProperties": false
                  }
                },
                "currency": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "alternatives"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "text": {
          "default": "",
          "type": "string",
          "maxLength": 240
        }
      },
      "required": [
        "spaceId"
      ],
      "additionalProperties": false
    },
    "name": "preview_rule"
  },
  {
    "annotations": {
      "destructiveHint": false,
      "openWorldHint": false,
      "readOnlyHint": true
    },
    "description": "Conferir importação de JSON de regras compostas, categorias e duplicatas, sem gravar. Retorna revisão para confirmação.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "categoryIds": {
          "default": {},
          "type": "object",
          "propertyNames": {
            "type": "string",
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
          },
          "additionalProperties": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "pack": {
          "type": "object",
          "properties": {
            "categories": {
              "minItems": 1,
              "maxItems": 50,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "income",
                      "expense",
                      "transfer"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  }
                },
                "required": [
                  "key",
                  "kind",
                  "name"
                ],
                "additionalProperties": false
              }
            },
            "id": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
            },
            "rules": {
              "minItems": 1,
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "accountId": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 160
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "direction": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "DEBIT",
                          "CREDIT"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enabled": {
                    "default": true,
                    "type": "boolean"
                  },
                  "filter": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "alternatives": {
                            "minItems": 1,
                            "maxItems": 4,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "conditions": {
                                  "minItems": 1,
                                  "maxItems": 8,
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "description"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "enum": [
                                              "contains",
                                              "not_contains",
                                              "equals",
                                              "starts_with"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 160
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "direction"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "const": "equals"
                                          },
                                          "value": {
                                            "type": "string",
                                            "enum": [
                                              "DEBIT",
                                              "CREDIT"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "status"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "const": "equals"
                                          },
                                          "value": {
                                            "type": "string",
                                            "enum": [
                                              "POSTED",
                                              "PENDING"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "accountId"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "const": "equals"
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 160
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "personId"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "const": "equals"
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 160
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "date"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "enum": [
                                              "equals",
                                              "gte",
                                              "lte"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "format": "date",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "field": {
                                            "type": "string",
                                            "const": "amount"
                                          },
                                          "operator": {
                                            "type": "string",
                                            "enum": [
                                              "equals",
                                              "gte",
                                              "lte"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "pattern": "^(0|[1-9]\\d{0,29})$"
                                          }
                                        },
                                        "required": [
                                          "field",
                                          "operator",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                }
                              },
                              "required": [
                                "conditions"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "currency": {
                            "default": null,
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "alternatives"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  },
                  "priority": {
                    "default": 100,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "text": {
                    "default": "",
                    "type": "string",
                    "maxLength": 240
                  },
                  "categoryKey": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
                  },
                  "key": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,63}$"
                  }
                },
                "required": [
                  "name",
                  "categoryKey",
                  "key"
                ],
                "additionalProperties": false
              }
            },
            "version": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "categories",
            "id",
            "rules",
            "version"
          ],
          "additionalProperties": false
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "pack",
        "spaceId"
      ],
      "additionalProperties": false
    },
    "name": "preview_rule_import"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Conciliar próxima parcela com transação compatível ou criar lançamento manual; nunca inicia pagamento bancário.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "paymentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "transactionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "accountId",
        "id",
        "paymentId"
      ],
      "additionalProperties": false
    },
    "name": "reconcile_scheduled_payment"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Remover limite com orçamento ativado.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "remove_category_limit"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Remover contribuição preservando transação.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "contributionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "contributionId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "remove_goal_contribution"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Alterar tags das transações selecionadas.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "ids": {
          "minItems": 1,
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        },
        "tagIds": {
          "minItems": 1,
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          }
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "ids",
        "tagIds"
      ],
      "additionalProperties": false
    },
    "name": "remove_transaction_tags"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Alterar conclusão manual sem inventar pagamentos.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "reopen_installment"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Criar cronograma SAC exato; juros mensais em pontos-base e arredondamento half-up.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "count": {
          "type": "integer",
          "minimum": 1,
          "maximum": 600
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "monthlyRateBps": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        },
        "principalMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "startDate": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "count",
        "id",
        "monthlyRateBps",
        "principalMinor",
        "startDate"
      ],
      "additionalProperties": false
    },
    "name": "replace_manual_loan_schedule"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Ativar orçamento e definir total mensal por espaço.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "enabled": {
          "type": "boolean"
        },
        "monthlyBudgetMinor": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(0|[1-9]\\d{0,29})$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "currency",
        "enabled",
        "monthlyBudgetMinor"
      ],
      "additionalProperties": false
    },
    "name": "set_budget"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Definir limite com orçamento ativado.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "amountMinor",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "set_category_limit"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Definir participação no patrimônio.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "included": {
          "type": "boolean"
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id",
        "included"
      ],
      "additionalProperties": false
    },
    "name": "set_investment_inclusion"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Ocultar ou restaurar empréstimo.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "hidden": {
          "type": "boolean"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "hidden",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "set_loan_visibility"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Guardar preferência de canal; não configura nem comprova entrega de notificações.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "channel": {
          "type": "string",
          "enum": [
            "email",
            "push"
          ]
        },
        "enabled": {
          "type": "boolean"
        },
        "event": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "channel",
        "enabled",
        "event"
      ],
      "additionalProperties": false
    },
    "name": "set_notification_preference"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Definir cartão principal.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "set_primary_card"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Desfazer última conciliação mantendo transação e histórico.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "paymentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id",
        "paymentId"
      ],
      "additionalProperties": false
    },
    "name": "undo_scheduled_payment"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Remover vínculo de patrimônio.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "unlink_goal_asset"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Desvincular transação e contribuição associada sem excluir histórico.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "transactionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id",
        "transactionId"
      ],
      "additionalProperties": false
    },
    "name": "unlink_goal_transaction"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Alterar apenas confirmação manual da fatura; nunca enviar pagamento ao banco.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "unmark_bill_paid"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Editar apresentação e definir limite local de cartão; null restaura o limite importado. Não altera o banco. Ciclo somente para cartões manuais.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "closeDay": {
          "type": "integer",
          "minimum": 1,
          "maximum": 31
        },
        "creditLimitMinor": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(0|[1-9]\\d{0,29})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "dueDay": {
          "type": "integer",
          "minimum": 1,
          "maximum": 31
        },
        "hidden": {
          "type": "boolean"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "expected_revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "update_account_settings"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Renomear ou ocultar cartão adicional.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "hidden": {
          "type": "boolean"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "update_card"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Configurar ícone, cor e grupo de qualquer categoria. Nomes de categorias fixas são protegidos.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9a-fA-F]{6}$"
        },
        "groupId": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "icon": {
          "type": "string",
          "enum": [
            "activity",
            "book",
            "briefcase",
            "car",
            "gift",
            "heart",
            "home",
            "money",
            "shopping",
            "star",
            "transfer",
            "utensils"
          ]
        },
        "hidden": {
          "type": "boolean"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "update_category"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Editar nome, ícone ou cor de um agrupador de categorias.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9a-fA-F]{6}$"
        },
        "icon": {
          "type": "string",
          "enum": [
            "activity",
            "book",
            "briefcase",
            "car",
            "gift",
            "heart",
            "home",
            "money",
            "shopping",
            "star",
            "transfer",
            "utensils"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "update_category_group"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Atualizar meta financeira.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "targetDate": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "targetMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id",
        "currency",
        "name",
        "targetMinor"
      ],
      "additionalProperties": false
    },
    "name": "update_goal"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Renomear plano e parcelas vinculadas ou alterar categoria.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "categoryId": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "update_installment"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Editar investimento manual.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "date": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "included": {
          "default": true,
          "type": "boolean"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "type": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id",
        "amountMinor",
        "currency",
        "date",
        "name",
        "type"
      ],
      "additionalProperties": false
    },
    "name": "update_manual_investment"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Atualizar dívida manual sem alterar parcelas conciliadas.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "firstPaymentDate": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        },
        "installmentMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "paid": {
          "type": "integer",
          "minimum": 0,
          "maximum": 600
        },
        "personId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "total": {
          "type": "integer",
          "minimum": 1,
          "maximum": 600
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id",
        "amountMinor",
        "currency",
        "firstPaymentDate",
        "installmentMinor",
        "name",
        "paid",
        "total"
      ],
      "additionalProperties": false
    },
    "name": "update_manual_loan"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Substituir configuração da recorrência, inclusive data final.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "active": {
          "default": true,
          "type": "boolean"
        },
        "amountMinor": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d{0,29})$"
        },
        "categoryId": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "currency": {
          "type": "string",
          "enum": [
            "BRL",
            "USD",
            "EUR",
            "GBP",
            "ARS",
            "AUD",
            "BHD",
            "CAD",
            "CHF",
            "CLP",
            "JPY",
            "KWD"
          ]
        },
        "direction": {
          "type": "string",
          "enum": [
            "DEBIT",
            "CREDIT"
          ]
        },
        "endDate": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "startDate": {
          "type": "string",
          "format": "date",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id",
        "accountId",
        "amountMinor",
        "currency",
        "direction",
        "name",
        "startDate"
      ],
      "additionalProperties": false
    },
    "name": "update_recurrence"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Atualizar regra pessoal; pessoais precedem pacotes, depois menor prioridade vence.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "accountId": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            {
              "type": "null"
            }
          ]
        },
        "categoryId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "direction": {
          "default": null,
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "DEBIT",
                "CREDIT"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "enabled": {
          "default": true,
          "type": "boolean"
        },
        "filter": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "alternatives": {
                  "minItems": 1,
                  "maxItems": 4,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "conditions": {
                        "minItems": 1,
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "description"
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "contains",
                                    "not_contains",
                                    "equals",
                                    "starts_with"
                                  ]
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "direction"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "enum": [
                                    "DEBIT",
                                    "CREDIT"
                                  ]
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "status"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "enum": [
                                    "POSTED",
                                    "PENDING"
                                  ]
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "accountId"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "personId"
                                },
                                "operator": {
                                  "type": "string",
                                  "const": "equals"
                                },
                                "value": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "date"
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "equals",
                                    "gte",
                                    "lte"
                                  ]
                                },
                                "value": {
                                  "type": "string",
                                  "format": "date",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "field": {
                                  "type": "string",
                                  "const": "amount"
                                },
                                "operator": {
                                  "type": "string",
                                  "enum": [
                                    "equals",
                                    "gte",
                                    "lte"
                                  ]
                                },
                                "value": {
                                  "type": "string",
                                  "pattern": "^(0|[1-9]\\d{0,29})$"
                                }
                              },
                              "required": [
                                "field",
                                "operator",
                                "value"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "conditions"
                    ],
                    "additionalProperties": false
                  }
                },
                "currency": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[A-Z]{3}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "alternatives"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "priority": {
          "default": 100,
          "type": "integer",
          "minimum": 0,
          "maximum": 1000
        },
        "text": {
          "default": "",
          "type": "string",
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id",
        "categoryId",
        "name"
      ],
      "additionalProperties": false
    },
    "name": "update_rule"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Editar espaço e início do ciclo financeiro.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "color": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "icon": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "monthStartDay": {
          "type": "integer",
          "minimum": 1,
          "maximum": 28
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "type": {
          "type": "string",
          "enum": [
            "personal",
            "business",
            "family"
          ]
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "update_space"
  },
  {
    "annotations": {
      "destructiveHint": true,
      "openWorldHint": false,
      "readOnlyHint": false
    },
    "description": "Editar tag.",
    "inputSchema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "confirmed": {
          "type": "boolean",
          "const": true
        },
        "idempotency_key": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "spaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "color": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 240
        }
      },
      "required": [
        "confirmed",
        "idempotency_key",
        "spaceId",
        "id"
      ],
      "additionalProperties": false
    },
    "name": "update_tag"
  }
]
