Skip to main content
Glama

Lovie Company Formation

Preview Close

accounting_preview_close
Read-only

PreviewClose computes the per-currency revenue/expense totals and the net income a close would roll, without writing anything, and reports what still blocks the close along with what closing carries with it. The blockers come from the function ClosePeriod refuses on, so a clean preview means the close will not be refused for a precondition. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
basisNo
endDateNo
companyIdYesUUID value wrapper.
startDateNo
granularityNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noticesNo
signersNo
blockersNo
previewsNo
exceptionsNo
reconciledNo
revenueTraceNo
signerUserIdsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedOutput schema / properties / blockers / items / properties / reason / enum
      Previous value: -[
      -  "PERIOD_CLOSE_REFUSAL_REASON_UNSPECIFIED",
      -  "PERIOD_CLOSE_REFUSAL_REASON_INVALID_RANGE",
      -  "PERIOD_CLOSE_REFUSAL_REASON_PERIOD_OVERLAP"
      -]New value: +[
      +  "PERIOD_CLOSE_REFUSAL_REASON_UNSPECIFIED",
      +  "PERIOD_CLOSE_REFUSAL_REASON_INVALID_RANGE",
      +  "PERIOD_CLOSE_REFUSAL_REASON_PERIOD_OVERLAP",
      +  "PERIOD_CLOSE_REFUSAL_REASON_OPEN_DIFFERENCE",
      +  "PERIOD_CLOSE_REFUSAL_REASON_UNTIED_ACCOUNT",
      +  "PERIOD_CLOSE_REFUSAL_REASON_BLOCKED_POSTINGS",
      +  "PERIOD_CLOSE_REFUSAL_REASON_EXCEPTIONS_NOT_ACCEPTED",
      +  "PERIOD_CLOSE_REFUSAL_REASON_CASH_FLOW_UNRECONCILED",
      +  "PERIOD_CLOSE_REFUSAL_REASON_MISALIGNED",
      +  "PERIOD_CLOSE_REFUSAL_REASON_NOT_FINISHED",
      +  "PERIOD_CLOSE_REFUSAL_REASON_OUT_OF_SEQUENCE"
      +]
    • addedOutput schema / properties / exceptions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "excluded": {
      +          "items": {
      +            "properties": {
      +              "amount": {
      +                "type": "string"
      +              },
      +              "currencyCode": {
      +                "type": "string"
      +              },
      +              "entryDate": {
      +                "type": "string"
      +              },
      +              "excludedBy": {
      +                "anyOf": [
      +                  {
      +                    "description": "UUID value wrapper.",
      +                    "properties": {
      +                      "value": {
      +                        "format": "uuid",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "memo": {
      +                "type": "string"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "transactionId": {
      +                "anyOf": [
      +                  {
      +                    "description": "UUID value wrapper.",
      +                    "properties": {
      +                      "value": {
      +                        "format": "uuid",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "excludedCount": {
      +          "type": "integer"
      +        },
      +        "fingerprint": {
      +          "type": "string"
      +        },
      +        "unreviewed": {
      +          "items": {
      +            "properties": {
      +              "amount": {
      +                "type": "string"
      +              },
      +              "currencyCode": {
      +                "type": "string"
      +              },
      +              "entryDate": {
      +                "type": "string"
      +              },
      +              "memo": {
      +                "type": "string"
      +              },
      +              "ownerUserId": {
      +                "anyOf": [
      +                  {
      +                    "description": "UUID value wrapper.",
      +                    "properties": {
      +                      "value": {
      +                        "format": "uuid",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "transactionId": {
      +                "anyOf": [
      +                  {
      +                    "description": "UUID value wrapper.",
      +                    "properties": {
      +                      "value": {
      +                        "format": "uuid",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "unreviewedCount": {
      +          "type": "integer"
      +        },
      +        "unverifiedRevenue": {
      +          "items": {
      +            "properties": {
      +              "accountName": {
      +                "type": "string"
      +              },
      +              "amount": {
      +                "type": "string"
      +              },
      +              "currencyCode": {
      +                "type": "string"
      +              },
      +              "entryDate": {
      +                "type": "string"
      +              },
      +              "journalEntryId": {
      +                "anyOf": [
      +                  {
      +                    "description": "UUID value wrapper.",
      +                    "properties": {
      +                      "value": {
      +                        "format": "uuid",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "memo": {
      +                "type": "string"
      +              },
      +              "transactionId": {
      +                "anyOf": [
      +                  {
      +                    "description": "UUID value wrapper.",
      +                    "properties": {
      +                      "value": {
      +                        "format": "uuid",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "unverifiedRevenueCount": {
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / reconciled
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / revenueTrace
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "bankInterestAmount": {
      +          "type": "string"
      +        },
      +        "currencyCode": {
      +          "type": "string"
      +        },
      +        "lovieInvoiceAmount": {
      +          "type": "string"
      +        },
      +        "stripePayoutAmount": {
      +          "type": "string"
      +        },
      +        "unverifiedAmount": {
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / signerUserIds
      Added value: +{
      +  "items": {
      +    "description": "UUID value wrapper.",
      +    "properties": {
      +      "value": {
      +        "format": "uuid",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / signers
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "label": {
      +        "type": "string"
      +      },
      +      "userId": {
      +        "anyOf": [
      +          {
      +            "description": "UUID value wrapper.",
      +            "properties": {
      +              "value": {
      +                "format": "uuid",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / granularity
      Added value: +{
      +  "enum": [
      +    "PERIOD_GRANULARITY_UNSPECIFIED",
      +    "PERIOD_GRANULARITY_MONTH",
      +    "PERIOD_GRANULARITY_QUARTER",
      +    "PERIOD_GRANULARITY_YEAR"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / blockers
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "message": {
      +        "type": "string"
      +      },
      +      "reason": {
      +        "enum": [
      +          "PERIOD_CLOSE_REFUSAL_REASON_UNSPECIFIED",
      +          "PERIOD_CLOSE_REFUSAL_REASON_INVALID_RANGE",
      +          "PERIOD_CLOSE_REFUSAL_REASON_PERIOD_OVERLAP"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / notices
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.