Skip to main content
Glama

Sergio by Serviche

Redraft a lead's upcoming text step

redraft_lead_step
Idempotent

Rewrites the text of a lead's upcoming step that a person sends, from the conversation so far, as the journey's Update draft does (one AI draft, billed like the composer's Draft). Refused for a call step, a step Sergio sends on its own, or a step already past. Nothing is sent. task_id is the lead (read entity tasks); step_id is the step's id from the lead's journey. Pass the same idempotency_key when retrying.

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": {
      "task_id": "<task_id>",
      "step_id": "<step_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "redraft_lead_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
step_idYes
task_idYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a non-read, idempotent, non-destructive mutation, and the description adds genuinely new context: one AI draft billed like the composer's Draft, the refusal conditions, and 'Nothing is sent.' The remaining gap is what happens to any existing draft text on the step — overwrite versus append is left implicit.

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 front-loaded: purpose first, then refusals, then the safety note, then parameter roles and retry guidance. The parenthetical billing comparison to 'the composer's Draft' and the internal name 'Sergio' add slight noise but carry real product semantics.

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-param mutation with no output schema, the description covers cost, eligibility, side effects, and idempotency, which is most of what an agent needs. It stops short of saying what the call returns (the rewritten text, a job id, or just success) and whether an existing draft is replaced.

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

Parameters5/5

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

Schema coverage is only 33% (only idempotency_key is documented inline), yet the description compensates: task_id is the lead (read entity tasks) and step_id is the step id from the lead's journey, plus explicit retry guidance to reuse the same idempotency_key. That adds real meaning beyond the schema for the two undocumented UUID/string params.

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

Purpose5/5

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

States a specific verb and resource: rewrites the text of a lead's upcoming step that a person sends, drafted from the conversation so far. The qualifier 'that a person sends' plus the refusal list cleanly separates it from edit_lead_step (manual edit) and create_draft, so an agent can pick it without opening schemas.

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?

Gives concrete when-not conditions: refused for a call step, a step Sergio sends on its own, or a step already past. It also clarifies that nothing is sent, so the agent knows this is a safe draft-only action. It does not explicitly name edit_lead_step as the manual alternative, which keeps it from a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources