Skip to main content
Glama

textkit (paid)

tk_detectEncoding

Detect the encoding of a byte string: ascii, utf-8, utf-16, hex, base64, latin-1 ($0.005 per call, USDC on Base)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bytesYesbyte array

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 provided, so the description carries the full burden. It does disclose a genuinely useful non-schema behavior: it is a paid call ($0.005 per call, USDC on Base). It says nothing about ambiguous-result handling, error behavior for non-byte input, or what happens with empty/invalid arrays.

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?

One front-loaded sentence that leads with the verb and resource, then the concrete output set, then cost. Nothing is wasted, though appending the pricing clause in the same sentence slightly muddies the single-purpose read.

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, no-output-schema utility, the description covers purpose, the set of possible results, and the payment requirement, which is essentially everything an agent needs to invoke it. Minor gaps are the lack of any note on ambiguity or failure modes.

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% for the single 'bytes' parameter, so the schema already documents it; baseline 3 applies. The description adds only mild nuance by framing it as a 'byte string' rather than an array.

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+resource ('Detect the encoding of a byte string') and enumerates the candidate encodings it can return, which makes the operation concrete. It does not explicitly distinguish itself from the closest sibling, tk_detectFormat, so an agent still has to infer the boundary between encoding detection and format detection.

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?

Usage is only implied: the enumerated encoding list and the 'byte string' input hint at when it applies, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g. tk_detectFormat). For a one-shot utility this is adequate but leaves the agent to infer routing.

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