Skip to main content
Glama

SBA Express Loans

Invoice factoring cost and APR

calculate_invoice_factoring_cost
Read-onlyIdempotent

Cash up front, fees, the reserve paid back and the APR on the cash received when an invoice is factored, from the advance rate, the fee schedule and the days until the customer pays.

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": {
      "invoice": "<invoice>",
      "advance": "<advance>",
      "fee": "<fee>",
      "collect": "<collect>"
    },
    "name": "calculate_invoice_factoring_cost"
  }
}

Input Schema

NameRequiredDescriptionDefault
feeYesFactor fee for the first period, in percent of the invoice, e.g. 2
addedNoAdded fee per extra block of days, in percent of the invoice (optional)
blockNoDays in each extra block. Default 10
firstNoDays the first fee covers. Default 30
otherNoOther fees in dollars (optional)
advanceYesAdvance rate in percent of the invoice, e.g. 80
collectYesDays until the customer pays, 1 to 730
invoiceYesInvoice amount in dollars

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a safe, read-only, idempotent, closed-world calculation. The description adds useful behavioral context by naming the computed outputs (cash up front, fees, reserve paid back, APR) and the input dimensions that drive them, though it does not describe output format or rounding.

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 definition is a single dense sentence that front-loads the outputs before listing the inputs. It is efficient, though slightly awkward in phrasing, and contains no 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?

For a calculator with no output schema, the description identifies the key output components and the input drivers. It could be stronger by clarifying output units or expected result shape, but annotations already cover safety and idempotency.

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 eight parameters are fully documented in the schema. The description references advance rate, fee schedule, and days until customer payment, adding little beyond the schema's own parameter explanations.

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 names a specific calculation and resource: invoice factoring outputs (cash up front, fees, reserve, APR) based on factoring inputs. It is immediately distinguishable from sibling loan, MCA, and lease calculators because it explicitly frames the computation around a factored invoice.

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 implied by the invoice-factoring context and the listed inputs, but the description never states when to choose this tool over alternatives or any exclusions. No explicit when-to-use guidance is provided.

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