Skip to main content
Glama

Edit the agent's script stages

update_agent_script

Replace the script stages (rename, reorder, edit, add or remove stages) and optionally the tone, like the builder's script editor. Send the FULL list of stages you want; the full text is rebuilt from them. Get the current stages from get_agent (script_sections). Free.

Input Schema

NameRequiredDescriptionDefault
idYesAgent id (UUID) — from list_agents
sectionsYesAll stages in order
email_scriptNoWritten-channel script (email/LinkedIn); omit to keep
script_styleNoTone; omit to keep the current one

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose the key replacement behavior: the full text is rebuilt from the supplied full list, and optional fields are kept when omitted. It does not disclose permissions, reversibility, error behavior, or response details, leaving meaningful gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and efficient: the replacement operation, full-list requirement, source of current stages, and tone option are all stated without waste. Every sentence earns its place.

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 mutation tool with no annotations or output schema, the description is reasonably complete: it explains the full-replacement model and how to get current data. It still omits return behavior and some operational constraints, keeping it short of a 5.

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 100%, so the baseline is 3, but the description adds important semantics about sections: the FULL list must be sent because the full text is rebuilt. It also reinforces optional tone behavior and points to get_agent for current stages.

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: replace script stages, with optional tone changes. It clearly distinguishes the operation from generation tools by emphasizing that the full list is sent and the full text is rebuilt.

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 usage context: send the FULL list of stages, and retrieve current stages from get_agent (script_sections). It does not explicitly compare against generate_agent_script or update_agent, so it falls short of full when/when-not guidance.

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