Skip to main content
Glama

read_artifact

Read-onlyIdempotent

Read a UTF-8 JSON, CSV, Markdown, or text artifact from a DagsHub repository run, up to 1 MiB, to inspect evaluation or provenance files; previews may be truncated.

Instructions

Read a UTF-8 JSON/CSV/MD/TXT artifact, at most 1 MiB; previews may be truncated.

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": {
      "repository": "<repository>",
      "run_id": "<run_id>",
      "path": "<path>"
    },
    "name": "read_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
run_idYes
repositoryYes

Output Schema

NameRequiredDescriptionDefault
pathYes
rowsNo
textYes
formatYes
run_idNo
sourceYes
revisionNo
warningsNo
truncatedNo
bytes_readYes
repositoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. The description adds genuinely new behavioral facts: UTF-8 only, a 1 MiB cap, and that previews may be truncated. It does not say what happens when an artifact exceeds the cap (error vs. silent truncation).

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?

A single dense sentence with the format and size constraints front-loaded; every clause (formats, size limit, truncation caveat) carries actionable information and there is no filler.

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?

An output schema exists, so return-value explanation is not required, and the format/size caveats are useful. However, with three fully undocumented required parameters, the definition is incomplete for an agent that must decide which repository, run, and path to supply.

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% and all three parameters (repository, run_id, path) are bare titles with no guidance. The description never mentions how repository/run_id/path combine to locate the artifact, nor the expected path format, so it fails to compensate for the coverage gap.

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 and resource ("Read ... artifact") plus the supported formats and a hard size ceiling, which lets an agent tell it apart from list_artifacts. It does not explicitly distinguish itself from read_repo_file, leaving the artifact-vs-repo-file boundary to be inferred.

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: reading a single artifact's contents, as opposed to listing artifacts or reading repo files. There is no explicit when-to-use statement, no prerequisites, and no named alternative for the case where a file is too large or not an artifact.

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