Skip to main content
Glama

mechacut

file_identify

What this blob REALLY is: closed magic-bytes table (22 signatures: png/zip/gz/pdf/mp3/sqlite/elf...), longest-match wins, printable-text heuristic gated at 80%, and an honest 'unknown' with the first 16 bytes hex when nothing matches. The name lies; the header does 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": {
      "blob": "<blob>"
    },
    "name": "file_identify"
  }
}

Input Schema

NameRequiredDescriptionDefault
blobYesbase64 of the bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 and does so well: it discloses the closed 22-entry signature table, longest-match resolution, an 80%-gated printable-text heuristic, and an explicit 'unknown' fallback that returns the first 16 bytes in hex. It does not describe the successful return shape (type label, confidence, matched offset), which is the main remaining gap.

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?

One compact sentence that front-loads the core claim, then lists the mechanism, tie-breaking rule, heuristic threshold, and fallback in descending order of importance. Every clause carries information; nothing is padding.

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, no-output-schema tool, the description covers mechanism, ambiguity resolution, failure behavior, and cost. What it omits is the success-case return format, which matters slightly more here because there is no output schema to fall back on.

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?

There is a single parameter and the schema already documents it at 100% coverage ('base64 of the bytes'), so the baseline is 3. The description adds nothing about the blob parameter — no size limits, no partial-header tolerance, no note on whether the base64 must be padded.

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 makes clear this identifies what a blob of bytes actually is by reading magic bytes, with the concrete set (png/zip/gz/pdf/mp3/sqlite/elf) and the 22-signature table. It implicitly distinguishes itself from name/extension-based guessing, though it never states a clean verb like 'identify' and does not name sibling file_encoding to contrast with.

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 name lies; the header does not' tells the agent when this is more trustworthy than filename-based inference, and 'Free' signals no cost barrier. However, there is no explicit when-to-use/when-not wording and no routing to alternatives such as file_encoding, so usage has to be inferred from the context of an opaque blob.

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.