Skip to main content
Glama

Sum invoices over a window

well_sum_invoices
Read-only

Sum a workspace's billed amounts over a window of whole months, grouped by month, currency and billing context. Arithmetic only — this tool holds no definition of MRR or recurrence, and returns no figure the app renders.

Use it when you are computing a figure whose RULES you are stating yourself: recurring revenue over a window you chose, a total restricted to the billing contexts a reader confirmed, a per-month series behind a trend you are about to describe. The server derives no MRR of its own, so an MRR figure starts here: state the rules, sum exactly those rows, then put the result on a card with well_render_mrr.

The window is whole months. from and to are both the first day of a month, as YYYY-MM-01; from is inclusive and to is EXCLUSIVE, so June to August is 2026-06-01 to 2026-09-01. A bound inside a month is refused rather than widened, and so is a window longer than 36 months.

Which rows are billed amounts is decided here, and stated so you can say it. A draft is left out, because it has not been issued, and so is a canceled invoice. excluded_draft_count counts the drafts left out: a connector or document import can keep a real invoice at draft, so state the count beside any total whenever it is not zero. Billing documents count: invoices, debit notes, credit notes and subscription billing statements, so a proforma and the invoice it precedes are not summed twice, and a quote or a payment advice never is. A paid sales order counts, its unpaid rest is owed. A sales order the customer paid in full or in part is a sale for its full total, and counts as the order while no invoice bills it, then as the invoice once one does, so a store's sale counts once. An unpaid order is no sale yet. While Well is unsure that an order and an invoice are one sale, it counts the sale once, as the paid order: pending_pairing gives those sales per currency, with their count and net amount, already inside totals. When it is not empty, state "N sales to confirm" beside the total. It is null when the read failed. A row with no document type is read as an invoice. Every amount is NET of tax (items_total), because tax collected is owed onward rather than earned.

party_scope is required, and it decides whose invoice this is. sales is what the workspace ISSUED — its receivables, and the only side revenue can come from. purchase is what it received. The two are the same rows read from opposite ends, so no default is offered: a server choosing a side would answer a different question from the one asked. intra_self is an invoice between two companies the workspace owns, and unattributed is one Well could place on neither side.

Those four scopes partition every invoice exactly once, which is what makes an incomplete picture visible rather than silent. unattributed_count comes back on every call, whatever scope you asked for: it counts the invoices in the window that landed in that fourth bucket. State it beside any total, because an unattributed invoice may still belong in the figure and nothing here can tell you whether it does.

Every row carries ONE month, ONE currency and ONE billing context. Currency is always a grouping key, named or not: adding EUR to USD gives a number denominated in nothing, and no field on the result would tell you it happened. Convert the per-currency subtotals yourself, at a rate you can state, before you add them.

totals carries one figure per currency over the whole window: the rows of that currency folded across months and billing contexts on the server, rounded to the cent. When your figure covers every row of the call, read it from totals and never add rows yourself. A figure restricted to some billing contexts, such as an MRR over the contexts a reader confirmed, still comes from the rows: totals folds every context in, the null ones too.

sum is already net of credit notes. A credit note subtracts its magnitude from its own month-currency-context bucket, whichever sign it was stored with; credit_note_sum and credit_note_count report what that removed, so you can say what the figure netted. Do not subtract them a second time. A bucket whose credit notes outweigh its invoices nets negative, and that is a real state rather than an error.

billing_context is null on rows that name no billing arrangement — none stored, unknown, or a value Well has no label for — and that is a third answer rather than a kind of one-off. The field is filled by extraction, not by a billing system, so a workspace can carry real recurring revenue on rows that say nothing about it. unclassified_count totals those rows. The recurring-contexts card offers them as one choice, keyed "unclassified", so apply that key to these rows and only these. Counted or not, report the count rather than letting a reader read the remainder as "everything else".

corrected_or_consolidated_count counts the corrected and consolidated invoices among the rows. Each replaces invoices Well holds no link to, so when those originals fall in the same window the sum counts that billing twice. The rows keep them, because dropping them would lose the revenue whenever the originals fall outside the window. State the count beside any total whenever it is not zero.

excluded_malformed counts billing documents in the window with no readable net amount or no currency. They are in none of the rows and none of the sums, so state the count beside any total. It comes back null when the count could not be read, which is NOT 0: zero says every row was readable, null says nobody counted.

source_count counts the distinct connector ids on readable, billed invoices in the requested side and window; manual invoices do not count. synced_at is the oldest successful sync among those sources when every source is live and has synced, and is null if any source is missing or has never synced. fresh_enough is true only when all counted sources synced within the last 24 hours. A manual-only window has zero sources, synced_at: null, and fresh_enough: false. If source_count is zero, say there is no connector sync time to assess. If fresh_enough is false and source_count is greater than zero, never present the sum as current: say that source data may be old or lack a successful sync, and name synced_at when it is available.

When party_scope.side_unknown is true the workspace has no resolved own company, so no side filter was applied: the totals cover every invoice on both sides, and the side is not known. Say the side is unknown, never that the figure is the requested side's.

When completeness.personal_mode is true, read party_scope.side_unknown, party_scope.applied and sums.by_counterparty together. With side_unknown: true and applied: false, describe personal spend or income by counterparty using the issuer/receiver buckets and their resolved labels. Do not call these amounts sales or purchases, revenue or business expenses, and do not present them as an answer for the requested side. A counterparty bucket alone does not prove which party is the person: if that is unresolved, state who billed whom and ask before assigning spend or income. Keep estimated attribution and conflicting evidence separate from this personal result. If by_counterparty.available is false or its truncated flag is true, state that limitation; do not invent a complete split.

partial: true means the aggregate was cut short and every figure is a FLOOR rather than a measurement.

axes splits the window, only when you pass it. ["counterparty"] gives one group per other party of the invoice (the issuer on purchase, the receiver on sales), with its counterparty_id and counterparty_name. ["category"] gives one group per category, where the category of an invoice is the confirmed transaction category the workspace holds for that party (declared by the person, or learned from corrections): an invoice carries no category of its own. Both keys together split by both. A key you asked for is null on the group of invoices with no value for it: no party on the invoice, or a party with no confirmed category. groups is folded across months and sorted largest first within each currency, net of tax and of credit notes like rows. axes takes party_scope purchase or sales only. groups_truncated: true means groups were dropped at the group cap: the groups then do not add up to totals, and a ranking from them may miss a larger group. The figure of the window still comes from totals. groups is empty when party_scope.side_unknown is true: the side filter did not apply, so no group is a supplier or a customer. The category comes from the rules of the workspace the call names: on a call that covers several workspaces, the invoices of the others fall in the null category.

When the token authorizes one workspace, call this directly — no workspace call is needed first. When it authorizes several, this read will not guess which one you mean: pass workspace_id on the call.

Input Schema

NameRequiredDescriptionDefault
toYesEXCLUSIVE end of the window: the first day of the month after the last one you want, YYYY-MM-01.
axesNoOptional keys to split the window by, beside the currency: `counterparty`, `category`, or both. Omit for no `groups`. Purchase or sales scope only.
fromYesInclusive start of the window: the first day of a month, YYYY-MM-01.
party_scopeYesWhich side of the invoice the workspace occupies: `sales` for what it issued, `purchase` for what it received. Required; see the description.
workspace_idNoTarget workspace. Omit when the token authorizes one workspace. Required when it authorizes several: this read reports one workspace's own figures and will not choose which.
conversation_idNoThe conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.
workspace_scopeNoRestrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.

Output Schema

NameRequiredDescriptionDefault
rowsYes
sumsYesThe four-way own-side partition of the measured set. `proven` cells hold only rows the stored facts prove; `estimated` cells hold the rows a weak claim sides (inside `unattributed`, never inside `proven`); `unattributed` is the unknown remainder with the direction twin's `by_reason` split; `no_currency` counts measured rows with no currency. `available: false` means a cell read failed — a partial block would not add up, so the block is omitted rather than floored.
errorNo
groupsNoThe window split by `axes`, largest first within each currency. Absent when no `axes` was passed; empty when `party_scope.side_unknown` is true.
totalsYesOne figure per currency over the whole window, folded on the server. Never added across currencies.
windowYes
partialYes
successYes
synced_atYes
party_scopeYesWhat the requested side resolved to. `side_unknown: true` means the workspace resolved no own company, so NO side filter was applied (`applied: false`) and every figure covers invoices on both sides — say the side is unknown, never that the figure is the requested side's. `null` when no scope resolution was reported.
completenessYes
fresh_enoughYes
source_countYes
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
newly_connectedNoTools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.
pending_pairingYesPer currency, the sales counted once as the paid order while a person has not confirmed the pair. Already inside `totals`. `null` when the read failed.
groups_truncatedNoTrue when groups were dropped at the group cap: the groups do not add up to `totals`.
excluded_malformedYes
resolved_workspaceNoThe workspace that answered, when the caller named none and the token authorizes several.
unattributed_countYes
unclassified_countYes
conversation_id_noteNoPresent only when the server opened a fresh lane, stating that no choice recorded earlier was read.
excluded_draft_countYes
conversation_id_sourceNoWhere the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.
corrected_or_consolidated_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / pending_pairing
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "amount": {
      +            "type": "number"
      +          },
      +          "count": {
      +            "type": "number"
      +          },
      +          "currency": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "currency",
      +          "count",
      +          "amount"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Per currency, the sales counted once as the paid order while a person has not confirmed the pair. Already inside `totals`. `null` when the read failed."
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "rows",
      -  "totals",
      -  "window",
      -  "synced_at",
      -  "fresh_enough",
      -  "source_count",
      -  "unattributed_count",
      -  "unclassified_count",
      -  "corrected_or_consolidated_count",
      -  "excluded_malformed",
      -  "excluded_draft_count",
      -  "party_scope",
      -  "completeness",
      -  "sums",
      -  "partial",
      -  "success"
      -]New value: +[
      +  "rows",
      +  "totals",
      +  "window",
      +  "synced_at",
      +  "fresh_enough",
      +  "source_count",
      +  "unattributed_count",
      +  "unclassified_count",
      +  "corrected_or_consolidated_count",
      +  "excluded_malformed",
      +  "excluded_draft_count",
      +  "pending_pairing",
      +  "party_scope",
      +  "completeness",
      +  "sums",
      +  "partial",
      +  "success"
      +]
  2. Changed26 schema fields changed
    • changedOutput schema / properties / completeness / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      -    "properties": {
      -      "conflict_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "estimated": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": true,
      -                "type": "boolean"
      -              },
      -              "count": {
      -                "type": "number"
      -              },
      -              "kinds": {
      -                "items": {
      -                  "enum": [
      -                    "own_set_self_candidate",
      -                    "asserted_own_side_unqualified",
      -                    "bank_allocation"
      -                  ],
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "count",
      -              "kinds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": false,
      -                "type": "boolean"
      -              },
      -              "reason": {
      -                "enum": [
      -                  "own_set_truncated",
      -                  "grouped_results_truncated",
      -                  "read_failed"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "reason"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "fold_version": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "intra_self_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "personal_mode": {
      -        "type": "boolean"
      -      },
      -      "self_candidate_count": {
      -        "type": "number"
      -      },
      -      "self_set_size": {
      -        "type": "number"
      -      },
      -      "self_set_truncated": {
      -        "type": "boolean"
      -      },
      -      "unattributed_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "fold_version",
      -      "self_set_size",
      -      "self_set_truncated",
      -      "self_candidate_count",
      -      "personal_mode",
      -      "unattributed_count",
      -      "intra_self_count",
      -      "conflict_count",
      -      "estimated"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      +    "properties": {
      +      "conflict_count": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "estimated": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": true,
      +                "type": "boolean"
      +              },
      +              "count": {
      +                "type": "number"
      +              },
      +              "kinds": {
      +                "items": {
      +                  "enum": [
      +                    "own_set_self_candidate",
      +                    "asserted_own_side_unqualified",
      +                    "bank_allocation"
      +                  ],
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "count",
      +              "kinds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": false,
      +                "type": "boolean"
      +              },
      +              "reason": {
      +                "enum": [
      +                  "own_set_truncated",
      +                  "grouped_results_truncated",
      +                  "read_failed"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "reason"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "fold_version": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "intra_self_count": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "personal_mode": {
      +        "type": "boolean"
      +      },
      +      "self_candidate_count": {
      +        "type": "number"
      +      },
      +      "self_set_size": {
      +        "type": "number"
      +      },
      +      "self_set_truncated": {
      +        "type": "boolean"
      +      },
      +      "unattributed_count": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "fold_version",
      +      "self_set_size",
      +      "self_set_truncated",
      +      "self_candidate_count",
      +      "personal_mode",
      +      "unattributed_count",
      +      "intra_self_count",
      +      "conflict_count",
      +      "estimated"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / corrected_or_consolidated_count / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / corrected_or_consolidated_count / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / excluded_draft_count / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / excluded_draft_count / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / excluded_malformed / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / excluded_malformed / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • addedOutput schema / properties / fresh_enough
      Added value: +{
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / groups / items / properties / category / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / groups / items / properties / category / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / groups / items / properties / counterparty_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / groups / items / properties / counterparty_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / groups / items / properties / counterparty_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / groups / items / properties / counterparty_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / resolved_workspace / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / resolved_workspace / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / rows / items / properties / billing_context / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / rows / items / properties / billing_context / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / source_count
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / properties / sums / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "available": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "by_counterparty": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": true,
      -                "type": "boolean"
      -              },
      -              "rows": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "count": {
      -                      "type": "number"
      -                    },
      -                    "currency": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "issuer_company_id": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "receiver_company_id": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "total": {
      -                      "anyOf": [
      -                        {
      -                          "type": "number"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "issuer_company_id",
      -                    "receiver_company_id",
      -                    "currency",
      -                    "total",
      -                    "count"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "truncated": {
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "rows",
      -              "truncated"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": false,
      -                "type": "boolean"
      -              },
      -              "reason": {
      -                "const": "read_failed",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "reason"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "estimated": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "available": {
      -                  "const": true,
      -                  "type": "boolean"
      -                },
      -                "kind": {
      -                  "enum": [
      -                    "own_set_self_candidate",
      -                    "asserted_own_side_unqualified",
      -                    "bank_allocation"
      -                  ],
      -                  "type": "string"
      -                },
      -                "purchase": {
      -                  "anyOf": [
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "by_currency": {
      -                          "items": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "count": {
      -                                "type": "number"
      -                              },
      -                              "currency": {
      -                                "type": "string"
      -                              },
      -                              "total": {
      -                                "anyOf": [
      -                                  {
      -                                    "type": "number"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              }
      -                            },
      -                            "required": [
      -                              "currency",
      -                              "total",
      -                              "count"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "type": "array"
      -                        },
      -                        "count": {
      -                          "type": "number"
      -                        }
      -                      },
      -                      "required": [
      -                        "count",
      -                        "by_currency"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "sales": {
      -                  "anyOf": [
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "by_currency": {
      -                          "items": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "count": {
      -                                "type": "number"
      -                              },
      -                              "currency": {
      -                                "type": "string"
      -                              },
      -                              "total": {
      -                                "anyOf": [
      -                                  {
      -                                    "type": "number"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              }
      -                            },
      -                            "required": [
      -                              "currency",
      -                              "total",
      -                              "count"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "type": "array"
      -                        },
      -                        "count": {
      -                          "type": "number"
      -                        }
      -                      },
      -                      "required": [
      -                        "count",
      -                        "by_currency"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "available",
      -                "sales",
      -                "purchase"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "available": {
      -                  "const": false,
      -                  "type": "boolean"
      -                },
      -                "kind": {
      -                  "enum": [
      -                    "own_set_self_candidate",
      -                    "asserted_own_side_unqualified",
      -                    "bank_allocation"
      -                  ],
      -                  "type": "string"
      -                },
      -                "purchase": {
      -                  "type": "null"
      -                },
      -                "reason": {
      -                  "enum": [
      -                    "not_shipped",
      -                    "own_set_truncated",
      -                    "read_failed"
      -                  ],
      -                  "type": "string"
      -                },
      -                "sales": {
      -                  "type": "null"
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "available",
      -                "reason",
      -                "sales",
      -                "purchase"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "intra_self": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "by_currency": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "count": {
      -                  "type": "number"
      -                },
      -                "currency": {
      -                  "type": "string"
      -                },
      -                "total": {
      -                  "anyOf": [
      -                    {
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "currency",
      -                "total",
      -                "count"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "count",
      -          "by_currency"
      -        ],
      -        "type": "object"
      -      },
      -      "kind": {
      -        "enum": [
      -          "sided",
      -          "personal"
      -        ],
      -        "type": "string"
      -      },
      -      "measure": {
      -        "enum": [
      -          "items_total_net",
      -          "balance_due"
      -        ],
      -        "type": "string"
      -      },
      -      "no_currency": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "count"
      -        ],
      -        "type": "object"
      -      },
      -      "proven": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "purchase": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "by_currency": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "count": {
      -                      "type": "number"
      -                    },
      -                    "currency": {
      -                      "type": "string"
      -                    },
      -                    "total": {
      -                      "anyOf": [
      -                        {
      -                          "type": "number"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "currency",
      -                    "total",
      -                    "count"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "count",
      -              "by_currency"
      -            ],
      -            "type": "object"
      -          },
      -          "sales": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "by_currency": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "count": {
      -                      "type": "number"
      -                    },
      -                    "currency": {
      -                      "type": "string"
      -                    },
      -                    "total": {
      -                      "anyOf": [
      -                        {
      -                          "type": "number"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "currency",
      -                    "total",
      -                    "count"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "count",
      -              "by_currency"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "sales",
      -          "purchase"
      -        ],
      -        "type": "object"
      -      },
      -      "scope": {
      -        "enum": [
      -          "purchase",
      -          "sales",
      -          "intra_self",
      -          "unattributed"
      -        ],
      -        "type": "string"
      -      },
      -      "unattributed": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "by_currency": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "count": {
      -                  "type": "number"
      -                },
      -                "currency": {
      -                  "type": "string"
      -                },
      -                "total": {
      -                  "anyOf": [
      -                    {
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "currency",
      -                "total",
      -                "count"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "by_reason": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "count": {
      -                  "type": "number"
      -                },
      -                "reason": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "reason",
      -                "count"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "count",
      -          "by_currency",
      -          "by_reason"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "available",
      -      "kind",
      -      "scope",
      -      "measure",
      -      "proven",
      -      "intra_self",
      -      "estimated",
      -      "unattributed",
      -      "no_currency"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "available": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "enum": [
      -          "grouped_results_truncated",
      -          "read_failed"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "available",
      -      "reason"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "available": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "by_counterparty": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": true,
      +                "type": "boolean"
      +              },
      +              "rows": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "count": {
      +                      "type": "number"
      +                    },
      +                    "currency": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "issuer_company_id": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "receiver_company_id": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "total": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "issuer_company_id",
      +                    "receiver_company_id",
      +                    "currency",
      +                    "total",
      +                    "count"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "truncated": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "rows",
      +              "truncated"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": false,
      +                "type": "boolean"
      +              },
      +              "reason": {
      +                "const": "read_failed",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "reason"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "estimated": {
      +        "items": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": true,
      +                  "type": "boolean"
      +                },
      +                "kind": {
      +                  "enum": [
      +                    "own_set_self_candidate",
      +                    "asserted_own_side_unqualified",
      +                    "bank_allocation"
      +                  ],
      +                  "type": "string"
      +                },
      +                "purchase": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "by_currency": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "count": {
      +                                "type": "number"
      +                              },
      +                              "currency": {
      +                                "type": "string"
      +                              },
      +                              "total": {
      +                                "type": [
      +                                  "number",
      +                                  "null"
      +                                ]
      +                              }
      +                            },
      +                            "required": [
      +                              "currency",
      +                              "total",
      +                              "count"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        },
      +                        "count": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "count",
      +                        "by_currency"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "sales": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "by_currency": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "count": {
      +                                "type": "number"
      +                              },
      +                              "currency": {
      +                                "type": "string"
      +                              },
      +                              "total": {
      +                                "type": [
      +                                  "number",
      +                                  "null"
      +                                ]
      +                              }
      +                            },
      +                            "required": [
      +                              "currency",
      +                              "total",
      +                              "count"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        },
      +                        "count": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "count",
      +                        "by_currency"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "available",
      +                "sales",
      +                "purchase"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": false,
      +                  "type": "boolean"
      +                },
      +                "kind": {
      +                  "enum": [
      +                    "own_set_self_candidate",
      +                    "asserted_own_side_unqualified",
      +                    "bank_allocation"
      +                  ],
      +                  "type": "string"
      +                },
      +                "purchase": {
      +                  "type": "null"
      +                },
      +                "reason": {
      +                  "enum": [
      +                    "not_shipped",
      +                    "own_set_truncated",
      +                    "read_failed"
      +                  ],
      +                  "type": "string"
      +                },
      +                "sales": {
      +                  "type": "null"
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "available",
      +                "reason",
      +                "sales",
      +                "purchase"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "intra_self": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "by_currency": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "count": {
      +                  "type": "number"
      +                },
      +                "currency": {
      +                  "type": "string"
      +                },
      +                "total": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "currency",
      +                "total",
      +                "count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "count",
      +          "by_currency"
      +        ],
      +        "type": "object"
      +      },
      +      "kind": {
      +        "enum": [
      +          "sided",
      +          "personal"
      +        ],
      +        "type": "string"
      +      },
      +      "measure": {
      +        "enum": [
      +          "items_total_net",
      +          "balance_due"
      +        ],
      +        "type": "string"
      +      },
      +      "no_currency": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "count"
      +        ],
      +        "type": "object"
      +      },
      +      "proven": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "purchase": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "by_currency": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "count": {
      +                      "type": "number"
      +                    },
      +                    "currency": {
      +                      "type": "string"
      +                    },
      +                    "total": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "currency",
      +                    "total",
      +                    "count"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "count",
      +              "by_currency"
      +            ],
      +            "type": "object"
      +          },
      +          "sales": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "by_currency": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "count": {
      +                      "type": "number"
      +                    },
      +                    "currency": {
      +                      "type": "string"
      +                    },
      +                    "total": {
      +                      "type": [
      +                        "number",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "currency",
      +                    "total",
      +                    "count"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "count",
      +              "by_currency"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "sales",
      +          "purchase"
      +        ],
      +        "type": "object"
      +      },
      +      "scope": {
      +        "enum": [
      +          "purchase",
      +          "sales",
      +          "intra_self",
      +          "unattributed"
      +        ],
      +        "type": "string"
      +      },
      +      "unattributed": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "by_currency": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "count": {
      +                  "type": "number"
      +                },
      +                "currency": {
      +                  "type": "string"
      +                },
      +                "total": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "currency",
      +                "total",
      +                "count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "by_reason": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "count": {
      +                  "type": "number"
      +                },
      +                "reason": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "reason",
      +                "count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "count",
      +          "by_currency",
      +          "by_reason"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "available",
      +      "kind",
      +      "scope",
      +      "measure",
      +      "proven",
      +      "intra_self",
      +      "estimated",
      +      "unattributed",
      +      "no_currency"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "available": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "reason": {
      +        "enum": [
      +          "grouped_results_truncated",
      +          "read_failed"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "available",
      +      "reason"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / properties / synced_at
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / unattributed_count / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / unattributed_count / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / unclassified_count / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / unclassified_count / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "rows",
      -  "totals",
      -  "window",
      -  "unattributed_count",
      -  "unclassified_count",
      -  "corrected_or_consolidated_count",
      -  "excluded_malformed",
      -  "excluded_draft_count",
      -  "party_scope",
      -  "completeness",
      -  "sums",
      -  "partial",
      -  "success"
      -]New value: +[
      +  "rows",
      +  "totals",
      +  "window",
      +  "synced_at",
      +  "fresh_enough",
      +  "source_count",
      +  "unattributed_count",
      +  "unclassified_count",
      +  "corrected_or_consolidated_count",
      +  "excluded_malformed",
      +  "excluded_draft_count",
      +  "party_scope",
      +  "completeness",
      +  "sums",
      +  "partial",
      +  "success"
      +]
  3. Changed2 schema fields changed
    • changedOutput schema / properties / completeness / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      -    "properties": {
      -      "conflict_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "estimated": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": true,
      -                "type": "boolean"
      -              },
      -              "count": {
      -                "type": "number"
      -              },
      -              "kinds": {
      -                "items": {
      -                  "enum": [
      -                    "own_set_self_candidate",
      -                    "asserted_own_side_unqualified",
      -                    "bank_allocation"
      -                  ],
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "count",
      -              "kinds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": false,
      -                "type": "boolean"
      -              },
      -              "reason": {
      -                "enum": [
      -                  "own_set_truncated",
      -                  "read_failed"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "reason"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "fold_version": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "intra_self_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "personal_mode": {
      -        "type": "boolean"
      -      },
      -      "self_candidate_count": {
      -        "type": "number"
      -      },
      -      "self_set_size": {
      -        "type": "number"
      -      },
      -      "self_set_truncated": {
      -        "type": "boolean"
      -      },
      -      "unattributed_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "fold_version",
      -      "self_set_size",
      -      "self_set_truncated",
      -      "self_candidate_count",
      -      "personal_mode",
      -      "unattributed_count",
      -      "intra_self_count",
      -      "conflict_count",
      -      "estimated"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      +    "properties": {
      +      "conflict_count": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "estimated": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": true,
      +                "type": "boolean"
      +              },
      +              "count": {
      +                "type": "number"
      +              },
      +              "kinds": {
      +                "items": {
      +                  "enum": [
      +                    "own_set_self_candidate",
      +                    "asserted_own_side_unqualified",
      +                    "bank_allocation"
      +                  ],
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "count",
      +              "kinds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": false,
      +                "type": "boolean"
      +              },
      +              "reason": {
      +                "enum": [
      +                  "own_set_truncated",
      +                  "grouped_results_truncated",
      +                  "read_failed"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "reason"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "fold_version": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "intra_self_count": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "personal_mode": {
      +        "type": "boolean"
      +      },
      +      "self_candidate_count": {
      +        "type": "number"
      +      },
      +      "self_set_size": {
      +        "type": "number"
      +      },
      +      "self_set_truncated": {
      +        "type": "boolean"
      +      },
      +      "unattributed_count": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "fold_version",
      +      "self_set_size",
      +      "self_set_truncated",
      +      "self_candidate_count",
      +      "personal_mode",
      +      "unattributed_count",
      +      "intra_self_count",
      +      "conflict_count",
      +      "estimated"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / sums / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "available": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "by_counterparty": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": true,
      -                "type": "boolean"
      -              },
      -              "rows": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "count": {
      -                      "type": "number"
      -                    },
      -                    "currency": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "issuer_company_id": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "receiver_company_id": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "total": {
      -                      "anyOf": [
      -                        {
      -                          "type": "number"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "issuer_company_id",
      -                    "receiver_company_id",
      -                    "currency",
      -                    "total",
      -                    "count"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "truncated": {
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "rows",
      -              "truncated"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": false,
      -                "type": "boolean"
      -              },
      -              "reason": {
      -                "const": "read_failed",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "reason"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "estimated": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "available": {
      -                  "const": true,
      -                  "type": "boolean"
      -                },
      -                "kind": {
      -                  "enum": [
      -                    "own_set_self_candidate",
      -                    "asserted_own_side_unqualified",
      -                    "bank_allocation"
      -                  ],
      -                  "type": "string"
      -                },
      -                "purchase": {
      -                  "anyOf": [
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "by_currency": {
      -                          "items": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "count": {
      -                                "type": "number"
      -                              },
      -                              "currency": {
      -                                "type": "string"
      -                              },
      -                              "total": {
      -                                "anyOf": [
      -                                  {
      -                                    "type": "number"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              }
      -                            },
      -                            "required": [
      -                              "currency",
      -                              "total",
      -                              "count"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "type": "array"
      -                        },
      -                        "count": {
      -                          "type": "number"
      -                        }
      -                      },
      -                      "required": [
      -                        "count",
      -                        "by_currency"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "sales": {
      -                  "anyOf": [
      -                    {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "by_currency": {
      -                          "items": {
      -                            "additionalProperties": false,
      -                            "properties": {
      -                              "count": {
      -                                "type": "number"
      -                              },
      -                              "currency": {
      -                                "type": "string"
      -                              },
      -                              "total": {
      -                                "anyOf": [
      -                                  {
      -                                    "type": "number"
      -                                  },
      -                                  {
      -                                    "type": "null"
      -                                  }
      -                                ]
      -                              }
      -                            },
      -                            "required": [
      -                              "currency",
      -                              "total",
      -                              "count"
      -                            ],
      -                            "type": "object"
      -                          },
      -                          "type": "array"
      -                        },
      -                        "count": {
      -                          "type": "number"
      -                        }
      -                      },
      -                      "required": [
      -                        "count",
      -                        "by_currency"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "available",
      -                "sales",
      -                "purchase"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "available": {
      -                  "const": false,
      -                  "type": "boolean"
      -                },
      -                "kind": {
      -                  "enum": [
      -                    "own_set_self_candidate",
      -                    "asserted_own_side_unqualified",
      -                    "bank_allocation"
      -                  ],
      -                  "type": "string"
      -                },
      -                "purchase": {
      -                  "type": "null"
      -                },
      -                "reason": {
      -                  "enum": [
      -                    "not_shipped",
      -                    "own_set_truncated",
      -                    "read_failed"
      -                  ],
      -                  "type": "string"
      -                },
      -                "sales": {
      -                  "type": "null"
      -                }
      -              },
      -              "required": [
      -                "kind",
      -                "available",
      -                "reason",
      -                "sales",
      -                "purchase"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "type": "array"
      -      },
      -      "intra_self": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "by_currency": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "count": {
      -                  "type": "number"
      -                },
      -                "currency": {
      -                  "type": "string"
      -                },
      -                "total": {
      -                  "anyOf": [
      -                    {
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "currency",
      -                "total",
      -                "count"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "count",
      -          "by_currency"
      -        ],
      -        "type": "object"
      -      },
      -      "kind": {
      -        "enum": [
      -          "sided",
      -          "personal"
      -        ],
      -        "type": "string"
      -      },
      -      "measure": {
      -        "enum": [
      -          "items_total_net",
      -          "balance_due"
      -        ],
      -        "type": "string"
      -      },
      -      "no_currency": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "count"
      -        ],
      -        "type": "object"
      -      },
      -      "proven": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "purchase": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "by_currency": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "count": {
      -                      "type": "number"
      -                    },
      -                    "currency": {
      -                      "type": "string"
      -                    },
      -                    "total": {
      -                      "anyOf": [
      -                        {
      -                          "type": "number"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "currency",
      -                    "total",
      -                    "count"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "count",
      -              "by_currency"
      -            ],
      -            "type": "object"
      -          },
      -          "sales": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "by_currency": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "count": {
      -                      "type": "number"
      -                    },
      -                    "currency": {
      -                      "type": "string"
      -                    },
      -                    "total": {
      -                      "anyOf": [
      -                        {
      -                          "type": "number"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "currency",
      -                    "total",
      -                    "count"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "count",
      -              "by_currency"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "sales",
      -          "purchase"
      -        ],
      -        "type": "object"
      -      },
      -      "scope": {
      -        "enum": [
      -          "purchase",
      -          "sales",
      -          "intra_self",
      -          "unattributed"
      -        ],
      -        "type": "string"
      -      },
      -      "unattributed": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "by_currency": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "count": {
      -                  "type": "number"
      -                },
      -                "currency": {
      -                  "type": "string"
      -                },
      -                "total": {
      -                  "anyOf": [
      -                    {
      -                      "type": "number"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "currency",
      -                "total",
      -                "count"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "by_reason": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "count": {
      -                  "type": "number"
      -                },
      -                "reason": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "reason",
      -                "count"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "count",
      -          "by_currency",
      -          "by_reason"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "available",
      -      "kind",
      -      "scope",
      -      "measure",
      -      "proven",
      -      "intra_self",
      -      "estimated",
      -      "unattributed",
      -      "no_currency"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "available": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "const": "read_failed",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "available",
      -      "reason"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "available": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "by_counterparty": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": true,
      +                "type": "boolean"
      +              },
      +              "rows": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "count": {
      +                      "type": "number"
      +                    },
      +                    "currency": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "issuer_company_id": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "receiver_company_id": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "total": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "issuer_company_id",
      +                    "receiver_company_id",
      +                    "currency",
      +                    "total",
      +                    "count"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "truncated": {
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "rows",
      +              "truncated"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": false,
      +                "type": "boolean"
      +              },
      +              "reason": {
      +                "const": "read_failed",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "reason"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "estimated": {
      +        "items": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": true,
      +                  "type": "boolean"
      +                },
      +                "kind": {
      +                  "enum": [
      +                    "own_set_self_candidate",
      +                    "asserted_own_side_unqualified",
      +                    "bank_allocation"
      +                  ],
      +                  "type": "string"
      +                },
      +                "purchase": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "by_currency": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "count": {
      +                                "type": "number"
      +                              },
      +                              "currency": {
      +                                "type": "string"
      +                              },
      +                              "total": {
      +                                "anyOf": [
      +                                  {
      +                                    "type": "number"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              }
      +                            },
      +                            "required": [
      +                              "currency",
      +                              "total",
      +                              "count"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        },
      +                        "count": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "count",
      +                        "by_currency"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "sales": {
      +                  "anyOf": [
      +                    {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "by_currency": {
      +                          "items": {
      +                            "additionalProperties": false,
      +                            "properties": {
      +                              "count": {
      +                                "type": "number"
      +                              },
      +                              "currency": {
      +                                "type": "string"
      +                              },
      +                              "total": {
      +                                "anyOf": [
      +                                  {
      +                                    "type": "number"
      +                                  },
      +                                  {
      +                                    "type": "null"
      +                                  }
      +                                ]
      +                              }
      +                            },
      +                            "required": [
      +                              "currency",
      +                              "total",
      +                              "count"
      +                            ],
      +                            "type": "object"
      +                          },
      +                          "type": "array"
      +                        },
      +                        "count": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "count",
      +                        "by_currency"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "available",
      +                "sales",
      +                "purchase"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": false,
      +                  "type": "boolean"
      +                },
      +                "kind": {
      +                  "enum": [
      +                    "own_set_self_candidate",
      +                    "asserted_own_side_unqualified",
      +                    "bank_allocation"
      +                  ],
      +                  "type": "string"
      +                },
      +                "purchase": {
      +                  "type": "null"
      +                },
      +                "reason": {
      +                  "enum": [
      +                    "not_shipped",
      +                    "own_set_truncated",
      +                    "read_failed"
      +                  ],
      +                  "type": "string"
      +                },
      +                "sales": {
      +                  "type": "null"
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "available",
      +                "reason",
      +                "sales",
      +                "purchase"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "intra_self": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "by_currency": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "count": {
      +                  "type": "number"
      +                },
      +                "currency": {
      +                  "type": "string"
      +                },
      +                "total": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "currency",
      +                "total",
      +                "count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "count",
      +          "by_currency"
      +        ],
      +        "type": "object"
      +      },
      +      "kind": {
      +        "enum": [
      +          "sided",
      +          "personal"
      +        ],
      +        "type": "string"
      +      },
      +      "measure": {
      +        "enum": [
      +          "items_total_net",
      +          "balance_due"
      +        ],
      +        "type": "string"
      +      },
      +      "no_currency": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "count"
      +        ],
      +        "type": "object"
      +      },
      +      "proven": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "purchase": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "by_currency": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "count": {
      +                      "type": "number"
      +                    },
      +                    "currency": {
      +                      "type": "string"
      +                    },
      +                    "total": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "currency",
      +                    "total",
      +                    "count"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "count",
      +              "by_currency"
      +            ],
      +            "type": "object"
      +          },
      +          "sales": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "by_currency": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "count": {
      +                      "type": "number"
      +                    },
      +                    "currency": {
      +                      "type": "string"
      +                    },
      +                    "total": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "currency",
      +                    "total",
      +                    "count"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "count",
      +              "by_currency"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "sales",
      +          "purchase"
      +        ],
      +        "type": "object"
      +      },
      +      "scope": {
      +        "enum": [
      +          "purchase",
      +          "sales",
      +          "intra_self",
      +          "unattributed"
      +        ],
      +        "type": "string"
      +      },
      +      "unattributed": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "by_currency": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "count": {
      +                  "type": "number"
      +                },
      +                "currency": {
      +                  "type": "string"
      +                },
      +                "total": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "currency",
      +                "total",
      +                "count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "by_reason": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "count": {
      +                  "type": "number"
      +                },
      +                "reason": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "reason",
      +                "count"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "count",
      +          "by_currency",
      +          "by_reason"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "available",
      +      "kind",
      +      "scope",
      +      "measure",
      +      "proven",
      +      "intra_self",
      +      "estimated",
      +      "unattributed",
      +      "no_currency"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "available": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "reason": {
      +        "enum": [
      +          "grouped_results_truncated",
      +          "read_failed"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "available",
      +      "reason"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed3 schema fields changed
    • addedInput schema / properties / axes
      Added value: +{
      +  "description": "Optional keys to split the window by, beside the currency: `counterparty`, `category`, or both. Omit for no `groups`. Purchase or sales scope only.",
      +  "items": {
      +    "enum": [
      +      "counterparty",
      +      "category"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 2,
      +  "type": "array"
      +}
    • addedOutput schema / properties / groups
      Added value: +{
      +  "description": "The window split by `axes`, largest first within each currency. Absent when no `axes` was passed; empty when `party_scope.side_unknown` is true.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "category": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "count": {
      +        "type": "number"
      +      },
      +      "counterparty_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "counterparty_name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "credit_note_count": {
      +        "type": "number"
      +      },
      +      "credit_note_sum": {
      +        "type": "number"
      +      },
      +      "currency": {
      +        "type": "string"
      +      },
      +      "sum": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "currency",
      +      "counterparty_id",
      +      "counterparty_name",
      +      "category",
      +      "sum",
      +      "count",
      +      "credit_note_sum",
      +      "credit_note_count"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / groups_truncated
      Added value: +{
      +  "description": "True when groups were dropped at the group cap: the groups do not add up to `totals`.",
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • changedOutput schema / properties / completeness / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      -    "properties": {
      -      "conflict_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "estimated": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": true,
      -                "type": "boolean"
      -              },
      -              "count": {
      -                "type": "number"
      -              },
      -              "kinds": {
      -                "items": {
      -                  "enum": [
      -                    "own_set_self_candidate",
      -                    "asserted_own_side_unqualified",
      -                    "bank_allocation"
      -                  ],
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "count",
      -              "kinds"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "available": {
      -                "const": false,
      -                "type": "boolean"
      -              },
      -              "reason": {
      -                "enum": [
      -                  "own_set_truncated",
      -                  "read_failed"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "available",
      -              "reason"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "intra_self_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "personal_mode": {
      -        "type": "boolean"
      -      },
      -      "self_candidate_count": {
      -        "type": "number"
      -      },
      -      "self_set_size": {
      -        "type": "number"
      -      },
      -      "self_set_truncated": {
      -        "type": "boolean"
      -      },
      -      "unattributed_count": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "self_set_size",
      -      "self_set_truncated",
      -      "self_candidate_count",
      -      "personal_mode",
      -      "unattributed_count",
      -      "intra_self_count",
      -      "conflict_count",
      -      "estimated"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      +    "properties": {
      +      "conflict_count": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "estimated": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": true,
      +                "type": "boolean"
      +              },
      +              "count": {
      +                "type": "number"
      +              },
      +              "kinds": {
      +                "items": {
      +                  "enum": [
      +                    "own_set_self_candidate",
      +                    "asserted_own_side_unqualified",
      +                    "bank_allocation"
      +                  ],
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "count",
      +              "kinds"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "available": {
      +                "const": false,
      +                "type": "boolean"
      +              },
      +              "reason": {
      +                "enum": [
      +                  "own_set_truncated",
      +                  "read_failed"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "available",
      +              "reason"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "fold_version": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "intra_self_count": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "personal_mode": {
      +        "type": "boolean"
      +      },
      +      "self_candidate_count": {
      +        "type": "number"
      +      },
      +      "self_set_size": {
      +        "type": "number"
      +      },
      +      "self_set_truncated": {
      +        "type": "boolean"
      +      },
      +      "unattributed_count": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "fold_version",
      +      "self_set_size",
      +      "self_set_truncated",
      +      "self_candidate_count",
      +      "personal_mode",
      +      "unattributed_count",
      +      "intra_self_count",
      +      "conflict_count",
      +      "estimated"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  6. Changed6 schema fields changed
    • addedOutput schema / properties / completeness
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "description": "How far the workspace's own-side resolution lets a caller trust the figure: the self-party set's size and truncation, and the counts of the rows it could not prove a side for. `unattributed_count` is the certainty-unknown remainder; `estimated` counts the rows a weak claim still sides, unavailable when the set was truncated or the read failed. A null count is an unread cell, never a measured zero.",
      +      "properties": {
      +        "conflict_count": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "estimated": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": true,
      +                  "type": "boolean"
      +                },
      +                "count": {
      +                  "type": "number"
      +                },
      +                "kinds": {
      +                  "items": {
      +                    "enum": [
      +                      "own_set_self_candidate",
      +                      "asserted_own_side_unqualified",
      +                      "bank_allocation"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "count",
      +                "kinds"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": false,
      +                  "type": "boolean"
      +                },
      +                "reason": {
      +                  "enum": [
      +                    "own_set_truncated",
      +                    "read_failed"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "reason"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "intra_self_count": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "personal_mode": {
      +          "type": "boolean"
      +        },
      +        "self_candidate_count": {
      +          "type": "number"
      +        },
      +        "self_set_size": {
      +          "type": "number"
      +        },
      +        "self_set_truncated": {
      +          "type": "boolean"
      +        },
      +        "unattributed_count": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "self_set_size",
      +        "self_set_truncated",
      +        "self_candidate_count",
      +        "personal_mode",
      +        "unattributed_count",
      +        "intra_self_count",
      +        "conflict_count",
      +        "estimated"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / properties / newly_connected / description
      Previous value: -"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. Start the reply with one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."New value: +"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."
    • addedOutput schema / properties / party_scope
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "applied": {
      +          "type": "boolean"
      +        },
      +        "requested": {
      +          "enum": [
      +            "purchase",
      +            "sales",
      +            "intra_self",
      +            "unattributed"
      +          ],
      +          "type": "string"
      +        },
      +        "side_unknown": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "requested",
      +        "applied",
      +        "side_unknown"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "What the requested side resolved to. `side_unknown: true` means the workspace resolved no own company, so NO side filter was applied (`applied: false`) and every figure covers invoices on both sides — say the side is unknown, never that the figure is the requested side's. `null` when no scope resolution was reported."
      +}
    • addedOutput schema / properties / sums
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "available": {
      +          "const": true,
      +          "type": "boolean"
      +        },
      +        "by_counterparty": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": true,
      +                  "type": "boolean"
      +                },
      +                "rows": {
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "count": {
      +                        "type": "number"
      +                      },
      +                      "currency": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "issuer_company_id": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "receiver_company_id": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "total": {
      +                        "anyOf": [
      +                          {
      +                            "type": "number"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "required": [
      +                      "issuer_company_id",
      +                      "receiver_company_id",
      +                      "currency",
      +                      "total",
      +                      "count"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "truncated": {
      +                  "type": "boolean"
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "rows",
      +                "truncated"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "available": {
      +                  "const": false,
      +                  "type": "boolean"
      +                },
      +                "reason": {
      +                  "const": "read_failed",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "available",
      +                "reason"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "estimated": {
      +          "items": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available": {
      +                    "const": true,
      +                    "type": "boolean"
      +                  },
      +                  "kind": {
      +                    "enum": [
      +                      "own_set_self_candidate",
      +                      "asserted_own_side_unqualified",
      +                      "bank_allocation"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "purchase": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "by_currency": {
      +                            "items": {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "count": {
      +                                  "type": "number"
      +                                },
      +                                "currency": {
      +                                  "type": "string"
      +                                },
      +                                "total": {
      +                                  "anyOf": [
      +                                    {
      +                                      "type": "number"
      +                                    },
      +                                    {
      +                                      "type": "null"
      +                                    }
      +                                  ]
      +                                }
      +                              },
      +                              "required": [
      +                                "currency",
      +                                "total",
      +                                "count"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            "type": "array"
      +                          },
      +                          "count": {
      +                            "type": "number"
      +                          }
      +                        },
      +                        "required": [
      +                          "count",
      +                          "by_currency"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "sales": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "by_currency": {
      +                            "items": {
      +                              "additionalProperties": false,
      +                              "properties": {
      +                                "count": {
      +                                  "type": "number"
      +                                },
      +                                "currency": {
      +                                  "type": "string"
      +                                },
      +                                "total": {
      +                                  "anyOf": [
      +                                    {
      +                                      "type": "number"
      +                                    },
      +                                    {
      +                                      "type": "null"
      +                                    }
      +                                  ]
      +                                }
      +                              },
      +                              "required": [
      +                                "currency",
      +                                "total",
      +                                "count"
      +                              ],
      +                              "type": "object"
      +                            },
      +                            "type": "array"
      +                          },
      +                          "count": {
      +                            "type": "number"
      +                          }
      +                        },
      +                        "required": [
      +                          "count",
      +                          "by_currency"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "available",
      +                  "sales",
      +                  "purchase"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "available": {
      +                    "const": false,
      +                    "type": "boolean"
      +                  },
      +                  "kind": {
      +                    "enum": [
      +                      "own_set_self_candidate",
      +                      "asserted_own_side_unqualified",
      +                      "bank_allocation"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "purchase": {
      +                    "type": "null"
      +                  },
      +                  "reason": {
      +                    "enum": [
      +                      "not_shipped",
      +                      "own_set_truncated",
      +                      "read_failed"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "sales": {
      +                    "type": "null"
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "available",
      +                  "reason",
      +                  "sales",
      +                  "purchase"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        "intra_self": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "by_currency": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "count": {
      +                    "type": "number"
      +                  },
      +                  "currency": {
      +                    "type": "string"
      +                  },
      +                  "total": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "currency",
      +                  "total",
      +                  "count"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "count": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "count",
      +            "by_currency"
      +          ],
      +          "type": "object"
      +        },
      +        "kind": {
      +          "enum": [
      +            "sided",
      +            "personal"
      +          ],
      +          "type": "string"
      +        },
      +        "measure": {
      +          "enum": [
      +            "items_total_net",
      +            "balance_due"
      +          ],
      +          "type": "string"
      +        },
      +        "no_currency": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "count": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "count"
      +          ],
      +          "type": "object"
      +        },
      +        "proven": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "purchase": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "by_currency": {
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "count": {
      +                        "type": "number"
      +                      },
      +                      "currency": {
      +                        "type": "string"
      +                      },
      +                      "total": {
      +                        "anyOf": [
      +                          {
      +                            "type": "number"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "required": [
      +                      "currency",
      +                      "total",
      +                      "count"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "count": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "count",
      +                "by_currency"
      +              ],
      +              "type": "object"
      +            },
      +            "sales": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "by_currency": {
      +                  "items": {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "count": {
      +                        "type": "number"
      +                      },
      +                      "currency": {
      +                        "type": "string"
      +                      },
      +                      "total": {
      +                        "anyOf": [
      +                          {
      +                            "type": "number"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "required": [
      +                      "currency",
      +                      "total",
      +                      "count"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "count": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "count",
      +                "by_currency"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "sales",
      +            "purchase"
      +          ],
      +          "type": "object"
      +        },
      +        "scope": {
      +          "enum": [
      +            "purchase",
      +            "sales",
      +            "intra_self",
      +            "unattributed"
      +          ],
      +          "type": "string"
      +        },
      +        "unattributed": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "by_currency": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "count": {
      +                    "type": "number"
      +                  },
      +                  "currency": {
      +                    "type": "string"
      +                  },
      +                  "total": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "currency",
      +                  "total",
      +                  "count"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "by_reason": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "count": {
      +                    "type": "number"
      +                  },
      +                  "reason": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "reason",
      +                  "count"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "count": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "count",
      +            "by_currency",
      +            "by_reason"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "available",
      +        "kind",
      +        "scope",
      +        "measure",
      +        "proven",
      +        "intra_self",
      +        "estimated",
      +        "unattributed",
      +        "no_currency"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "available": {
      +          "const": false,
      +          "type": "boolean"
      +        },
      +        "reason": {
      +          "const": "read_failed",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "available",
      +        "reason"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "description": "The four-way own-side partition of the measured set. `proven` cells hold only rows the stored facts prove; `estimated` cells hold the rows a weak claim sides (inside `unattributed`, never inside `proven`); `unattributed` is the unknown remainder with the direction twin's `by_reason` split; `no_currency` counts measured rows with no currency. `available: false` means a cell read failed — a partial block would not add up, so the block is omitted rather than floored."
      +}
    • addedOutput schema / properties / totals
      Added value: +{
      +  "description": "One figure per currency over the whole window, folded on the server. Never added across currencies.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "count": {
      +        "type": "number"
      +      },
      +      "credit_note_count": {
      +        "type": "number"
      +      },
      +      "credit_note_sum": {
      +        "type": "number"
      +      },
      +      "currency": {
      +        "type": "string"
      +      },
      +      "sum": {
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "currency",
      +      "sum",
      +      "count",
      +      "credit_note_sum",
      +      "credit_note_count"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "rows",
      -  "window",
      -  "unattributed_count",
      -  "unclassified_count",
      -  "corrected_or_consolidated_count",
      -  "excluded_malformed",
      -  "excluded_draft_count",
      -  "partial",
      -  "success"
      -]New value: +[
      +  "rows",
      +  "totals",
      +  "window",
      +  "unattributed_count",
      +  "unclassified_count",
      +  "corrected_or_consolidated_count",
      +  "excluded_malformed",
      +  "excluded_draft_count",
      +  "party_scope",
      +  "completeness",
      +  "sums",
      +  "partial",
      +  "success"
      +]
  7. Changed2 schema fields changed
    • addedOutput schema / properties / excluded_draft_count
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "rows",
      -  "window",
      -  "unattributed_count",
      -  "unclassified_count",
      -  "corrected_or_consolidated_count",
      -  "excluded_malformed",
      -  "partial",
      -  "success"
      -]New value: +[
      +  "rows",
      +  "window",
      +  "unattributed_count",
      +  "unclassified_count",
      +  "corrected_or_consolidated_count",
      +  "excluded_malformed",
      +  "excluded_draft_count",
      +  "partial",
      +  "success"
      +]
  8. Changed1 schema field changed
    • addedInput schema / properties / workspace_scope
      Added value: +{
      +  "description": "Restrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.",
      +  "enum": [
      +    "family"
      +  ],
      +  "type": "string"
      +}
  9. Changed1 schema field changed
    • addedOutput schema / properties / newly_connected
      Added value: +{
      +  "description": "Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. Start the reply with one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "service_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "service_id"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  10. Changed4 schema fields changed
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / conversation_id_note
      Added value: +{
      +  "description": "Present only when the server opened a fresh lane, stating that no choice recorded earlier was read.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / conversation_id_source
      Added value: +{
      +  "description": "Where the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.",
      +  "enum": [
      +    "host_meta",
      +    "argument",
      +    "minted"
      +  ],
      +  "type": "string"
      +}
  11. Added

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say readOnly/openWorld=false; the description carries all the real behavioral weight — exclusion rules (draft, canceled), credit notes already netted so do not subtract twice, `partial` meaning FLOOR, freshness semantics of `fresh_enough`/`synced_at`, and the null-vs-zero distinction on `excluded_malformed`. That is far beyond what the annotations provide and prevents concrete misreporting.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then bolded sections for window, row-selection, scopes, totals, and per-field caveats — structure is strong. The length is justified by the number of edge cases, though several admonitions ('state it beside any total') repeat across fields, so it is not maximally tight.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists but the description still disambiguates the trickiest return fields (totals vs rows, groups_truncated, side_unknown, personal_mode interplay), which is exactly the context needed for correct figure reporting. Nothing an agent needs to call or interpret this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds genuinely new semantics: `party_scope`'s four values partition every invoice exactly once, `axes` affects grouping/category derivation and is valid only for purchase/sales, and `unattributed_count` is returned regardless of scope. That is meaning the schema's one-line enums do not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a precise verb+resource+grouping: sums billed amounts over whole-month windows, grouped by month, currency and billing context. It goes further and explicitly disclaims scope ('Arithmetic only — no MRR definition'), which separates it from well_render_mrr and the other well_sum_* siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names the exact situations to use it (rules you are stating yourself, MRR starting here, per-month trend series) and the downstream tool to pair it with (`well_render_mrr`). It also states the workspace_id condition: call directly when the token authorizes one workspace, pass workspace_id when it authorizes several.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources