Skip to main content
Glama

redline_import

Normalizes exported JSONL logs into redline prompt/response JSONL, letting you map or auto-detect prompt and response fields before running regression evals.

Instructions

Normalize exported JSONL fields into redline prompt/response JSONL.

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": {
      "path": "<path>"
    },
    "name": "redline_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory where redline should run.
outNoRedline JSONL output path.
jsonNoPrint machine-readable JSON.
pathYesSource JSONL file to normalize.
limitNoMaximum records to import.
detectNoSuggest prompt and response field mappings without writing output.
presetNoOptional import preset such as langfuse, helicone, datadog, dolly, or openai-chat.
previewNoPreview this many mapped rows without writing output.
auto_mapNoUse the best detected prompt/response mapping.
id_fieldNoOptional source field path copied to the redline id field.
no_redactNoWrite raw values without import redaction.
input_fieldNoSource field path containing prompt text.
output_fieldNoSource field path containing response text.
context_fieldNoOptional source field path appended to the prompt as Context.
metadata_fieldsNoSource field paths copied into metadata.
max_output_bytesNoMaximum stdout/stderr bytes returned to the MCP client.
redaction_placeholderNoReplacement text for import redaction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and mostly fails it. It does not disclose that this writes an output file, that redaction is applied by default (implied only by the no_redact parameter), or how detect/preview modes differ from a real import.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of padding, which is good. But brevity here comes at the cost of under-specification rather than efficiency, so it earns only a middling score.

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?

This is a 17-parameter tool with no annotations and no output schema, yet the description is one sentence with no mention of write behavior, defaults, or the detect/preview/no_redact modes. Far more disclosure is needed for an agent to call it safely and correctly.

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 every one of the 17 parameters is already documented in the schema, establishing a baseline of 3. The description adds no additional semantics about field-path syntax, preset behavior, or how input_field/output_field interact with auto_map.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ("Normalize") and both resources (exported JSONL fields -> redline prompt/response JSONL), so the core transformation is identifiable. However, "exported" is left unqualified and nothing distinguishes this from siblings like redline_import_presets, so an agent cannot fully separate it from the surrounding import family.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as redline_import_presets even though a preset parameter exists. The description never says whether this is a dry-run/detection step versus an actual write, leaving the agent to infer the workflow from the parameter list alone.

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