Skip to main content
Glama

promote_contract_generation

Promote a changed contract working copy into an immutable canonical generation using the active generation grant for the same MODIFY turn, actor, and contract. Local file changes do not update truth.

Instructions

Promote a changed contract working copy into a new immutable canonical generation.

This requires the single active generation grant created for the same MODIFY turn, actor and Contract. Merely observing a changed local file never updates canonical contract truth.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
turn_idYes
actor_idYes
grant_idYes
change_typeNoMODIFY
contract_refYes
source_checksumNo
source_storage_systemNo
source_physical_locationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.4

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that this is a mutating operation creating an immutable generation, that a pre-existing grant is required, and that file observation alone does not change canonical truth. It does not cover failure modes, conflicts with concurrent generations, reversibility, or permissions beyond the grant.

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?

Three short sentences, front-loaded with the core action before the grant precondition and the caveat about observation. No filler, though the 'Merely observing...' sentence is a mild restatement of the same point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation. For a 9-parameter mutating tool with zero annotation coverage, however, the description leaves several parameters and the failure/conflict behavior undocumented, which is a meaningful gap for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 9 parameters, so the description must compensate. It does partially: the phrase 'the same MODIFY turn, actor and Contract' ties together turn_id, actor_id, contract_ref and change_type, and grant_id is named explicitly. But content, source_checksum, source_storage_system and source_physical_location get no meaning at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Promote') and resource ('contract working copy') and names the resulting artifact ('new immutable canonical generation'), which is far more precise than the bare tool name. It also distinguishes itself from the passive alternative ('merely observing a changed local file'), though it doesn't name a sibling tool that does the observing.

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 a concrete precondition: the single active generation grant for the same MODIFY turn, actor and Contract must exist. That tells the agent when the call can succeed. It stops short of naming alternatives or stating explicit exclusion cases.

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

Deploy Server

Other Tools