Skip to main content
Glama

Refresh a living section

trigger_section_refresh

Requests a server-side refresh to rewrite one document section using its pinned model and create a pending proposal in Suggested updates.

Instructions

Ask Rendra's server-side refresh worker to rewrite one using the model the section is pinned to (data-model attribute) and the workspace's saved model key (BYOK). It runs a model call and can take a few minutes. If your client times out, do not call it again: the run continues and its result appears in Suggested updates. Use this when you want Rendra's configured model to do the rewrite instead of crafting it yourself. Outcome is identical to propose_doc_update: a pending proposal in Library → Suggested updates (or nothing, when no change is needed). Optionally pass source_data with data you already gathered (the model takes every number from it), source_text to replace the section's instruction for this run, or model to override the pinned model for this single run. Requires docs:write scope.

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": {
      "slug": "<slug>",
      "section_id": "<section_id>"
    },
    "name": "trigger_section_refresh"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesDocument slug.
modelNoOptional. Whitelisted model id to override the section's pinned data-model for this run only (e.g. 'claude-sonnet-4-6', 'gpt-5'). Doesn't change the document.
section_idYesThe id attribute of the target <section data-rendra-refresh id="…"> element.
source_dataNoOptional. Data you already have (API response, report, max 200,000 chars). The model gets it as data, not instructions, and takes every number from it.
source_textNoOptional. Replaces the section's stored instruction (data-source) for this run only.
source_labelNoOptional. Where source_data came from, for example "Billing API /v1/prices".
source_titleNoOptional. Title or short label for the source, passed to the LLM for context.
source_fetched_atNoOptional. When source_data was fetched, ISO 8601 with offset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that this is a server-side model call that can take minutes, that a client timeout does not stop the run, and that the result appears in Suggested updates. It also states the required docs:write scope and that the outcome is a pending proposal or no change. This is substantial operational context for a non-idempotent mutation.

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?

The definition is front-loaded with the action and async behavior, then proceeds to timeout guidance, usage, outcome, and optional parameters. Every sentence carries relevant information, though the description is dense with several operational details that could be tightened slightly.

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 complex asynchronous mutation with eight parameters and no output schema, the description covers what the tool does, how it behaves during timeouts, what outcome to expect, the required authorization scope, and the main optional inputs. No essential calling information appears to be 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 coverage is 100%, so the baseline is 3, but the description adds useful meaning for key optional parameters. It explains that source_data is treated as data from which the model takes every number, source_text replaces the section's stored instruction for that run, and model overrides the pinned model without changing the document. It does not explain source_label, source_title, or source_fetched_at, but the schema already covers them.

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?

The description states a specific verb and resource: ask Rendra's server-side refresh worker to rewrite one section. It distinguishes the operation from manually crafting a rewrite and names propose_doc_update as producing an identical outcome. An agent can tell what this tool does without inspecting 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?

The description gives an explicit usage condition: use it when Rendra's configured model should do the rewrite instead of crafting it yourself. It also names the sibling propose_doc_update as the equivalent-outcome alternative and warns not to retry after a client timeout. A clearer when-not-to-use condition would be needed for a 5.

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