Skip to main content
Glama

update_writing_style_from_text

Destructive

Replace all of a writing style's rules, learned ones included, with rules AI-extracted from pasted text (by writingStyleId). The extraction runs as a background job: the style keeps its current rules until it finishes, rule edits made meanwhile are overwritten, and only one extraction per style can run at a time. Check list_writing_styles until extractionStatus is completed or failed (failed leaves the rules unchanged and sets extractionError). Campaigns that use this style then write every AI message and AI reply generated afterwards with the new rules, including for contacts already in a sequence.

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": {
      "writingStyleId": "<writingStyleId>",
      "text": "<text>"
    },
    "name": "update_writing_style_from_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
writingStyleIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes far beyond the supplied annotations (readOnlyHint=false, destructiveHint=true, openWorldHint=true) by disclosing the asynchronous extraction job, that current rules persist until completion, that in-flight rule edits are lost, and that only one extraction per style may run at a time. It also documents failure semantics (rules unchanged, extractionError set) and the downstream effect on campaigns and in-sequence contacts.

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?

Front-loaded with the core action, then layered with background-job, polling, failure, and campaign-impact details; nearly every clause adds decision-relevant information. The long compound sentences make it dense rather than wasteful, though a reader must parse carefully.

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

Completeness5/5

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

For a two-parameter destructive mutation with no output schema, the description covers the full lifecycle an agent needs: job asynchrony, polling target and status values, failure behavior, concurrency limits, and downstream effects. Nothing essential for correct invocation is missing.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry the burden; it clarifies that writingStyleId selects the target style and that text is the pasted source material from which rules are extracted. It does not say what kind of text is expected (e.g., writing samples versus free-form instructions), which leaves some ambiguity for the 400k-character field.

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 precise verb and resource ('Replace all of a writing style's rules, learned ones included') and the source of the replacement ('AI-extracted from pasted text, by writingStyleId'). The wholesale-replacement framing also implicitly separates it from the sibling update_writing_style, which edits rules without extraction.

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 clear operational guidance: check list_writing_styles until extractionStatus is completed or failed, and warns that concurrent rule edits are overwritten, which tells the agent not to mix this with manual rule editing. It stops short of explicitly naming update_writing_style as the alternative for non-AI edits.

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.