{"uid":"cap_1amFIb8lJlcqs6rpZU-77","slug":"agenttools-roi-calculator-79e03c13","name":"AgentTools ROI Calculator","description":"Calculate return on investment: profit (or loss) and the percentage return relative to the initial amount invested. Use this when an agent needs to return on investment as a percentage.","url":"https://agentstoolshub.com/api/v1/finance/roi-calculator?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["initial","final"],"properties":{"final":{"type":"number","description":"Final value"},"initial":{"type":"number","description":"Amount invested"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qms66QgYWRqoDPy_ahEmJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates return on investment (ROI) as profit/loss and percentage return given an initial invested amount and a final value.","exampleAgentPrompt":"I invested $5,000 and it's now worth $6,750 — can you calculate my ROI and tell me the profit and percentage return?","exampleUseCases":[{"title":"Evaluating stock investment performance","prompt":"I bought shares for $12,000 and they're now worth $15,400. What's my ROI — how much did I make and what's the percentage return?"},{"title":"Checking real estate deal profitability","prompt":"I purchased a property for $250,000 and sold it for $310,000. Can you calculate my return on investment and the profit I made?"},{"title":"Comparing startup investment outcome","prompt":"I put $50,000 into a startup and got back $38,000 when they folded. What's my ROI — how much did I lose and what percentage did I lose on the investment?"}],"resultDescription":"Returns the profit or loss (final value minus initial investment) and the ROI as a percentage ((final - initial) / initial × 100), indicating whether the investment gained or lost value.","failureModes":["Missing 'initial' or 'final' query parameters returns a validation error","Non-numeric values for initial or final cause a parse/type error","Initial value of zero causes a division-by-zero error","Negative initial investment may produce unexpected percentage results"],"whenToPreferThis":"Use this endpoint when you need a quick, reliable ROI computation from just an initial and final value — ideal for agents handling finance queries without needing to implement the math themselves. Prefer this over general-purpose computation endpoints when the user explicitly asks about investment return, profit/loss percentage, or portfolio performance in percentage terms.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:50:47.510Z","isFirstParty":false,"canonicalSlug":"agenttools-roi-calculator-79e03c13"}