- Home
- Skills
- APIs & Backend
- API Quota & Margin Replay
More screenshots
Works with the AI Agents you already use
API Quota & Margin Replay
Replay recorded API demand through proposed shared minute and day ceilings and a per-customer cap. See which groups would be blocked and what modeled contribution remains.
$5
API Quota & Margin Replay
Example session with this skill installed
Replay the bundled two-day synthetic usage fixture. Apply Copper pool limits of 5 per UTC minute and 9 per UTC day, Jade pool limits of 4 and 7, and a 7-request customer cap across both pools. Show blocked group reasons and modeled contribution. Compare with a second run where each ceiling is 100.
- Read your context and instructions
- Compiled the api quota
Replay decision
Cap breach. The synthetic capture contains 28 requests in 10 groups. The proposed pre-dispatch gate admitted 21 requests in six groups and blocked seven requests in four groups.
| Source group | Requested | Modeled block reason |
|---|---|---|
| 2 | 3 | Copper pool minute, with only 2 remaining |
| 5 | 2 | Copper pool minute and day, with 1 and 0 remaining |
| 6 | 1 | Customer period cap across pools |
| 10 | 1 | Customer period cap after the provider day reset |
The reason counts overlap at group 5. With USD 15.00 declared gross and a 70% seller share, seller revenue is USD 10.50. Accepted costs of USD 5.90 plus USD 2.50 fixed expense leave
USD 2.10 modeled contribution. The USD 1.95 recorded cost on blocked groups is excluded under the pre-dispatch assumption.
With all ceilings set to 100, all 28 requests fit and modeled contribution becomes
USD 0.15 for the same period. These are fixture scenarios. Compare the blocked customer workload and costs before changing a production policy.
Connects securely to your tools. The creator never sees your data.
About this skill
Test a quota policy against recorded demand
Replay a sanitized local capture in timestamp order. Apply shared provider-pool limits per UTC clock minute and UTC day, plus a customer cap across pools for the declared period. Fix the policy and run the same capture again to see which groups would now fit.
See which ceiling blocked each group
Get accepted and blocked totals, peak headroom, and the first 50 blocked groups with input row numbers and applicable ceiling reasons. Equal timestamps follow input order. Each group is evaluated as one dispatch. An explicit partial capture stays visible in the decision.
Check the contribution for that period
Apply your seller share to declared gross subscription revenue, then subtract modeled accepted variable cost and fixed expense. The pre-dispatch model shows recorded costs for blocked groups separately. Includes a standalone Python tool, an input-format guide, and a reproducible two-day synthetic example. Bring a prepared local JSON scenario. It requires no account connection or API key.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.
Fixed UTC minute and day windows plus one customer-period cap. The replay treats groups as atomic and assumes blocks occur before provider dispatch. Capture completeness is buyer-attested. It does not forecast demand, reproduce rolling or soft limits, or reconcile provider invoices.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.9+
Prepare a sanitized local JSON scenario with usage groups, proposed caps, and revenue and costs for the same UTC period. The included synthetic example runs locally.
Permissions
Reads the selected local JSON scenario and returns JSON to the terminal. No provider connection, API credentials, or outbound requests.