Skip to main content
Glama

FINLY Mortgage Knowledge

Payment to income | יחס החזר להכנסה

calculate_pti_ratio
Read-onlyIdempotent

Payment to income | יחס החזר להכנסה. Divide the explicitly provided numerator by denominator. Both are integer agorot, not shekels (1 NIS = 100 agorot); use the same unit for both. The result is a plain ratio (0.6 means 60%). No regulatory caps, eligibility verdict, fallback rates or customer identifiers.

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": {
      "monthly_debt_agorot": "<monthly_debt_agorot>",
      "monthly_net_income_agorot": "<monthly_net_income_agorot>"
    },
    "name": "calculate_pti_ratio"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthly_debt_agorotYesInteger agorot, not shekels: 1 NIS = 100 agorot, so multiply a shekel amount by 100. Example: NIS 1,200,000 is 120000000.
monthly_net_income_agorotYesInteger agorot, not shekels: 1 NIS = 100 agorot, so multiply a shekel amount by 100. Example: NIS 1,200,000 is 120000000.

Output Schema

NameRequiredDescriptionDefault
toolYes
as_ofYes
resultNo
statusYes
receiptYes
evidenceNo
no_actionNo
request_idYes
assumptionsYes
limitationsYes
next_actionsYes
response_kindYes
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / monthly_debt_agorot / description
      Added value: +"Integer agorot, not shekels: 1 NIS = 100 agorot, so multiply a shekel amount by 100. Example: NIS 1,200,000 is 120000000."
    • addedInput schema / properties / monthly_net_income_agorot / description
      Added value: +"Integer agorot, not shekels: 1 NIS = 100 agorot, so multiply a shekel amount by 100. Example: NIS 1,200,000 is 120000000."
    • addedOutput schema / properties / result / properties / pti_ratio / description
      Added value: +"Plain ratio, not a percent: 0.6 means 60%."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description adds value beyond that by fixing units (integer agorot, same unit for both inputs) and by explicitly disclaiming verdicts, caps, fallbacks and identifier handling — a real behavioral boundary for a financial tool.

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?

Three short sentences, front-loaded with the operation, then units, then result semantics and scope limits. Nothing is redundant and no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return structure need not be spelled out, yet the description still clarifies that the result is a bare ratio rather than a percentage or verdict. Units, bounds and required fields are all covered between schema and description, leaving nothing an agent needs to call this correctly.

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% and both parameters already document agorot conversion with an example, so the baseline is 3. The description goes beyond the schema by insisting both inputs use the same unit and that they are supplied explicitly, which prevents a common unit-mismatch error the schema alone does not flag.

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?

States a specific verb and operation ('Divide the explicitly provided numerator by denominator') plus the exact output semantics ('plain ratio, 0.6 means 60%'). The closing negation list ('no regulatory caps, eligibility verdict, fallback rates or customer identifiers') carves out scope against sibling calculators and verdict-style tools.

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?

'Explicitly provided' implies the caller must supply values rather than have the tool fetch them, which hints at when this applies. However, there is no explicit statement of when to choose this over calculate_ltv_ratio or calculate_payment, and no prerequisites are given, so usage is only implied.

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