Skip to main content
Glama

artifact.read

Read-only

Read a bounded byte range from a stored browser artifact by ID, using offset and length, and choose utf8 or base64 encoding for text or binary data.

Instructions

Bounded byte-range read. Use encoding "base64" for binary artifacts.

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": {
      "artifact_id": "<artifact_id>"
    },
    "name": "artifact.read"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNo
offsetNo
encodingNo
artifact_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered without description help. The description adds the meaningful constraint that reads are bounded by a byte range, but says nothing about out-of-range behavior, truncation, permission requirements, or whether the response is text or encoded bytes.

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 short sentences, front-loaded with the core behavior and followed by the one operational hint that matters. There is no filler, though the extreme terseness is close to under-specification rather than model concision.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Four parameters at 0% schema description coverage plus no output schema means the description should explain offset/length semantics and what a successful read returns. It covers only the encoding choice, leaving an agent to guess units, defaults, and response shape for a tool whose main risk is reading the wrong slice.

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 0%, so the description must carry parameter meaning, and it only partly does: it clarifies the encoding enum choice (base64 for binary) and the offset/length pair via "bounded byte-range." artifact_id, units for offset/length, and default behavior when length is omitted are left entirely undocumented.

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?

"Bounded byte-range read" gives a specific verb (read) and a precise scope (byte range rather than whole-file or line-based), which implicitly separates it from line-oriented siblings like artifact.read_lines. The resource name is only implied by the tool name itself, so it stops just short of a fully self-contained statement.

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 description gives one actionable selection rule — use encoding "base64" for binary artifacts — which is real guidance on how to call it. It does not say when to prefer this over artifact.read_lines or artifact.export, nor when a byte-range read is inappropriate, so the when-to-use framing is only implied.

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

Deploy Server

Other Tools