Skip to main content
Glama
human-voice-writer
by Zelto-ai

voice_prepare

Imports raw chat records, groups bursts, de-identifies sensitive content, deduplicates messages, and holds out a test set to prepare writing-style training data and flag messages for rewriting.

Instructions

Import the canonical records the agent wrote to ~/.voice/raw/*.jsonl ({text, is_me, from, to, thread, channel, ts}), group chat bursts, de-identify (user's own name/company kept), drop sensitive messages, dedupe, hold out a test set. Re-run with extra_redact=["Nickname", "Acme=COMPANY"] to redact leftovers the detector missed. Returns stats, a sample + leak candidates to check, and the messages that need AI-style rewrites.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "voice_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepNo
companyNo
keep_rawNo
user_nameNo
user_emailsNo
extra_redactNo
max_messagesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does substantial work: it names the source directory and record shape, the transformations applied, that the user's own name/company are deliberately preserved, and that sensitive messages are dropped. The notable gap is that it never states what happens to the source .jsonl files (the undocumented keep_raw default of false suggests deletion) or that de-identification is heuristic rather than guaranteed.

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?

Dense but largely earn-your-place prose, front-loaded with the import action and followed by the pipeline sequence, the actionable re-run tip, and the return summary. The run-on comma chains and compressed fragments ({text, is_me, ...}) make it terse to the point of being slightly harder to parse than necessary.

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 presence of an output schema reduces the need to describe returns, and the description still summarizes them; it also adequately covers the redaction workflow. For a 7-parameter, filesystem-touching pipeline tool with zero annotations, missing parameter coverage and unstated source-file fate leave it short of complete.

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

Parameters2/5

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

Schema description coverage is 0% across 7 parameters, so the description must compensate for all of them. It explains only extra_redact (with worked syntax) and gestures at user_name/company via 'user's own name/company kept'; keep, keep_raw, user_emails, and max_messages receive no explanation anywhere.

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?

Uses a specific verb ('Import') plus the concrete resource ('canonical records ... ~/.voice/raw/*.jsonl') and enumerates the pipeline stages (group, de-identify, drop sensitive, dedupe, hold out test set). It is clearly distinguishable from the sibling names voice_train/voice_eval, though it never names an alternative outright.

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?

It gives one explicit re-run rule ('Re-run with extra_redact=[...] to redact leftovers the detector missed'), which is useful and specific. However, it never says when to call this versus voice_setup, voice_train, or voice_eval, and gives no prerequisites such as raw files needing to exist first — the preparation-before-training ordering is only implied.

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