Instruments for the economic measurement of law

v1.0.0
studio.luizfnunesdasilva/instruments Checked 8 hours ago Published 1 day ago

Measure 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…

ParameterTypeDescription
contribution_margin_pct *numberContribution margin, as a percentage of revenue (32 means 32%)
discount_rate_pct_month *numberMonthly discount rate in percent (1 means 1% a month). The public page's declared default is 1; confirm it with the user
event_date *stringDate of the event (YYYY-MM-DD)
horizon_months *integerMonths from the event over which the loss is measured (1 to 120)
revenue_after *numberAverage monthly revenue observed after the event, in R$
revenue_before *numberAverage monthly revenue before the event, in R$
base_datestringBase 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…

ParameterTypeDescription
cases *arrayThe 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…

ParameterTypeDescription
annual_volume *numberUnits sold per year
cbs_2027_pct *numberCBS reference rate in 2027, in percent
ibs_cbs_2033_pct *numberIBS plus CBS in 2033, in percent
icms_differential_pct *numberThe product's ICMS rate minus the standard rate, in percentage points
ipi_per_unit *numberCurrent IPI per unit, in R$
price_per_unit *numberSale price per unit, in R$
icms_on_transactionbooleanWhether ICMS is levied on the transaction value (adds the ICMS layer). Default false
icms_rate_pctnumberThe 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…

ParameterTypeDescription
adjustment *stringAdjustment 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 *numberUpdated claim value at the base date, in R$
cost_now *numberCost of continuing, paid now, in R$ (0 if none)
cost_per_year *numberCost of continuing, per year, in R$ (0 if none)
discount_date *stringDate of the discount rate (YYYY-MM-DD)
discount_rate_pct_month *numberThe creditor's discount rate in percent a month (0 to 5)
discount_source *stringSource of the discount rate (8 characters or more)
first_instalment_month *integerMonth of the first instalment, counted from the base date (0 to 600)
instalment_amount *numberAmount of each instalment, in R$
instalments *integerNumber of instalments in the offer (1 to 600)
months_to_end *integerMonths to the end of the lawsuit (1 to 600)
performance_model *stringHow performance of the settlement is modelled
performance_pct *numberChance of meeting the whole schedule (all_or_nothing) or of paying each instalment (instalment_by_instalment), in percent
recoverable_pct *numberRecoverable fraction of the claim, in percent
settlement_cost *numberCost of the settlement, in R$ (0 if none)
success_fee_pct *numberSuccess fees, in percent (0 if none)
declared_datestringDate of the declared rate (YYYY-MM-DD)
declared_pct_monthnumberDeclared adjustment rate in percent a month
declared_sourcestringSource of the declared rate (8 characters or more)
enforceable_titlebooleanWhether the settlement has the form of an enforceable title. Default false
ipca_datestringDate of the IPCA rate (YYYY-MM-DD)
ipca_pct_monthnumberIPCA in percent a month
ipca_sourcestringSource of the IPCA rate (8 characters or more)
months_to_enforceintegerMonths to enforce the settlement after default; only with enforceable_title. Default 0
recovery_on_default_pctnumberRecovery on default, in percent; only with enforceable_title. Default 0
selic_datestringDate of the Selic rate (YYYY-MM-DD)
selic_pct_monthnumberSelic in percent a month
selic_sourcestringSource of the Selic rate (8 characters or more)