Skip to main content
Glama

Leer data: URI

data-uri-parse
Read-onlyIdempotent

Analiza una URI data: en tipo MIME, parámetros, tamaño y contenido. Cuándo: hay que convertir bytes o texto a esta codificación, o desde ella, con exactitud y sin adivinar. No para: construir una URI data (data-uri-build). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Parses an RFC 2397 data: URI into MIME type, parameters, base64 flag, byte size and content (UTF-8 text when valid, otherwise base64). When: bytes or text have to be converted to or from this encoding exactly, without guessing. Not for: building an RFC 2397 data: URI from text or base64 bytes and a MIME type, using base64 or percent-encoding (data-uri-build). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.

Input Schema

NameRequiredDescriptionDefault
uriYesdata: URI (string; required).

Output Schema

NameRequiredDescriptionDefault
mimeNo
textNo
bytesNo
base64No
paramsNo
base64_contentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / uri / examples
      Added value: +[
      +  "data:,Hello%2C%20World"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The annotations already declare read-only, no network, idempotent and non-destructive behavior, and the description adds useful operational context: no stored state, deterministic output, 1 s per call, and result-size limits. This is meaningful extra transparency beyond the annotations, with no contradiction.

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?

The content is well structured and front-loaded: purpose first, then when/not-for guidance, side effects, determinism and limits. However, the full Spanish and English versions duplicate the same information, making it longer than necessary for an agent to consume.

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?

Given the rich annotations, high schema coverage and presence of an output schema, the description is nearly complete for correct use. The main gap is the apparent conflict between the described 64 KB input limit and the schema's much larger maxLength, which could leave an agent unsure which limit applies.

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 coverage is 100%: the single required uri parameter has a type, example, description and maxLength, so the schema already carries most parameter semantics. The description does not add URI syntax detail, and its stated 64 KB input limit appears inconsistent with the schema's maxLength of 1,400,000, so it adds limited reliable meaning.

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 specific verb and resource: parse an RFC 2397 data: URI into MIME type, parameters, base64 flag, byte size and content. It also explicitly distinguishes this from the sibling tool data-uri-build, so an agent can identify the correct tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit 'When' condition: bytes or text need exact conversion to or from this encoding. It also gives an explicit 'Not for' condition and names the alternative data-uri-build for constructing a data URI.

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