Skip to main content
Glama

Instruments for the economic measurement of law

LEQ-01: how much is at stake in a portfolio of disputes

leq_01_portfolio_exposure
Read-onlyIdempotent

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 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": {
      "cases": "<cases>"
    },
    "name": "leq_01_portfolio_exposure"
  }
}

Input Schema

NameRequiredDescriptionDefault
casesYesThe disputes. In a GET request, a JSON array.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already establish that this is a read-only, idempotent, non-destructive, closed-world operation. The description adds meaningful behavioral context beyond that: it explains what is computed, instructs the agent not to invent inputs, and says that a 'refused' status is a methodological result to report rather than an error to work around.

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

Conciseness5/5

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

The description is front-loaded with the core computation, then moves cleanly through usage boundaries, input discipline, and refusal handling. Each sentence contributes operational information without unnecessary repetition.

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?

With no output schema, the description carries the burden of explaining return behavior, and it does so conceptually by listing the exposure outputs and refusal status. It does not specify exact output field names or structure, but it is complete enough for an agent to understand what the tool produces.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents the single 'cases' parameter and its fields. The description still adds semantic value by explaining how central values, ranges, families, and cases needing better numbers are used in the exposure calculation, and by reinforcing the input-discipline rule.

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

Purpose4/5

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

The description gives a specific verb and resource: it 'maps the total exposure of a set of disputes' and enumerates the computed dimensions (sum of central values, 75% concentration, range envelope, family grouping, cases needing better numbers). This clearly separates it from a single-dispute exposure tool, though it does not explicitly name or contrast a sibling.

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

Usage Guidelines4/5

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

It provides explicit 'Use when' and 'Do not use when' guidance, excluding accounting-provision and litigation-funding valuation use cases. It does not name a specific alternative tool for those excluded cases, so it falls just short of full alternative routing.

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