Skip to main content
Glama

Lookup Kit

mime_type

Read-only

MIME type lookup, content type for a file extension. The MIME type for a file name or extension (report.pdf -> application/pdf), or the usual extension for a MIME type (image/webp -> webp). Price: $0.001 per call (x402, USDC on Base).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mime_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description doesn't need to re-establish safety. It adds genuinely new context the annotations lack: a per-call price of $0.001 via x402/USDC on Base, which matters for agent budgeting. It stops short of describing behavior for unknown extensions or invalid MIME types.

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, followed by two clarifying examples and a pricing note; every sentence carries information. The opening fragment ('MIME type lookup, content type for a file extension') mildly restates itself before the useful examples arrive.

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

Completeness4/5

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

With no output schema and two undocumented, optional parameters, the description supplies the bidirectional contract and cost model an agent needs. Remaining gaps — unknown-input behavior and parameter precedence — are modest for a simple static lookup.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry the load. It does convey the semantic split — 'file' takes a file name or extension, 'type' takes a MIME type — but never names the parameters explicitly or states precedence when both are supplied.

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?

States a specific resource (MIME type / content type) and both directions of the lookup, with concrete arrow examples (report.pdf -> application/pdf, image/webp -> webp). An agent knows exactly what comes back without opening the schema.

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

Usage Guidelines3/5

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

The two examples imply when each direction applies, but the description never says to supply exactly one of 'file' or 'type', nor what happens if both or neither are given. Usage is inferable rather than stated.

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