mime_from_extension

MIME Type from File Extension — Look up a file extension (or filename) in a curated IANA media-type table and return its MIME type and top-level category.

SERVERGateway SOURCEhttps://wingmanprotocol.com/mcp
Low RISK CLASS
Category Read
Parameters 20 required
Recommended Allowedsee the rule below
Registry record Grade F, identity unverified Pull the record →

This record as markdown: /tools/com-wingmanprotocol-agent-gateway/mime-from-extension.md

What mime_from_extension does on Gateway

AI agents call mime_from_extension to retrieve information from Gateway without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

ParameterTypeRequiredDescription
filename string Filename to extract the extension from (e.g. 'report.pdf')
extension string Extension directly, with or without a leading dot (e.g. 'pdf' or '.pdf')

Parameters from the server's own tool schema.

Why mime_from_extension is rated Low

The tool performs a read-only lookup operation against a static IANA media-type table. There are no side effects, no data modification, no code execution, and no destructive operations. It simply returns information based on input. The severity is low because even if misused, the tool can only return publicly available MIME type information with no security or operational risk.

From the tool's definition Tool description states 'Look up a file extension (or filename) in a curated IANA media-type table and return its MIME type and top-level category.' This is a pure lookup/query operation that retrieves data without modifying anything.

Risk signalsAccepts file system path (filename)

Questions about mime_from_extension

What does the mime_from_extension tool do? +

MIME Type from File Extension — Look up a file extension (or filename) in a curated IANA media-type table and return its MIME type and top-level category. It is categorised as a Read tool in the Gateway MCP Server, which means it retrieves data without modifying state.

What parameters does mime_from_extension accept? +

mime_from_extension accepts 2 parameters: filename, extension. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on mime_from_extension? +

Register the Gateway MCP server in PolicyLayer and add a rule for mime_from_extension: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Gateway. Nothing to install.

What risk level is mime_from_extension? +

mime_from_extension is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit mime_from_extension? +

Yes. Add a rate_limit block to the mime_from_extension rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block mime_from_extension completely? +

Set action: deny in the PolicyLayer policy for mime_from_extension. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides mime_from_extension? +

mime_from_extension is provided by the Gateway MCP server (https://wingmanprotocol.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

More on Gateway, and thousands of servers like it.

// THE MCP REGISTRY

PolicyLayer tracks 44,603 MCP servers and 515,000+ tools.

Every server has a live record: who publishes it, whether it answers without auth, its risk grade, every tool classified, the recommended policy. This page is one line of Gateway's. Pull the full record:

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.