Skip to main content
Glama

update_contract_cadence

Update the cadence clause of an existing teaching contract without re-signing. Specify contract ID and new cadence to replace the current rhythm settings while preserving other terms.

Instructions

只改一份已签合同的 cadence(节奏条款), 不动其他任何条款、不必重签. 节奏条款随时可改, 改约成本必须低于立约——这是它存在的意义. 形状同 propose_contract 的 cadence: {mode:"scheduled"|"fragmented", slots?:[{weekday:0-6(0=周日), time:"HH:MM"(24h), tz:string}], reminders:"native"|"none", auto_duty:boolean(涉及学习者额度消耗, 必须明示询问, 默认 false), weekly_review_nudge?:boolean, prep_rhythm?:"per_lesson"|"batch"(备课节奏——per_lesson 随学而备/推荐默认, batch 一次备齐; 见 skill intake/contract-establish 的语义说明)}. 完整替换, 不是逐字段合并——改 prep_rhythm 而漏带其他既有键(如 slots)会把它们清空, 调用前先读现有 cadence 再整体重写. teaching_contracts 没有 revision/history 表(version 列是历史遗留, 从未被真实写路径 bump 过)——留痕方式: 本工具自动在写入的 cadence 里盖一个 updated_at(ISO 时间戳, 不是调用者字段), 同时同步 bump 合同自身的 updated_at 列. 提醒本身仍不由 LS 发出——只是改了"存的约定"。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cadenceYes必填, 完整替换现有 cadence(不是逐字段合并) — 形状同上, mode/reminders 必填.
contract_idYes必须是已存在的 teaching_contracts id
idempotency_keyNo可选。幂等键 (建议 uuid) —— 同一 key 重放此调用返回首次结果, 不重复写入. 网络重试/断线重连时带上同一个 key, 而不是猜"上次到底写没写".
Behavior5/5

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

With no annotations, the description carries the full transparency burden and excels. It discloses critical behavioral traits: full replacement semantics (not merging), lack of revision/history table, automatic updated_at stamping, and that reminders are only stored, not sent. These go far beyond any schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is dense but well-structured: purpose first, then cadence shape, then critical behavioral warnings. Every sentence carries vital information—no filler, no repetition of schema defaults. It is front-loaded with the most important scoping statement.

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?

Given the tool's complexity (nested object, full replacement, idempotency, no history), the description is remarkably complete. It explains the full-replacement danger, the historical anomaly of the version column, the automatic timestamp behavior, and the reminder non-delivery. No output schema exists, but for an update tool the description provides sufficient context without needing to detail return values.

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

Parameters5/5

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

Even though schema coverage is 100%, the description adds substantial semantic meaning beyond the schema: full-replacement behavior (clear risk of losing unspecified fields), auto_duty's explicit-consent requirement and default false, prep_rhythm's meaning, and the automatic updated_at insertion. It also references skill docs for deeper semantics.

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 opens with a precise verb+resource: '只改一份已签合同的 cadence(节奏条款), 不动其他任何条款、不必重签.' This clearly distinguishes it from siblings like update_contract_coverage and void_contract, and explains the tool's raison d'être.

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?

It explicitly states when to use (modify cadence on an existing signed contract) and when not to (do not change other clauses, no need to re-sign). It also explains the economic rationale—'改约成本必须低于立约'—and implies the alternative of re-signing, making the usage context unmistakable.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sf-shenfeng/learn-shell'

If you have feedback or need assistance with the MCP directory API, please join our Discord server