Skip to main content
Glama

calculate_payback

How many months of profit an asking price takes to pay back, with the price as a multiple of annual profit and of annual revenue.

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": {
      "price": "<price>",
      "monthly_profit": "<monthly_profit>"
    },
    "name": "calculate_payback"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceYesAsking price in USD
monthly_profitYesAverage monthly profit in USD
monthly_revenueNoAverage monthly revenue in USD. Optional.

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?

With no annotations, the description carries the full burden, and it does disclose what the calculation produces: a payback period in months plus the price expressed as a multiple of annual profit and of annual revenue. That is meaningful return-value context for a tool with no output schema. It does not say what happens when the optional revenue is omitted, whether the revenue multiple simply disappears, or anything about rounding and edge cases such as zero or negative profit.

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?

A single front-loaded sentence with no filler; the core output and both derived ratios land immediately and nothing repeats the schema.

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 stateless three-parameter calculator with no annotations and no output schema, the description covers the computation and the shape of the result well. The remaining gaps - optional-parameter behavior and edge cases - are minor but real for an agent that must decide whether to pass revenue.

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 coverage is 100%, so all three parameters are already documented, which sets the baseline at 3. The description adds some meaning by implying monthly figures are annualized internally and that monthly_revenue feeds only the revenue multiple, but it does not state units handling, currency assumptions, or the effect of leaving revenue out.

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?

The description frames the specific question the tool answers - months of profit needed for an asking price to pay back - plus the two derived multiples. That is a precise verb-less but unambiguous statement of what is computed, and it is clearly distinct from the sibling tools (scoring, searching, listing). It stops short of naming the operation as a calculation on the caller's inputs, which keeps it out of the top band.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of other tools that also evaluate a deal (e.g. score_my_listing, find_verified_patterns), and no prerequisites such as needing both price and profit. The use case must be inferred entirely from the description of the computation.

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