Skip to main content
Glama

Agent Data Tools: Developer utilities

mime

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. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON 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?

The description goes beyond the annotations by disclosing payment mechanics ($0.001 in USDC on Base via x402, per successful call) and by stating that the result includes an inline-display judgement — neither is captured in the annotation block. The annotations (readOnlyHint=false, idempotentHint=false) sit oddly against a deterministic name→type mapping, but the description makes no explicit claim that they contradict; the tension is noted rather than scored as a contradiction. Unknown-extension/error behavior is not described.

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?

Three short clauses ordered well: purpose plus example first, usage trigger second, cost last. Nothing is padding, though 'MIME (content) type' restates the concept already implied by the example and the usage sentence is fairly thin.

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 single-parameter lookup with no output schema, the description carries the necessary load: it says what comes back (type plus inline-display flag) and what the call costs. The only omission is failure behavior for unrecognized input, which is minor at this complexity.

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 100% (the 'file' property is documented as 'File name or extension'), so the baseline is 3. The report.pdf → application/pdf example modestly reinforces that full filenames and bare extensions are both accepted, but adds little beyond what the schema already 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?

The description resolves the cryptic tool name fully: it maps a file name or extension to a MIME type and gives a concrete worked example (report.pdf → application/pdf), plus the secondary 'inline display' output. It is unambiguous and easily separable from numeric/encoding siblings like base64_encode or hash. It lacks a distinct action verb, but the resource and result are stated precisely.

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?

It explicitly states a usage context: 'Use when uploading or serving files.' That is a clear, actionable trigger, not merely implied. It stops short of naming when NOT to use it or pointing at an alternative sibling, so it falls just below the top band.

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