Skip to main content
Glama

Royalty Clerk

Texas Natural Resources Code §91.402 / §91.403 late-payment interest calculator

late_interest_calc

Deterministic Texas statutory late-royalty interest calculator (60-day oil / 90-day gas / 120-day first sale; NY Fed primary credit rate + 2%). Returns due date, days late, applicable annual rate, and statutory interest owed in USD.

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": {
      "product": "<product>",
      "production_month": "<production_month>",
      "payment_date": "<payment_date>",
      "amount_usd": "<amount_usd>"
    },
    "name": "late_interest_calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
productYesProduct type ('oil' or 'gas').
amount_usdYesProceeds amount in USD.
first_saleNoTrue if this is the first payment on a new well (120-day statutory rule).
payment_dateYesDate paid or today ('YYYY-MM-DD').
production_monthYesMonth of oil/gas sale ('YYYY-MM').

Output Schema

NameRequiredDescriptionDefault
linksYes
stateYes
creditYes
detailNo
dueDateYes
productNo
daysLateYes
amountUsdNo
firstSaleNo
paymentDateNo
interestOwedUsdYes
productionMonthNo
statuteCitationYes
statutoryRatePctYes
fedPrimaryCreditPctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses that the calculation is deterministic, states the applicable statutory cure periods (60-day oil / 90-day gas / 120-day first sale), and names the rate source (NY Fed primary credit rate + 2%). It does not cover rounding conventions, behavior for future payment dates, or how multiple late months accumulate, which keeps it short of a 5.

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?

Two sentences, front-loaded with the identity and statute, then the mechanical rule and return values. No filler, no restatement of the tool name, and every clause carries either scope, method, or output information.

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 pure computation tool with a full input schema and an output schema, the definition supplies statute, method, rate source, and rules — enough to call it correctly without guessing. The remaining gap is edge-case behavior (future dates, multi-period accrual, rounding) that a caller doing compliance math might reasonably want spelled out.

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 baseline is 3, but the description adds genuine meaning by tying the product and first_sale parameters to the 60/90/120-day statutory rules, which the schema only gestures at with '120-day statutory rule'. This tells the agent what those inputs actually change in the computation rather than restating field descriptions.

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?

Names a specific verb and resource — a deterministic Texas statutory late-royalty interest calculator — and pins the exact statutory basis (§91.402 / §91.403) plus the returned quantities (due date, days late, annual rate, interest in USD). No sibling tool does anything similar, so it is trivially distinguishable from county_stats, lease_production, and the rest.

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

Usage Guidelines3/5

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

Usage is only implied: the statutory deadlines and rate source signal this is for computing late royalty interest, but there is no explicit 'use when' statement, no statement of what the tool is not for, and no guidance on when an agent should reach for a plain arithmetic calculation instead. Acceptable but leaves the caller to infer the trigger conditions.

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.