Instruments for the economic measurement of law
v1.0.0Measure a Brazilian dispute, case portfolio, selective tax or settlement offer in advance.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_instruments List the legal and economic instruments
Lists the public instruments, what each measures, when to use it and when not.
qpc_01_dispute_exposure QPC-01: how much can be at stake in a single dispute
Estimates the contribution a business lost because of a dated event (contract termination, interruption), split into what is already due and what is still future, with an exploratory range and the assumption that moves the result most. Use when: Someone needs a first, transparent order of magnitude for a contract rupture or lost-revenue dispute. Do not use when: The person needs a damages assessment, a provision figure or a probability of winning. Do not invent inputs: ask the user for every value they have not given, and say which values are their assumptions. If the result has status 'refuse…
| Parameter | Type | Description |
|---|---|---|
contribution_margin_pct * | number | Contribution margin, as a percentage of revenue (32 means 32%) |
discount_rate_pct_month * | number | Monthly discount rate in percent (1 means 1% a month). The public page's declared default is 1; confirm it with the user |
event_date * | string | Date of the event (YYYY-MM-DD) |
horizon_months * | integer | Months from the event over which the loss is measured (1 to 120) |
revenue_after * | number | Average monthly revenue observed after the event, in R$ |
revenue_before * | number | Average monthly revenue before the event, in R$ |
base_date | string | Base date; default today in Brasília. Cannot be in the future (YYYY-MM-DD) |
leq_01_portfolio_exposure LEQ-01: how much is at stake in a portfolio of disputes
Maps the total exposure of a set of disputes: the sum of central values, which cases make 75% of it, the envelope of ranges, grouping by family and which cases need a better number. Use when: A legal department or firm wants an in-advance map of a portfolio's magnitude and concentration. Do not use when: The person needs a provision under accounting standards or a litigation-funding valuation. Do not invent inputs: ask the user for every value they have not given, and say which values are their assumptions. If the result has status 'refused', report the refusal and its reason; it is a result o…
| Parameter | Type | Description |
|---|---|---|
cases * | array | The disputes. In a GET request, a JSON array. |
is_01_selective_tax_ipi_burden IS-01: the cost of keeping the IPI burden in Brazil's Selective Tax
Measures, 2027 to 2033, how much more is charged when the Selective Tax (Imposto Seletivo) set by MP 1.399/2026 repeats the IPI amount (reading on the rate) instead of keeping the IPI burden (reading on the burden), since the Selective Tax enters the base of CBS, IBS and, where applicable, ICMS. Use when: Someone needs to measure in advance what the two readings of IPI neutrality mean for a product under MP 1.399/2026. Do not use when: The person needs a tax opinion on which reading prevails, or rates after 2027 as forecasts. Do not invent inputs: ask the user for every value they have not giv…
| Parameter | Type | Description |
|---|---|---|
annual_volume * | number | Units sold per year |
cbs_2027_pct * | number | CBS reference rate in 2027, in percent |
ibs_cbs_2033_pct * | number | IBS plus CBS in 2033, in percent |
icms_differential_pct * | number | The product's ICMS rate minus the standard rate, in percentage points |
ipi_per_unit * | number | Current IPI per unit, in R$ |
price_per_unit * | number | Sale price per unit, in R$ |
icms_on_transaction | boolean | Whether ICMS is levied on the transaction value (adds the ICMS layer). Default false |
icms_rate_pct | number | The product's ICMS rate in percent; required when icms_on_transaction is true |
alt_01_settlement_vs_lawsuit ALT-01: what a settlement offer is worth against the lawsuit
Creditor side: the present value of a settlement offer and the minimum gross amount the lawsuit must yield, in the month it would end, to be worth more. Asks for no probability of success and does not say whether to accept. Use when: A creditor or counsel wants to measure an offer in advance, before answering it, under declared assumptions. Do not use when: The person wants a recommendation to accept or reject, an estimate of the chance of winning, or the debtor's view. Do not invent inputs: ask the user for every value they have not given, and say which values are their assumptions. If the re…
| Parameter | Type | Description |
|---|---|---|
adjustment * | string | Adjustment of the claim: legal_default is IPCA plus legal-rate interest (Civil Code arts. 389 and 406) and needs the ipca_* and selic_* fields; declared needs the declared_* fields |
claim_value * | number | Updated claim value at the base date, in R$ |
cost_now * | number | Cost of continuing, paid now, in R$ (0 if none) |
cost_per_year * | number | Cost of continuing, per year, in R$ (0 if none) |
discount_date * | string | Date of the discount rate (YYYY-MM-DD) |
discount_rate_pct_month * | number | The creditor's discount rate in percent a month (0 to 5) |
discount_source * | string | Source of the discount rate (8 characters or more) |
first_instalment_month * | integer | Month of the first instalment, counted from the base date (0 to 600) |
instalment_amount * | number | Amount of each instalment, in R$ |
instalments * | integer | Number of instalments in the offer (1 to 600) |
months_to_end * | integer | Months to the end of the lawsuit (1 to 600) |
performance_model * | string | How performance of the settlement is modelled |
performance_pct * | number | Chance of meeting the whole schedule (all_or_nothing) or of paying each instalment (instalment_by_instalment), in percent |
recoverable_pct * | number | Recoverable fraction of the claim, in percent |
settlement_cost * | number | Cost of the settlement, in R$ (0 if none) |
success_fee_pct * | number | Success fees, in percent (0 if none) |
declared_date | string | Date of the declared rate (YYYY-MM-DD) |
declared_pct_month | number | Declared adjustment rate in percent a month |
declared_source | string | Source of the declared rate (8 characters or more) |
enforceable_title | boolean | Whether the settlement has the form of an enforceable title. Default false |
ipca_date | string | Date of the IPCA rate (YYYY-MM-DD) |
ipca_pct_month | number | IPCA in percent a month |
ipca_source | string | Source of the IPCA rate (8 characters or more) |
months_to_enforce | integer | Months to enforce the settlement after default; only with enforceable_title. Default 0 |
recovery_on_default_pct | number | Recovery on default, in percent; only with enforceable_title. Default 0 |
selic_date | string | Date of the Selic rate (YYYY-MM-DD) |
selic_pct_month | number | Selic in percent a month |
selic_source | string | Source of the Selic rate (8 characters or more) |