Skip to main content
Glama

Calculate UK student loan repayment

calculate_uk_student_loan_repayment
Read-onlyIdempotent

UK student loan Plan 2 or Plan 5: yearly repayments, interest and whether the balance is repaid or written off. Financial planning check from official scheme rules, same code as tools.oiyo.net. General information only: not financial, tax or investment advice, and no product is recommended.

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": {
      "plan": "<plan>",
      "balance": "<balance>",
      "salary": "<salary>"
    },
    "name": "calculate_uk_student_loan_repayment"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoRPI or base rate % used for interest
planYesLoan plan
growthNoYearly pay growth %
salaryYesSalary now (GBP)
balanceYesBalance now (GBP)
thresholdGrowthNoYearly threshold growth %

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the bar is lower. The description adds genuine context beyond them: the source of the logic (official scheme rules) and the result categories (repayment vs write-off). It does not disclose any modeling assumptions, projection horizon, or rounding conventions, which matters for a simulation tool.

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

Conciseness3/5

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

The purpose is front-loaded in the first sentence, which is dense and useful. Roughly half the remaining text is non-functional for tool selection: the 'same code as tools.oiyo.net' provenance clause and a generic not-financial-advice disclaimer. The disclaimer has some value in shaping agent output, but the attribution line does not earn its place.

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 telling the agent what comes back, and it does at a useful level (yearly repayments, interest, repayment-vs-write-off outcome). Combined with a fully documented input schema and clear read-only annotations, an agent has enough to call this correctly. A short note on the projection horizon would close the remaining gap.

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 all six parameters (plan, balance, salary, and the optional base/growth/thresholdGrowth rates) are already documented in the schema. The description only echoes the plan restriction (Plan 2/Plan 5) and adds no meaning about how the rate/growth parameters affect the projection. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

Names a specific verb+resource (UK student loan repayment) and scopes it to Plan 2 or Plan 5, which separates it from calculate_kr_student_loan_repayment and other loan siblings. It also previews the computed outputs (yearly repayments, interest, repaid-vs-written-off). It stops short of explicitly naming a sibling to prefer for non-UK schemes, so it is clear but not fully differentiating.

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?

The phrase 'Financial planning check from official scheme rules' implies a planning/what-if use case, which is more than nothing. However, there is no explicit when-to-use/when-not, no stated prerequisites (e.g. needs current balance and salary), and no pointer to an alternative tool for different plans or countries. Usage must be inferred.

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.