Skip to main content
Glama

xray_add_evidence_to_run

Attach a screenshot, PDF, or log file to a test run by passing base64-encoded content with filename and MIME type. Use it to document results directly on the run.

Instructions

Attach evidence to a test run. Pass base64-encoded file content with filename and mimeType. Evidence can be screenshots, PDFs, or log files. Use the Read tool or user attachment to obtain base64 content before calling this tool.

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": {
      "id": "<id>",
      "content": "<content>",
      "filename": "<filename>",
      "mimeType": "<mimeType>"
    },
    "name": "xray_add_evidence_to_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesTest run internal ID
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
contentYesBase64-encoded file content (screenshot, PDF, log). Max ~7.5MB decoded.
filenameYesFilename with extension, e.g. screenshot.png
mimeTypeYesMIME type, e.g. image/png, application/pdf, text/plain

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does establish the base64 encoding contract and the accepted artifact kinds, but says nothing about permission requirements, what the response contains, duplicate/overwrite semantics, or failure behavior for oversized payloads (the schema caps content at ~7.5MB decoded without the description mentioning it).

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?

Four short sentences, front-loaded with the action, then the payload contract, then the prerequisite step. No filler or repetition, though the evidence-type sentence and the mimeType schema entry overlap slightly.

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?

With no output schema and no annotations, the description should cover more of the behavioral surface for a 5-parameter mutating tool — notably return shape, whether evidence accumulates, and size limits that only exist in the schema. The core input workflow is adequately described, but the post-call picture is not.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, and the description earns above that by explaining how to actually produce the `content` value (base64 via Read tool or attachment) and by enumerating realistic mimeType values in prose. The `format` parameter and the id format are left entirely to the schema, but the description adds practical meaning beyond it.

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 ("Attach evidence to a test run") and clarifies the payload type (screenshots, PDFs, logs). The "to a test run" scope implicitly separates it from the step-level sibling xray_add_evidence_to_step, but the description never names that alternative explicitly, so routing relies on the reader noticing the scope noun.

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

Usage Guidelines4/5

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

Gives a concrete prerequisite workflow: obtain base64 content via the Read tool or a user attachment before calling. That is real guidance an agent can act on. It stops short of stating when to prefer this over xray_add_evidence_to_step or whether evidence is appended vs. replaces existing entries.

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