Skip to main content
Glama

Aadharsh Site

Encode

encode
Read-onlyIdempotent

Read a JPEG or AVIF at a URL and report what its encoder actually did: chroma subsampling, baseline vs progressive and the scan count, an estimated quality with the deviation from the IJG Annex K table shown, AVIF bit depth, and whether ICC/EXIF/XMP is riding along. NO PIXELS ARE DECODED — every fact comes from the container — so this works on files a Worker could never decode.

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

Input Schema

NameRequiredDescriptionDefault
urlNo

Output Schema

NameRequiredDescriptionDefault
urlYesSite-relative path and query string for reopening the terminal view
frameYesRendered 80-column terminal frame as plain text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond them: no pixel decoding occurs, all facts come from the container, quality is an estimate with a stated deviation baseline, and AVIF-specific facts like bit depth are included. What is missing is what happens for unsupported formats or unreachable URLs (error behavior).

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 sentences, front-loaded with the action and then the payload of reported facts, with no filler. The dense enumeration and jargon ('IJG Annex K table') are justified by specificity, though the sentence is long enough that a reader must parse carefully.

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 the return shape need not be explained, and the description still previews the salient fields. For a single-parameter read-only inspection tool this is nearly complete; the remaining gap is unsupported-format and fetch-failure behavior.

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 'url' parameter with 0% schema description coverage, but the description's phrase 'at a URL' makes the parameter's meaning essentially self-evident. It adds nothing about URL constraints — public vs internal reachability, redirects, or content-type mismatches — so it neither needs to compensate heavily nor does it add meaning beyond the obvious.

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?

The description names a concrete verb and resource ('Read a JPEG or AVIF at a URL') and then enumerates the exact facts reported: chroma subsampling, baseline vs progressive, scan count, estimated quality vs IJG Annex K, AVIF bit depth, and ICC/EXIF/XMP presence. The 'NO PIXELS ARE DECODED — every fact comes from the container' clause carves out a distinct niche relative to decode-oriented siblings such as image_inspect or image_transform.

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 implied by the input constraint ('Read a JPEG or AVIF at a URL') and by the note that it works on files a Worker could never decode, which hints at when it is the right choice. However, there is no explicit when-to-use/when-not-to-use guidance and no named alternative for cases where an agent actually needs pixel content or a format other than JPEG/AVIF.

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.