71trust / 100

Dev Mime Types

by AgentTools in Onchain & crypto

x402 APIFailing, checked 2 h ago

Look up MIME content types by type substring or file extension, or list a category — covering text, application, image, audio, video, font and multipart types used in web APIs. Use this when an agent needs to content-Type lookup by type or file extension.

GET https://agenttools-hub.vercel.app/api/v1/dev/mime-types

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
66.7%
Response time
143 ms typical, 143 ms slowest 5%
Last check
2 h ago: Expected HTTP 402, got 308
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/dev/mime-types?query=.png"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fdev%2Fmime-types
const res = await pay("https://agenttools-hub.vercel.app/api/v1/dev/mime-types?query=.png");
console.log(await res.json());

Example input

{
  "query": ".png"
}

Example output

{
  "result": {
    "answer": "image/png",
    "answerLabel": "Best match",
    "details": [
      {
        "label": "Matches",
        "value": "1"
      }
    ],
    "table": {
      "columns": [
        "MIME type",
        "Extensions",
        "Description"
      ],
      "rows": [
        [
          "image/png",
          "png",
          "Portable Network Graphics, lossless with alpha"
        ]
      ]
    },
    "value": null
  },
  "tool": "mime-types"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 30830813 ms-
5 h agoPassed402333 ms$0.002
10 h agoPassed402143 ms$0.002