Skip to main content
Glama

mechacut

file_encoding

Charset forensics that never guesses: BOM table (5), strict utf-8 validation, and 'undetermined' with the exact failing byte offset + hex when the bytes do not prove a codec. The honest sibling of /text/decode. 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_encoding"
  }
}

Input Schema

NameRequiredDescriptionDefault
blobYesbase64 of the bytes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does well on failure semantics — it promises 'undetermined' plus the exact failing byte offset and hex rather than a guess, and discloses the BOM table size (5) and strict utf-8 validation. It does not describe the successful return shape (charset name? confidence? aliases?) or any limits on input size, which matters for a tool with no output schema.

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?

Two dense sentences, front-loaded with the core promise ('never guesses') and followed by the mechanism and the sibling routing cue. The trailing 'Free' is a cost hint that earns its place, though the wording is slightly promotional.

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 the important behavioral contract: what it does on success (BOM detection, utf-8 validation) and precisely what it does on failure (undetermined plus byte offset and hex). The main gap is the exact shape of a successful result, which the absent output schema leaves to the description.

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 whose schema description ('base64 of the bytes') is already at full coverage. The description adds no constraint, format, or edge-case guidance for the blob (e.g., size limits or whether raw text is accepted), so the baseline 3 applies when the schema does the work.

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 names a specific resource and operation — charset forensics on a byte blob — and enumerates the mechanisms (BOM table, strict utf-8 validation, undetermined fallback). It is clearly distinguishable from a generic decoder, though the phrase 'charset forensics' is slightly indirect compared to plainly saying 'determine the character encoding of these bytes'.

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 line 'The honest sibling of /text/decode' implies when to prefer this over a decoding tool, and 'never guesses' hints at the when-not (don't use it if you want a forced guess). However, there is no explicit when-to-use/when-not statement and the referenced sibling is not in the provided tool list, so the routing guidance is only implied.

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.