Skip to main content
Glama

Record constraint

record_constraint

Record a project boundary that future sessions must respect. Persist the rule in a git commit so each resume context enforces it.

Instructions

Append a constraint that future work must respect. Same persistence as record_decision: one file, one commit, append-only. A constraint is a boundary rather than a choice — 'ids stay short and typeable' rather than 'we chose X'. Use freeze_claim only if the user wants it to become unchangeable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoWhy the constraint exists. Kept short — it is re-read every session.
titleYesThe boundary, phrased as a rule future work must satisfy. Appears verbatim in every future resume context.
projectNoNamed project in the central store. Omit inside a repo that has .continuity/, where state is found by walking up from the working directory.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changedv1.1.1
    • addedInput schema / properties / body / description
      Added value: +"Why the constraint exists. Kept short — it is re-read every session."
    • changedInput schema / properties / project / description
      Previous value: -"Named project (central store). Omit inside a Claude Code repo."New value: +"Named project in the central store. Omit inside a repo that has .continuity/, where state is found by walking up from the working directory."
    • addedInput schema / properties / title / description
      Added value: +"The boundary, phrased as a rule future work must satisfy. Appears verbatim in every future resume context."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already signal this is a non-read, non-idempotent operation, and the description adds concrete behavioral detail beyond that: 'one file, one commit, append-only.' This tells the agent what the side effect looks like without contradicting the annotations.

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?

Three sentences with no filler. The core action is front-loaded, persistence behavior is stated compactly, and the sibling distinction is placed at the end. Every sentence earns its place.

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-parameter tool with full schema coverage, the description provides the essential behavioral context and sibling guidance. It does not describe the return value, but there is no output schema and the tool's side-effect model is already clear enough 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 100%, and the schema already explains title, body, and project with meaningful guidance. The description does not repeat or add parameter-level semantics, so it earns the baseline score rather than higher.

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 specific verb and resource ('Append a constraint that future work must respect') and clearly distinguishes constraints from decisions by defining them as boundaries rather than choices. It also references freeze_claim as the closely related sibling, so an agent can disambiguate without opening other schemas.

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 gives an explicit routing instruction: 'Use freeze_claim only if the user wants it to become unchangeable.' It also positions the tool relative to record_decision via the persistence note, making the when-to-use call unambiguous.

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

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/vikcena01/ai-continuity-plugin'

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