Skip to main content
Glama

get_artifact_slice

Reads a bounded, redacted slice of a worker artifact using an opaque artifact reference, letting you inspect compact result data without loading the full artifact.

Instructions

Read a bounded redacted slice from a worker artifact returned by a receipt. Artifact refs are opaque and local to this worker process.

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_ref": "<artifact_ref>"
    },
    "name": "get_artifact_slice"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
artifact_refYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden but does disclose meaningful traits: the read is bounded, content is redacted, refs are opaque, and refs are valid only within this worker process. It says nothing about what happens with an invalid or stale ref, whether out-of-range offsets error or truncate, or the output format.

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 tight sentences, verb-first and front-loaded, with no filler. Every clause adds information, though 'bounded' is only loosely tied to the limit/offset parameters.

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

Completeness3/5

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

For a three-parameter read tool with no output schema and no annotations, the definition covers provenance and scoping well but leaves pagination semantics, failure modes, and the slice's data format unaddressed. It is adequate to attempt a call but not to call it confidently at the edges.

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

Parameters2/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 define all three parameters, but only artifact_ref gets real meaning ('opaque and local to this worker process'). limit and offset are never mentioned, leaving their units, defaults, and bounds completely undocumented anywhere.

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 ('Read') and a specific resource ('a bounded redacted slice from a worker artifact'), plus the provenance constraint that the artifact comes from a receipt. This is far more precise than a bare name restatement, though it does not explicitly contrast itself with siblings like read_pack or tail.

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: you read a slice after a receipt has produced an artifact ref, and the ref is scoped to this worker process. No explicit when-to-use/when-not guidance and no alternative tool is named for other read paths.

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