Skip to main content
Glama

Regenerate from the changed source

regenerate_from_source
Destructive

Rewrites a piece whose source CHANGED after it was produced (the project status reports it as publication.source.status: cambiada, from Vixdeo's weekly review of every published source). Without confirm_spend it only returns the quote of the piece (quote, the band of the whole piece against the wallet) and nothing is created or read. With confirm_spend=true it reads the source once more and, if it is still changed, launches the script writing of the SAME project from the source as it reads today: a new version declaring regenerada_por with the previous and the new fingerprint of the source. The published work keeps exhibiting the old final until a person renders and updates it. Returns outcome (lanzada · requiere_confirmacion · sin_publicacion · fuente_vigente · fuente_sin_revisar · fuente_retirada · fuente_ilegible · saldo_insuficiente · editorial_en_curso · sin_pedido), sourceStatus, quote and the runId when launched. Requires write. Spends LLM budget when confirmed: a full script pass of the piece, charged at the project's next render settlement; with the automatic line on, the piece is then rebuilt (voice and visuals) up to the final, which a person relaunches.

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": {
      "project_id": "<project_id>"
    },
    "name": "regenerate_from_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes
confirm_spendNoTrue launches the paid script writing; omitted or false returns only the quote.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond annotations (destructiveHint=true, idempotentHint=false) it discloses cost ('Spends LLM budget… charged at the project's next render settlement'), the `write` permission requirement, the side effect that the published work keeps showing the old final until a person renders and updates it, and the re-check of source state before launching. It also enumerates every return outcome, which is unusually complete 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?

The trigger condition is front-loaded and the quote-versus-spend split follows logically. The prose is dense and runs long in places, particularly the trailing sentence about the automatic line rebuilding voice and visuals, but almost every clause carries operational information.

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?

With no output schema, the description correctly takes on the burden of documenting return fields (`outcome`, `sourceStatus`, `quote`, `runId`) and the full outcome vocabulary, plus the asynchronous settlement and manual render step. Nothing an agent needs to call this safely 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?

confirm_spend is already described in the schema, but the description adds real meaning: what is and is not created in each state and that a launch happens only if the source is still changed. project_id gains implicit semantics as the project whose piece and source fingerprint are being re-read, though it is never explicitly defined.

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 names a specific verb and resource ('Rewrites a piece whose source CHANGED after it was produced') and pins the exact trigger state ('publication.source.status: cambiada'), which separates it from generate_script or produce. An agent can identify the tool from the first sentence 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?

It gives both sides of the condition: use when the source is reported changed, and the outcome 'fuente_vigente' documents what happens when it is not. The dry-run path (omit confirm_spend to get only a `quote`) is clearly spelled out as a preview step. No named alternative tool is offered, which is the only missing piece for a 5.

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