| name | evernote-cost-tuning |
| description | Optimize Evernote integration costs and resource usage.
Use when managing API quotas, reducing storage usage,
or optimizing upload limits.
Trigger with phrases like "evernote cost", "evernote quota",
"evernote limits", "evernote upload".
|
| allowed-tools | Read, Write, Edit, Grep |
| version | 1.13.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","evernote","api","cost-optimization"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Evernote Cost Tuning
Overview
Optimize resource usage and manage costs in Evernote integrations, focusing on monthly upload quotas, storage efficiency, image compression, and account limit monitoring.
Prerequisites
- Understanding of Evernote account tiers (Basic: 60MB/mo, Premium: 10GB/mo, Business: 20GB/mo)
- Access to user quota information via
user.accounting
- Monitoring infrastructure for alerts
Instructions
Step 1: Quota Monitoring
Query userStore.getUser() to access user.accounting which contains uploadLimit, uploaded, and uploadLimitEnd. Calculate remaining quota and percentage used.
async function getQuotaStatus(userStore) {
const user = await userStore.getUser();
const { uploadLimit, uploaded, uploadLimitEnd } = user.accounting;
return {
totalMB: Math.round(uploadLimit / 1024 / 1024),
usedMB: Math.round(uploaded / 1024 / 1024),
remainingMB: Math.round((uploadLimit - uploaded) / 1024 / 1024),
percentUsed: Math.round((uploaded / uploadLimit) * 100),
resetsAt: new Date(uploadLimitEnd)
};
}
Step 2: Resource Optimization
Compress images before attaching to notes. Resize large images to a maximum dimension (e.g., 1920px). Convert PNG screenshots to JPEG for smaller file sizes. Skip attaching files that exceed the single-note size limit (25MB for Basic, 200MB for Premium).