{"uid":"cap_wmyN1FKo6xMNtMpyNtqsE","slug":"agent-rest-stop-feeadd-3c8058a9","name":"Agent Rest Stop – FeeAdd","description":"Adds a fee in basis points, to the cent.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/FeeAdd?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fee_bps":{"type":"string"},"subtotal_usd":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_K8MzKU5VB3kwF7OrMJ5FO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates a fee amount in USD by applying a basis-point rate to a subtotal, rounding to the nearest cent.","exampleAgentPrompt":"Calculate the fee for a $150.00 subtotal with a 75 basis point fee — I need the dollar amount to the cent so I can show it on the invoice.","exampleUseCases":[{"title":"Checkout fee display for marketplace","prompt":"The cart subtotal is $320.00 and our platform charges 50 basis points — what's the fee in dollars so I can show it as a line item before the user pays?"},{"title":"Invoice line-item fee for SaaS billing","prompt":"I'm generating a monthly invoice for a client with a $1,250.00 subtotal. We apply a 30 bps processing fee — calculate the exact fee amount to the cent so I can add it to the invoice."},{"title":"Pre-trade fee estimate for DeFi agent","prompt":"Before I execute this swap, figure out what 25 basis points on a $500 subtotal comes out to in dollars so the user can confirm the fee."}],"resultDescription":"Returns the computed fee amount in USD (to the cent) derived from applying the given basis-point rate to the provided subtotal. The response allows an agent to display, log, or incorporate the fee into a total charge without performing the arithmetic locally.","failureModes":["Non-numeric or missing fee_bps causes a validation error","Non-numeric or missing subtotal_usd causes a validation error","Negative or zero values may produce unexpected results","Network or worker timeout if the edge function is unavailable"],"whenToPreferThis":"Use this endpoint when you need a server-side, authoritative basis-point fee calculation rounded to the cent — especially within an agent pipeline that handles financial amounts and cannot rely on floating-point arithmetic in the client. Prefer it over local computation when you want a consistent, auditable fee figure or when integrating with the broader Agent Gas Station toolchain for payment flows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:42.450Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-feeadd-3c8058a9"}