Skip to main content
Glama

prompts_blocks_update

Replace the stored prompt-block overrides at one level (workspace when agent_id is omitted, else that agent). prompt_blocks is the FULL desired object for the level: {"": {"enabled": bool|null, "text": str|null (guidance blocks only), "order": int|null (reorders within the block's cache tier), "hidden_rows": [label, ...] (fact blocks only)}}. Pass null for an entry to remove it (inherit). Fails loudly: unknown block/label ids, editing a fact block's text, empty text, size caps, and newly hiding a fact row that an enabled tool consumes are all rejected with the full error list — read prompts.blocks_registry for valid ids. Pre-existing stored state is never re-validated (grandfathered).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idNoAgent id for the agent level; omit for the workspace level.
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.
prompt_blocksYesFull desired overrides object for the level (see tool description for the entry shape).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the full-object replacement semantics, null-to-inherit behavior, the exhaustive validation failure list (unknown ids, editing fact text, empty text, size caps, hiding a consumed fact row), and the grandfathered re-validation exemption. This is rich behavioral context an agent needs before mutating.

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-loads the core operation and target level, then details the entry shape and failure modes. Dense and information-packed with little waste, though the inline JSON shape makes sentences long and harder to scan.

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 3-param nested-object mutation with no output schema, the description covers shape, semantics, and failure modes thoroughly. It does not describe the successful return/response, which is the main remaining gap.

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 100%, so baseline is 3, but the description adds real meaning: the per-block entry shape (enabled/text/order/hidden_rows), which fields apply to guidance vs fact blocks, and null semantics. in_workspace's non-persistence is also reinforced.

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 (Replace) and resource (stored prompt-block overrides at one level), and disambiguates the target level via agent_id presence. An agent can distinguish it from prompts_blocks_get/preview/registry without opening the schema.

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?

Explains the full-replace contract, that prompt_blocks is the FULL desired object, how to remove an entry (null → inherit), and points to prompts.blocks_registry for valid ids. It gives clear context but does not explicitly contrast with siblings like prompts_blocks_preview or prompts_update.

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.