Skip to main content
Glama

showrealcost

Cost and APR of a payday or other fee-based short-term loan

payday_loan_cost
Read-onlyIdempotent

For a payday loan, title loan, pawn loan, cash-advance app or any loan priced by a fee for a number of days: the fee in dollars, the APR, and what renewing (rolling over) costs. Use for "what is the APR on a $500 payday loan at $15 per $100" and "what does rolling it over cost".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesAmount borrowed, in dollars
flat_feeNoAny flat fee, tip or instant-transfer fee for one term, in dollars
renewalsNoTimes the loan is renewed or rolled over by paying only the fee
term_daysYesDays until the loan is due
fee_per_100NoFee per $100 borrowed for one term, in dollars (e.g. 15)

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?

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description usefully adds what is actually computed and returned (fee, APR, renewal cost), which matters because there is no output schema. It does not describe edge-case behavior such as what happens with zero renewals or missing fee_per_100.

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?

The purpose and the outputs are front-loaded in the first sentence, and the second sentence supplies concrete usage triggers. The opening enumeration of loan types is a bit list-heavy, but no sentence is filler.

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 naming return values, and it does name three (fee, APR, renewal cost). All five parameters are fully described in the schema. What remains missing is any note on result units or edge cases, which is a minor gap for a pure calculator.

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 is already documented in the schema, and the baseline is 3. The description reinforces the fee-per-$100 and rollover semantics through its examples but adds no format or boundary detail beyond what the schema states.

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?

The description states a specific computation and its outputs: 'the fee in dollars, the APR, and what renewing (rolling over) costs'. It also scopes the applicable instrument class ('payday loan, title loan, pawn loan, cash-advance app or any loan priced by a fee for a number of days'), which separates it from amortized-loan siblings like loan_payment and average_loan_rates without needing their schemas.

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 description gives a clear inclusion condition ('any loan priced by a fee for a number of days') and two concrete triggering questions about APR and rollover cost. It stops short of naming an alternative or stating when NOT to use it, so an agent must infer the boundary against loan_payment on its own.

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