Skip to main content
Glama

list_encodings

Read-only

Lists all supported text encodings with names, aliases, and descriptions so you can choose the correct encoding name for file read, write, and convert operations.

Instructions

List all 45 supported encodings with name, aliases, and description. Use this to find the correct encoding name for read/write/convert operations.

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": "list_encodings"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
encodingsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.6.3
    • addedInput schema / properties
      Added value: +{}
  2. Addedv3.3.0
  3. Removedv2.0.1
  4. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safe-lookup profile is known; the description's only added behavioral detail is the fixed count of 45 encodings. Note a mild tension: a static, enumerated catalog implies repeat calls return identical results, yet idempotentHint is false. Not flagged as a contradiction, but the description does not clarify the stability of the list.

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?

Two sentences, both earning their place: the first states what is returned, the second routes the agent to the correct follow-up. The cardinality and usage cue are front-loaded with no filler.

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?

With no parameters, an output schema for the returned fields, and annotations covering the read-only profile, the description only needs purpose plus when-to-use, both of which are present. The single gap is that it does not say whether the 45-encoding list is static or environment-dependent, which matters given idempotentHint=false.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is no parameter semantics for the description to add; the baseline of 4 applies. The description correctly implies the tool is parameterless by framing it as a full enumeration.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"List all 45 supported encodings" gives a concrete verb, resource, and cardinality, and the description names the sibling-adjacent operations (read/write/convert) it feeds into. An agent can distinguish this from detect_encoding or convert_encoding without opening any schema.

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?

"Use this to find the correct encoding name for read/write/convert operations" states the condition that selects this tool over its siblings. It does not state exclusions or note that detection is a separate concern (detect_encoding), which keeps it short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.