Skip to main content
Glama

Edit a library workflow template's page text

library_update_template
Idempotent

Fetch Hive staff only. Change the page text of a workflow template already in the library (draft, pending review or live): name, description, how it works, good for, or the description of individual steps (step_descriptions, keyed by step_identifier). Pass only what changes. Free, other step settings are untouched (library_open_draft and library_save_draft change those), and it does not re-run the quality check. The answer has previous: the old values, to send back to undo.

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": {
      "template_id": "<template_id>"
    },
    "name": "library_update_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
good_forNo
descriptionNo
template_idYesThe workflow template to change.
how_it_worksNo
step_descriptionsNoStep descriptions to set, as { step_identifier: text } (for example { "step_2": "Finds the company." }). An empty text clears one. Read the identifiers from get_template.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / step_descriptions
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Step descriptions to set, as { step_identifier: text } (for example { \"step_2\": \"Finds the company.\" }). An empty text clears one. Read the identifiers from get_template.",
      +  "type": "object"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (idempotent, non-destructive, not open-world), and the description adds context annotations cannot express: partial update semantics ('Pass only what changes'), no quality-check re-run, a staff-only access gate, and that the answer carries 'previous' old values usable for undo. That is a real behavioral contract 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.

Conciseness4/5

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

Front-loaded with the action, then eligibility, then scope, then return value — a sensible order with no filler. The middle sentence is compressed to the point of being dense ('Free, other step settings are untouched'), which costs a little readability.

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?

No output schema exists, so the description explains the return payload ('previous: the old values, to send back to undo'), which is exactly the missing piece. Nested-object semantics and partial-update behavior are both covered, leaving nothing an agent needs before invoking it.

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 coverage is only 33%, so the description must compensate, and it does: it groups the five text fields into one editable set, explains step_descriptions are keyed by step_identifier, and states that an empty text clears a step description. It does not add anything about template_id or length limits, but the schema carries those.

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: 'Change the page text of a workflow template already in the library', then enumerates exactly which fields count as page text (name, description, how it works, good for, step descriptions). This distinguishes it cleanly from library_update_agent_template and from the step-setting tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the eligibility condition (template must already be in the library, in draft, pending review or live) and names the alternative tools for the excluded case: 'other step settings are untouched (library_open_draft and library_save_draft change those)'. It also warns that the quality check is not re-run, so the agent knows not to rely on this call for revalidation.

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