Skip to main content
Glama

Agent Data Tools: Utilities

MIME type for a file: find the MIME content type for a file name or extension

mime
Read-only

MIME (content) type for a file name or extension, e.g. report.pdf → application/pdf, and whether browsers usually display it inline. Use when uploading or serving files. Example: file=report.xlsx. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "file": "<file>"
    },
    "name": "mime"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesFile name or extension

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 destructiveHint=false, so 'reads or computes only and changes nothing' is largely redundant. However, the description adds real context not in the annotations: per-call pricing ($0.002/call, first 10 free, failed calls free) and the non-idempotent cost model ('each call is charged, so repeats are not free'), which is consistent with idempotentHint=false rather than contradicting it.

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?

Purpose is front-loaded in the first clause, followed by usage, an example, and billing terms — a logical order. The pricing sentence is dense but every element (price, free tier, failed-call policy, repeat-call cost) carries information an agent or caller needs.

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?

For a one-parameter lookup with no output schema, the description covers both the primary return (the MIME type) and a secondary return (inline-display behavior), plus cost. Only the exact response shape or error behavior for invalid filenames is left unspecified, which is minor.

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?

With a single parameter at 100% schema description coverage, the schema already says 'File name or extension.' The description's example (file=report.xlsx) illustrates the format but adds little meaning beyond what the schema states.

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

Purpose4/5

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

States a specific resource and computation: 'MIME (content) type for a file name or extension,' reinforced by a concrete mapping (report.pdf → application/pdf) and a secondary output ('whether browsers usually display it inline'). The purpose is unmistakable, though it never positions itself against any sibling tool.

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?

'Use when uploading or serving files' gives a clear triggering context, and 'Example: file=report.xlsx' shows the call shape. There are no when-not conditions or named alternatives, but the domain is narrow enough that exclusions are barely needed.

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