Skip to main content
Glama

rename_speaker_label

Idempotent

Renames a speaker diarization label across all transcript turns and refreshes the editable Word (.docx) export.

Instructions

Globally renames or codes a speaker diarization label across all turns (e.g. Enquêté P1, Mme Dubois) and refreshes the 100% editable Word (.docx) export.

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": {
      "file_id": "<file_id>",
      "old_speaker": "<old_speaker>",
      "new_speaker": "<new_speaker>"
    },
    "name": "rename_speaker_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesUnique transcription identifier.
new_speakerYesNew speaker name or participant code (e.g. 'Enquêté P1', 'Mme Dubois').
old_speakerYesCurrent speaker diarization label to replace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses two real behavioral traits: the change propagates to every turn, and the Word (.docx) export is refreshed as a side effect. It stops short of saying what happens when old_speaker is not found, or whether renaming onto an existing label merges speakers.

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 sentence with the global-scope constraint front-loaded; almost every clause earns its place. The '100% editable' qualifier is mild marketing filler that could be trimmed while keeping the export-refresh disclosure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter, non-destructive, idempotent mutation with no output schema and full schema coverage, this is close to complete: it covers scope and side effect. The remaining gap is edge-case behavior (unknown old_speaker, label collisions/merges) which an agent would want before calling.

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 coverage is 100% and every parameter is already documented, so the baseline is 3. The description's example values ('Enquêté P1', 'Mme Dubois') merely repeat the examples in the schema and add no new constraint on matching or normalization.

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 object ('renames or codes a speaker diarization label') plus the crucial scope qualifier 'globally ... across all turns', which is the distinguishing fact an agent needs. It does not name or contrast any sibling, but the siblings listed (export, summary, search) do not overlap in behavior anyway.

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 rather than stated: the phrase 'globally ... across all turns' hints this is the bulk relabeling tool rather than a per-turn edit, but there is no explicit when-to-use, no prerequisite (e.g. that the file must be transcribed/diarized), and no named alternative.

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