Skip to main content
Glama

format_iramuteq_corpus

Read-onlyIdempotent

Converts speaker-diarized transcripts or raw SRT/VTT files into clean UTF-8 starred corpora for IRaMuTeQ, Alceste, and TXM, removing stray asterisks and adding document metadata.

Instructions

Locally converts a speaker-diarized transcript (or raw SRT/VTT) into a clean UTF-8 IRaMuTeQ / Alceste / TXM starred corpus (**** *id *var_val, zero stray asterisks).

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": {
      "transcript_text": "<transcript_text>"
    },
    "name": "format_iramuteq_corpus"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoCorpus document identifier (sanitized to ASCII slug, default "entretien_01").entretien_01
variablesNoKey/value metadata variables converted into starred modalities (e.g. {"sexe": "F", "theme": "sante"}).
transcript_textYesSpeaker-diarized transcript text (e.g. "M. Martin : ...") or raw SRT/VTT content.
interviewer_modeNoHow to handle interviewer turns: 'keep', 'tag' (-*relance_enqueteur), or 'exclude'.keep
clean_input_firstNoClean raw SRT/VTT timecodes before building the IRaMuTeQ corpus.
split_by_speaker_starredNoEmit one starred unit (`**** *id *locuteur_x`) per speaker turn when interviewer_mode is keep.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly=true, idempotent=true, destructive=false, so the safety profile is covered. The description adds genuinely new context — processing is local/offline and output is UTF-8 with 'zero stray asterisks' (a quality guarantee) — but with no output schema it never says whether the corpus is returned as a string or written to a file, which matters for a conversion tool.

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?

A single front-loaded sentence with no wasted clauses; the parenthetical input forms and backticked format token are efficient. Slightly dense with notation, but nothing is redundant.

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?

The tool has six parameters, a nested object, an enum, and no output schema, so the description carries more burden than it meets. It never states the return value (corpus text vs. file path) or how `split_by_speaker_starred` and `interviewer_mode` interact, though the schema covers the individual parameters well.

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 parameter including the nested `variables` object and the `interviewer_mode` enum is already documented. The description adds only the starred-variable output template, which mildly clarifies how `variables` surface in the corpus; baseline 3 is appropriate.

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 (converts) and both the input resource (speaker-diarized transcript / raw SRT/VTT) and output artifact (UTF-8 IRaMuTeQ / Alceste / TXM starred corpus), even sketching the output shape `**** *id *var_val`. This distinguishes it from siblings like clean_subtitles_srt_vtt or get_transcription_text without naming them, but it does not explicitly contrast with them.

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 implied by the purpose (use this to build an IRaMuTeQ corpus), but there is no explicit when-to-use/when-not guidance, nor any pointer to clean_subtitles_srt_vtt as the alternative for plain subtitle cleaning, which is a real ambiguity given the overlap with the clean_input_first parameter.

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