Skip to main content
Glama

Value a payment stream or judge an offer

value_payment_stream
Read-only

Present value of a structured settlement, annuity or lottery payment stream at typical buyer discount rates (8% to 18%), and, if a lump-sum offer is given, the effective discount rate that offer implies, the cents on the dollar, and whether it sits in the typical range. With targetAmount, also prices a partial sale (sell only enough payments to raise that amount and keep the rest). Use when someone asks what their payments are worth, whether an offer is fair, or what selling part of their payments would cost.

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": {
      "payment": "<payment>",
      "frequency": "<frequency>"
    },
    "name": "value_payment_stream"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNoNumber of payments left (give this, or years and/or months)
offerNoLump sum a buyer has offered for these payments, in US dollars (optional)
yearsNoYears of payments left (alternative to count)
monthsNoExtra months of payments left (used with years)
paymentYesAmount of each payment in US dollars
frequencyYesHow often the payments arrive
targetAmountNoLump sum wanted from a PARTIAL sale, in US dollars (optional). Returns partial_sale: what it costs to raise this amount by selling the next payments in full, or a slice of every payment, at 8%, 13% and 18%.
lifeContingentNotrue if the payments stop at the recipient's death
startsInMonthsNoMonths until the first payment, if the payments have not started yet (default 0)
annualIncreasePctNoYearly step-up in the payment, in percent (for example 3 for 3% a year)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / targetAmount
      Added value: +{
      +  "description": "Lump sum wanted from a PARTIAL sale, in US dollars (optional). Returns partial_sale: what it costs to raise this amount by selling the next payments in full, or a slice of every payment, at 8%, 13% and 18%.",
      +  "type": "number"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, establishing a safe read-only operation. The description adds meaningful behavioral context beyond that: it names the buyer discount rate range (8% to 18%), describes the output for an offer (effective discount rate, cents on the dollar, whether typical), and explains the partial-sale calculation with targetAmount. It does not discuss error handling or edge cases, but with annotations covering safety, this is a solid contribution.

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 primary calculation, then adds offer judging, then partial sale, then usage guidance. It is dense but every clause carries useful information, and there is no filler or 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?

Given the tool's complexity (10 parameters, no output schema, financial calculation), the description covers the core purpose, the typical discount-rate assumption, offer evaluation outputs, and partial-sale behavior. It does not explain how lifeContingent, startsInMonths, or annualIncreasePct affect the valuation result, leaving those details entirely to the schema. That gap keeps it from being fully complete, but the description is otherwise sufficient for an agent to understand what the tool does and when to call it.

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%, so every parameter already has explanatory text. The description highlights how offer and targetAmount change the output, but it does not meaningfully elaborate beyond the schema descriptions for those parameters and says nothing about lifeContingent, startsInMonths, annualIncreasePct, frequency, or count/years/months. With the schema doing the heavy lifting, 3 is the appropriate baseline.

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 states a specific verb ('Present value', 'prices', 'judge') and resource ('structured settlement, annuity or lottery payment stream'), and it explains the offer-judging and partial-sale features. It does not explicitly distinguish itself from sibling tools like discount_rate_index or state_transfer_rules, so it falls short of a full 5 under the rubric.

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?

The final sentence gives clear when-to-use guidance: 'Use when someone asks what their payments are worth, whether an offer is fair, or what selling part of their payments would cost.' However, it provides no when-not-to-use conditions and does not name alternative tools for related questions, so it earns a 4 rather than a 5.

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