Skip to main content
Glama

Instruments for the economic measurement of law

ALT-01: what a settlement offer is worth against the lawsuit

alt_01_settlement_vs_lawsuit
Read-onlyIdempotent

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 result has status 'refused', report the refusal and its reason; it is a result of the method, not an error to work around.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "claim_value": "<claim_value>",
      "recoverable_pct": "<recoverable_pct>",
      "success_fee_pct": "<success_fee_pct>",
      "months_to_end": "<months_to_end>",
      "cost_now": "<cost_now>",
      "cost_per_year": "<cost_per_year>",
      "instalments": "<instalments>",
      "instalment_amount": "<instalment_amount>",
      "first_instalment_month": "<first_instalment_month>",
      "settlement_cost": "<settlement_cost>",
      "performance_model": "<performance_model>",
      "performance_pct": "<performance_pct>",
      "adjustment": "<adjustment>",
      "discount_rate_pct_month": "<discount_rate_pct_month>",
      "discount_source": "<discount_source>",
      "discount_date": "<discount_date>"
    },
    "name": "alt_01_settlement_vs_lawsuit"
  }
}

Input Schema

NameRequiredDescriptionDefault
cost_nowYesCost of continuing, paid now, in R$ (0 if none)
ipca_dateNoDate of the IPCA rate (YYYY-MM-DD)
adjustmentYesAdjustment 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
selic_dateNoDate of the Selic rate (YYYY-MM-DD)
claim_valueYesUpdated claim value at the base date, in R$
instalmentsYesNumber of instalments in the offer (1 to 600)
ipca_sourceNoSource of the IPCA rate (8 characters or more)
selic_sourceNoSource of the Selic rate (8 characters or more)
cost_per_yearYesCost of continuing, per year, in R$ (0 if none)
declared_dateNoDate of the declared rate (YYYY-MM-DD)
discount_dateYesDate of the discount rate (YYYY-MM-DD)
months_to_endYesMonths to the end of the lawsuit (1 to 600)
ipca_pct_monthNoIPCA in percent a month
declared_sourceNoSource of the declared rate (8 characters or more)
discount_sourceYesSource of the discount rate (8 characters or more)
performance_pctYesChance of meeting the whole schedule (all_or_nothing) or of paying each instalment (instalment_by_instalment), in percent
recoverable_pctYesRecoverable fraction of the claim, in percent
selic_pct_monthNoSelic in percent a month
settlement_costYesCost of the settlement, in R$ (0 if none)
success_fee_pctYesSuccess fees, in percent (0 if none)
enforceable_titleNoWhether the settlement has the form of an enforceable title. Default false
instalment_amountYesAmount of each instalment, in R$
months_to_enforceNoMonths to enforce the settlement after default; only with enforceable_title. Default 0
performance_modelYesHow performance of the settlement is modelled
declared_pct_monthNoDeclared adjustment rate in percent a month
first_instalment_monthYesMonth of the first instalment, counted from the base date (0 to 600)
discount_rate_pct_monthYesThe creditor's discount rate in percent a month (0 to 5)
recovery_on_default_pctNoRecovery on default, in percent; only with enforceable_title. Default 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), and the description adds real behavioral context: it deliberately asks for no probability of success, does not produce a recommendation, and discloses a possible 'refused' status that must be reported rather than worked around. The instruction not to invent inputs is a meaningful operational constraint. Missing: nothing on computational determinism or what the numeric result fields look like beyond the refusal case.

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-loads the computation before the usage rules, and each sentence carries distinct content (scope, when, when-not, input discipline, refusal handling). It is dense but not padded; the only mild redundancy is restating the accept/reject exclusion twice.

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

Completeness4/5

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

For a 28-parameter, 16-required financial model with no output schema, the description establishes scope, assumptions discipline, and the one exceptional return status. An agent has enough to call it correctly, though a sentence on the shape of the main numeric results would close the remaining gap left by the absent output schema.

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

Parameters3/5

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

Schema description coverage is 100% across all 28 parameters, including enums and defaults, so the schema carries parameter meaning. The description adds only the framing that values are 'declared assumptions' and that probability of success is intentionally absent; it gives no parameter-level guidance of its own, so baseline 3 applies.

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?

States a specific computed output for a specific side: 'the present value of a settlement offer and the minimum gross amount the lawsuit must yield, in the month it would end.' The creditor-side framing plus the output pair makes it unmistakable against the unrelated siblings (tax burden, portfolio exposure, dispute exposure).

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?

Has explicit 'Use when' (creditor or counsel measuring an offer in advance, before answering it) and 'Do not use when' (wants accept/reject recommendation, win probability, or the debtor's view). The out-of-scope cases are precisely the ones an agent would plausibly attempt with this tool, so the routing value is high.

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