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 Report
  • GET https://sharecratestoragereport.usefulweb.site/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

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.

Inputs of Sharecrate Storage Report
FieldTypeDefaultDescription
listingtextarea"path,bytes,modified,owner,sha256\nProjects/Launch/video-final.mp4,734003200,202File 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".
quotaMBnumber2048Quota in MB (0 = none)
targetPercentnumber90Aim to use at most (% of the quota)
staleDaysnumber365Untouched for at least (days)
bigFileMBnumber10Large file from (MB)
asOftext—Today’s date for ages (YYYY-MM-DD, empty = newest date in the listing)
dedupebooleanfalseIdentical 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" }
  }
}