Skip to main content
Glama

MoneyTools x402 agent toolkit

MIME / content-type sniff

mime_sniff
Read-onlyIdempotent

Guess Content-Type from a filename extension and/or magic bytes (base64 snippet) or text peek. Returns confidence and which signal won. No file stored. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]

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_sniff"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNooptional text body to peek
filenameNooptional filename with extension
bytesBase64Nooptional base64 of the first bytes (≤64 KB decoded)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description adds genuinely new behavior: no file is stored, the result includes a confidence value and the winning signal. It omits other behavioral traits an agent might want (what happens when signals disagree, how confidence is scaled), which keeps it at adequate rather than rich.

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?

The core capability sentence comes first and is dense but readable. The pricing/payment tail is longer than needed for tool selection, though it does carry real operational information (rate limit and payment mechanism).

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?

An output schema exists, so return-value detail is correctly omitted. The description covers optional inputs, that nothing is persisted, and the cost model — enough for an agent to call it correctly. Minor gap: no note on precedence when both filename and bytes are supplied.

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 coverage is 100%, so each parameter is already documented including the 64 KB decoded limit. The description adds only the notion that signals can be supplied jointly and are optional; it does not clarify precedence or error cases when inputs conflict. Baseline 3 is appropriate.

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 verb ('Guess') and resource (Content-Type) plus the inputs it draws on (filename extension, magic bytes, text peek), which is more precise than the title alone. It doesn't explicitly differentiate itself from neighbors like content_hash or a2a_card_validate, but the resource is distinct enough that confusion is unlikely.

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 'and/or' phrasing implies all three signals are optional and can be combined, which is useful usage context. However, there is no explicit when-to-use vs when-not guidance, no statement about which signal takes precedence, and no named alternative for related tasks such as hashing.

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