API & MCP
Everything a person can do on Sharecrate Storage Report, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://sharecratestoragereport.usefulweb.site/api/v1/calculate– run Sharecrate Storage ReportGET https://sharecratestoragereport.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Sharecrate Storage Report
Reads a file listing — a CSV with path and size (plus modified date, owner, SHA-256, older-version bytes or trash flag when you have them) or the output of du -ab / find -printf — and shows the space per file type, top folder and person, the largest files, duplicate copies, large files nobody touched for a long time, and an ordered clean-up plan with the space each step frees against your quota.
| Field | Type | Default | Description |
|---|---|---|---|
listing | textarea | "path,bytes,modified,owner,sha256\nProjects/Launch/video-final.mp4,734003200,202 | File listing. CSV/TSV with a header row containing path and bytes (sizes like 12K or 3.4 MB work too), or lines of “size path” from du -ab or find -printf "%s\t%p\n". |
quotaMB | number | 2048 | Quota in MB (0 = none) |
targetPercent | number | 90 | Aim to use at most (% of the quota) |
staleDays | number | 365 | Untouched for at least (days) |
bigFileMB | number | 10 | Large file from (MB) |
asOf | text | — | Today’s date for ages (YYYY-MM-DD, empty = newest date in the listing) |
dedupe | boolean | false | Identical files are stored once (drives that deduplicate) |
Example request
Team drive over its 2 GB quota
curl -X POST https://sharecratestoragereport.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"listing":"path,bytes,modified,owner,sha256\nProjects/Launch/video-final.mp4,734003200,2026-10-02,Ana,\nProjects/Launch/video-final (copy).mp4,734003200,2026-10-02,Ben,\nProjects/Launch/press-kit.zip,52428800,2026-11-20,Ana,\nPhotos/2024/IMG_0001.jpg,5242880,2024-06-01,Cleo,\nPhotos/2024/IMG_0002.jpg,5767168,2024-06-01,Cleo,\nPhotos/2024/raw-backup.zip,1288490188,2024-06-03,Cleo,\nHandbook/Onboarding.pdf,2202009,2026-09-15,Ana,\nHandbook/Onboarding.md,18432,2026-11-28,Ben,\nFinance/2025-budget.xlsx,412000,2025-12-12,Ana,\nMusic/demo-mix.wav,98566144,2025-03-01,Ben,","quotaMB":2048,"targetPercent":90,"staleDays":365,"bigFileMB":10,"asOf":"2026-12-01"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://sharecratestoragereport.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
sharecrate_storage_report - Local stdio connector:
node src/mcp-stdio.ts --tool=sharecrate-storage-report
{
"mcpServers": {
"sharecrate-storage-report": { "type": "http", "url": "https://sharecratestoragereport.usefulweb.site/mcp" }
}
}