Skip to main content
Glama

Instruments for the economic measurement of law

QPC-01: how much can be at stake in a single dispute

qpc_01_dispute_exposure
Read-onlyIdempotent

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 '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": {
      "event_date": "<event_date>",
      "revenue_before": "<revenue_before>",
      "revenue_after": "<revenue_after>",
      "contribution_margin_pct": "<contribution_margin_pct>",
      "horizon_months": "<horizon_months>",
      "discount_rate_pct_month": "<discount_rate_pct_month>"
    },
    "name": "qpc_01_dispute_exposure"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_dateNoBase date; default today in Brasília. Cannot be in the future (YYYY-MM-DD)
event_dateYesDate of the event (YYYY-MM-DD)
revenue_afterYesAverage monthly revenue observed after the event, in R$
horizon_monthsYesMonths from the event over which the loss is measured (1 to 120)
revenue_beforeYesAverage monthly revenue before the event, in R$
contribution_margin_pctYesContribution margin, as a percentage of revenue (32 means 32%)
discount_rate_pct_monthYesMonthly discount rate in percent (1 means 1% a month). The public page's declared default is 1; confirm it with the user

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower, but the description still adds real value: it discloses the shape of the result (split between accrued and future loss, a range, the dominant assumption) and defines a 'refused' status with instructions to surface it rather than retry. That refusal semantics is exactly the kind of non-obvious behavior an agent needs. It stops short of describing units, rounding, or how the range is derived, keeping it at a solid rather than exceptional level.

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 the capability statement, then structured into use/avoid conditions and two invocation rules, with no filler sentences. The prose is dense and slightly long for a single tool, but every sentence carries an actionable constraint, so nothing is wasted.

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?

With seven parameters, six required, no output schema, and no enums, the description supplies precisely what the structured fields cannot: the decomposition of the result, the presence of a range and a sensitivity assumption, and the meaning of a 'refused' status. An agent can call this tool and correctly report its output without further documentation.

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%, with each of the seven parameters carrying format, range, unit, and example guidance, so the schema does the heavy lifting and the baseline of 3 applies. The description adds procedural meaning to the inputs (solicit missing values from the user, label assumption-derived values) but no field-level interpretation such as the interaction between event_date, base_date, and horizon_months.

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 verb and resource ('estimates the contribution a business lost because of a dated event') and goes further by naming the output decomposition (already due vs. still future, exploratory range, most influential assumption). It also draws a clear line against adjacent analyses (damages assessment, provision figure, probability of winning), so the agent can distinguish it from sibling instruments without opening the 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?

Explicit 'Use when' and 'Do not use when' clauses name both the qualifying scenario (a first, transparent order of magnitude for a contract rupture or lost-revenue dispute) and the disqualifying ones (formal damages, provisioning, win probability). The instruction not to invent inputs and to flag user-supplied assumptions is concrete invocation guidance rather than generic boilerplate.

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