Skip to main content
Glama

xray_add_evidence_to_step

Attach a file as evidence to a specific step in a test run by providing base64-encoded content, filename, and MIME type. Use it to document screenshots, logs, or PDFs during test execution.

Instructions

Attach evidence to a specific step within a test run. Pass base64-encoded file content with filename and mimeType. 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": {
      "testRunId": "<testRunId>",
      "stepId": "<stepId>",
      "content": "<content>",
      "filename": "<filename>",
      "mimeType": "<mimeType>"
    },
    "name": "xray_add_evidence_to_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon
stepIdYesTest run step internal ID
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
testRunIdYesTest run internal ID

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?

With no annotations, the description must carry the full behavioral burden. It does disclose the encoding requirement and the prerequisite content-acquisition step, but says nothing about whether attaching twice duplicates evidence, what permissions are needed, or what happens if the step ID is invalid.

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?

Three short sentences, front-loaded with the action, then the payload shape, then the prerequisite. No filler or repetition.

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 mutation tool with five required parameters, no annotations, and no output schema, the definition covers input preparation but leaves the mutation semantics and return shape unexplained. An agent can call it correctly but cannot predict the outcome or side effects.

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 100%, so all six parameters are already documented, including the content size cap and MIME examples. The description only restates the base64/filename/mimeType trio without adding format, syntax, or ID-sourcing detail beyond the schema.

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?

The description states a specific verb and resource ('Attach evidence to a specific step within a test run'), and the phrase 'specific step' scopes it away from run-level evidence. It does not explicitly name xray_add_evidence_to_run as the alternative, so the differentiation is implied rather than stated.

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?

It gives a concrete precondition: obtain base64 content via the Read tool or a user attachment before calling. That is useful when-to-use guidance, but there are no exclusions or explicit comparison to sibling add-evidence tools.

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