Skip to main content
Glama

mime_lookup

Map a file extension such as webp or png, or a MIME type string, to curated Content-Type metadata when setting headers, validating uploads, or choosing a media type.

Use when:

  • What MIME type should I use for a .webp file?

  • Look up metadata for Content-Type application/json

  • Resolve a file extension to the correct MIME type for an upload or response header

Do not use when:

  • Sniff or detect MIME type from raw file bytes

  • Encode or decode Base64 file payloads (use base64_encode / base64_decode)

  • Look up DNS top-level domain metadata (use tld_lookup)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It clearly implies a read-only mapping operation ('Map... to curated metadata') and limits its scope by excluding byte sniffing, encoding, and DNS lookups. However, it does not mention error handling for unknown extensions or case sensitivity, which prevents a perfect score.

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

Conciseness5/5

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

The description is efficiently structured: a concise overview sentence, followed by bullet-style 'Use when' examples and a clear 'Do not use when' list. Every sentence contributes directly to decision-making, with no redundancies or filler. The front-loaded purpose sentence ensures immediate clarity.

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?

For a low-complexity tool with one parameter, no annotations, and no output schema, the description covers all necessary decision points: what it does, when to use it, when not to use it, and what the query parameter accepts. The exclusions and alternatives provide a complete context for selection, making it sufficient for an AI agent to invoke correctly.

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?

The input schema only defines 'query' as a non-empty string with zero description. The description compensates by specifying that the query accepts either a file extension (e.g., 'webp', 'png') or a MIME type string (e.g., 'application/json'), with concrete examples. This adds meaning beyond the schema, though it doesn't detail formatting edge cases like leading dots or case handling.

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?

The first sentence clearly defines the tool: 'Map a file extension such as webp or png, or a MIME type string, to curated Content-Type metadata.' This is a specific verb+resource action that distinguishes it from sibling lookups like tld_lookup or currency_lookup. The description also states concrete use cases (setting headers, validating uploads, choosing media types), making the purpose unmistakable.

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

Usage Guidelines5/5

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

The description provides an explicit 'Use when:' section with three example queries and a 'Do not use when:' section with three exclusions, naming alternative tools (base64_encode/decode, tld_lookup). This gives the agent clear decision criteria for when to invoke this tool versus siblings, exceeding the minimum requirement.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool targets a distinct resource and action, with clear use cases and explicit 'Do not use when' guidance preventing confusion. For example, base64_decode and url_decode handle different encoding schemes, while timestamp_convert and timezone_convert address separate time operations.

Naming Consistency5/5

All tool names follow a consistent lowercase snake_case verb_noun pattern (e.g., base64_decode, country_lookup, uuid_validate). While verbs vary (decode, encode, lookup, validate, convert), the naming format is uniform and predictable.

Tool Count4/5

The 18-tool set is slightly above the typical 3-15 range, but the breadth is justified by the server's purpose as a general-purpose utility toolkit. Each tool earns its place, and the count does not feel overwhelming or redundant.

Completeness4/5

The toolkit covers encoding/decoding, validation, lookups, and conversions across common developer needs. Minor gaps exist, such as no UUID generation tool to complement uuid_validate, and no HTML entity encoding/decoding, but these are not critical omissions for the stated utility scope.