{"uid":"cap_v6Bnh2SJ1Nr8S7wHZaCOx","slug":"agentshield-live-mime-type-lookup-3cb5c9b5","name":"agentshield.live MIME Type Lookup","description":"Call when an agent has a file extension and needs the Apache mime.types media type. Unknown extensions return 404. Not a filename lookup and not a content sniff.","url":"https://agentshield.live/mime?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["ext"],"properties":{"ext":{"type":"string","description":"File extension, such as html or .pdf."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"known":true,"extension":"html","media_type":"text/html"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iiTSlwKtYAU_mmI2RD12O","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the Apache mime.types media type string for a given file extension","exampleAgentPrompt":"What is the Apache MIME type for the .pdf extension?","exampleUseCases":[{"title":"Setting HTTP Content-Type header","prompt":"I'm serving a .wasm file from my server — what MIME type should I set in the Content-Type header?"},{"title":"Validating file upload media type","prompt":"A user just uploaded a file with a .svg extension. What is the correct media type for that extension so I can validate it?"},{"title":"Building a file metadata record","prompt":"I need to store the official media type for a .docx file in my database — what does Apache mime.types say it is?"}],"resultDescription":"Returns the canonical Apache mime.types media type string (e.g. 'application/pdf', 'text/html') for the given file extension. Returns a 404 response if the extension is not recognized in the Apache mime.types database.","failureModes":["Unknown or unregistered extension returns 404","Extension with a leading dot must be passed correctly (e.g. '.pdf' or 'pdf' — check schema for accepted format)","Proprietary or very new extensions may not be present in the Apache mime.types list","Passing a full filename instead of just the extension will not work"],"whenToPreferThis":"Use this endpoint when you have a bare file extension (e.g. 'pdf', 'html', 'mp4') and need its authoritative Apache mime.types media type string — particularly when you need a deterministic, standards-based lookup rather than content sniffing or heuristic guessing. Prefer this over general-purpose tools when you need the specific Apache mime.types mapping for HTTP Content-Type headers, file metadata, or format validation pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:05:46.341Z","isFirstParty":false,"canonicalSlug":"agentshield-live-mime-type-lookup-3cb5c9b5"}