Look up a file extension (or filename) in a curated IANA media-type table and return its MIME type and top-level category.
Free tier eligible — 500 calls/month with a free key from /pricing; x402 pay-per-call above quota.
| Parameter | Type | Required | Description |
|---|---|---|---|
filename | string | optional | Filename to extract the extension from (e.g. 'report.pdf') |
extension | string | optional | Extension directly, with or without a leading dot (e.g. 'pdf' or '.pdf') |
curl -s https://wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "mime_from_extension", "arguments": {"filename": "example", "extension": "example"}}}'curl -s https://wingmanprotocol.com/tools/mime_from_extension \
-H 'Content-Type: application/json' \
-d '{"filename": "example", "extension": "example"}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/mime_from_extension from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).