Skip to main content
Glama

util_mime

Read-only

MIME type lookup — Offline MIME / file-type lookup in both directions: extension, filename or MIME type -> canonical MIME, aliases, sibling extensions, category, charset + exact Content-Type header, compressible / already-compressed, and upload-safety advice (XSS risk if served inline for HTML/SVG/XML, executable or macro-enabled types to block, double extensions like .pdf.exe, right-to-left override spoofing). Param: q= (pdf, report.docx, image/svg+xml). Price: $0.001 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "q": "<q>"
    },
    "name": "util_mime"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesinvoice.pdf.exe

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations give only readOnly/destructive/openWorld hints, while the description adds substantial behavioral context: offline operation, the exact output fields returned, compressibility, and security advice (XSS-on-inline-serve, executable/macro blocklists, double extensions, RTL override spoofing). It also discloses a per-call cost ($0.001 USDC via x402), which is meaningful behavior an agent should know; only error handling for unknown inputs is unstated. Note the 'offline' claim versus openWorldHint=true is resolvable by the x402 payment path, so it is not a contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose and organized as a dense but scannable enumeration of outputs and security checks. The long parenthetical list and the appended price note compress a lot into one sentence, costing some readability but no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and a single required parameter, the description carries the return-shape burden itself and does so thoroughly (canonical MIME, aliases, siblings, category, charset, header, safety flags). Nothing an agent needs to call and interpret this tool correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns more by showing the accepted input variants (bare extension, full filename, MIME string) across both lookup directions, which the schema's single example ('invoice.pdf.exe') does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb+resource ("MIME type lookup") and immediately specifies bidirectional resolution (extension/filename/MIME type -> canonical MIME plus aliases, siblings, category, charset, Content-Type). No sibling tool covers MIME types, and the enumerated outputs make the tool's scope unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clarifies the two directions of lookup and gives concrete input forms (pdf, report.docx, image/svg+xml, invoice.pdf.exe), so an agent knows what to pass. It stops short of stating when-not-to-use or naming any alternative, but no sibling overlaps this function.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources