Skip to main content
Glama

finalize_project_meaning

Finalize a project's competency answers after concept/relation writes and source connection, writing the answers section plus a provenance receipt; refuses if no source folder is connected.

Instructions

Finalize the project's competency answers, the last construction step after concept/relation writes, validate_vault and connect_project_source. With answers the server writes the body's ## Competency answers section and finalizes in one call; without, it finalizes the section already there. Evidence an answer names inside the connected folder is measured; a project with no connected folder is refused, and a refusal names each row and the argument to change and writes nothing. Writes a provenance receipt to .ontology-atlas/project-meaning.json with no answer text or absolute root. ok: true means the receipt was written, not that source currentness is verified; read meaningAssessment.

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": {
      "projectSlug": "<projectSlug>",
      "expected_mtime": "<expected_mtime>"
    },
    "name": "finalize_project_meaning"
  }
}

Input Schema

NameRequiredDescriptionDefault
answersNoOne row per fixed question: `scope`: What product/system outcome and user problem define the ontology scope? (answered needs concepts, evidence) `domains`: Which stable business responsibilities or decision boundaries form its domains? (answered needs concepts, relations, evidence) `abilities`: Which observable abilities realize those outcomes inside each domain? (answered needs concepts, relations, evidence) `evidence`: Which source artifacts provide implementation evidence for each ability? (answered needs concepts, evidence, paths) `impact`: Which typed dependencies explain change impact across the model? (answered needs concepts, relations, evidence) An `answered` row carries every witness list its question names, non-empty, or it is refused; `partial` or `visible-gap` needs `gap`. Example: connection_info({guide:"competency"}).
projectSlugYesProject slug or unambiguous alias.
expected_mtimeYesProject mtime from its last read or write. Without `answers` any edit since blocks; with `answers` an older value is accepted.

Output Schema

NameRequiredDescriptionDefault
okYes
changedYes
contractYes
graphHashYes
bodyDigestYes
measuredAtYes
projectSlugYes
meaningAssessmentYes
sourceFingerprintYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changedv2.7.5
    • changedInput schema / properties / answers / description
      Previous value: -"One row per fixed question: `scope`: What product/system outcome and user problem define the ontology scope? (answered needs concepts, evidence) `domains`: Which stable business responsibilities or decision boundaries form its domains? (answered needs concepts, relations, evidence) `abilities`: Which observable abilities realize those outcomes inside each domain? (answered needs concepts, relations, evidence) `evidence`: Which source artifacts provide implementation evidence for each ability? (answered needs concepts, evidence, paths) `impact`: Which typed dependencies explain change impact across the model? (answered needs concepts, relations, evidence) An `answered` row carries every witness list its question names, non-empty, or it is refused; `partial` or `visible-gap` needs `gap`, one line naming what is missing. More: connection_info({guide:\"competency\"})."New value: +"One row per fixed question: `scope`: What product/system outcome and user problem define the ontology scope? (answered needs concepts, evidence) `domains`: Which stable business responsibilities or decision boundaries form its domains? (answered needs concepts, relations, evidence) `abilities`: Which observable abilities realize those outcomes inside each domain? (answered needs concepts, relations, evidence) `evidence`: Which source artifacts provide implementation evidence for each ability? (answered needs concepts, evidence, paths) `impact`: Which typed dependencies explain change impact across the model? (answered needs concepts, relations, evidence) An `answered` row carries every witness list its question names, non-empty, or it is refused; `partial` or `visible-gap` needs `gap`. Example: connection_info({guide:\"competency\"})."
    • changedInput schema / properties / answers / items / properties / evidence / description
      Previous value: -"Repository-relative files or folders, such as `README.md`, or a pinned `source:<path>#L<a>-L<b>@sha256:<64 hex>`."New value: +"Repository-relative files or folders, or `source:<path>#L<a>-L<b>@sha256:<hex>`."
    • changedInput schema / properties / answers / items / properties / gap / description
      Previous value: -"What is missing, in one line; required unless status is answered."New value: +"What is missing, one line; required unless answered."
    • changedInput schema / properties / answers / items / properties / relations / description
      Previous value: -"Declared relations by their stored key: `domains`, `capabilities`, `elements`, `depends_on`."New value: +"Declared relations by stored key (domains, capabilities, elements, depends_on)."
    • changedInput schema / properties / expected_mtime / description
      Previous value: -"The project node mtime from its last write or get_concept. Without `answers` it is a conflict guard: any edit since blocks finalization. With `answers` the server replaces only that section in the body as it is now, so an older value is accepted."New value: +"Project mtime from its last read or write. Without `answers` any edit since blocks; with `answers` an older value is accepted."
    • changedInput schema / properties / projectSlug / description
      Previous value: -"Exact project node slug (or an unambiguous vault alias) to finalize."New value: +"Project slug or unambiguous alias."
    • removedInput schema / properties / projectSlug / minLength
      Removed value: -1
    • removedInput schema / properties / projectSlug / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / bodyDigest / pattern
      Removed value: -"^sha256:[a-f0-9]{64}$"
    • removedOutput schema / properties / contract / enum
      Removed value: -[
      -  "projectMeaningReceipt:v1"
      -]
    • removedOutput schema / properties / graphHash / pattern
      Removed value: -"^project-graph-v1:[a-f0-9]{8}$"
    • removedOutput schema / properties / meaningAssessment / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / meaningAssessment / properties
      Removed value: -{
      -  "contract": {
      -    "enum": [
      -      "meaningAssessment:v1"
      -    ],
      -    "type": "string"
      -  },
      -  "dimensions": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "competency": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "questions": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "id": {
      -                  "minLength": 1,
      -                  "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -                  "type": "string"
      -                },
      -                "status": {
      -                  "enum": [
      -                    "answered",
      -                    "partial",
      -                    "visible-gap",
      -                    "unassessed"
      -                  ],
      -                  "type": "string"
      -                },
      -                "witnessStatus": {
      -                  "enum": [
      -                    "resolved",
      -                    "missing",
      -                    "unavailable"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "status",
      -                "witnessStatus"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "status": {
      -            "enum": [
      -              "answered",
      -              "needs_evidence"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "questions"
      -        ],
      -        "type": "object"
      -      },
      -      "source": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "currentness": {
      -            "enum": [
      -              "current",
      -              "stale",
      -              "unavailable"
      -            ],
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "not_measured",
      -              "needs_evidence",
      -              "review_required",
      -              "invalid",
      -              "verified_current"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "currentness"
      -        ],
      -        "type": "object"
      -      },
      -      "structure": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "basis": {
      -            "enum": [
      -              "structure_only"
      -            ],
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "ready",
      -              "needs_structure",
      -              "invalid"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "basis"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "structure",
      -      "competency",
      -      "source"
      -    ],
      -    "type": "object"
      -  },
      -  "nextAction": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "minLength": 1,
      -        "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -        "type": "string"
      -      },
      -      "target": {
      -        "minLength": 1,
      -        "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  "projectSlug": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "provenance": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "competencyContract": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "competencyEvaluator": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "competencyGraphHash": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "evaluator": {
      -        "minLength": 1,
      -        "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -        "type": "string"
      -      },
      -      "graphHash": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sourceFingerprint": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sourceGapId": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sourceGraphHash": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sourceId": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sourceMeasuredAt": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sourceReceiptContractVersion": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "sourceRevision": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "witnessInventoryContract": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "witnessInventoryGraphHash": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "witnessInventorySourceFingerprint": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "evaluator",
      -      "graphHash",
      -      "competencyContract",
      -      "competencyEvaluator",
      -      "competencyGraphHash",
      -      "witnessInventoryContract",
      -      "witnessInventoryGraphHash",
      -      "witnessInventorySourceFingerprint",
      -      "sourceGraphHash",
      -      "sourceReceiptContractVersion",
      -      "sourceId",
      -      "sourceRevision",
      -      "sourceFingerprint",
      -      "sourceMeasuredAt",
      -      "sourceGapId"
      -    ],
      -    "type": "object"
      -  },
      -  "status": {
      -    "enum": [
      -      "verified_current",
      -      "review_required",
      -      "needs_evidence",
      -      "invalid"
      -    ],
      -    "type": "string"
      -  },
      -  "topGap": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dimension": {
      -        "minLength": 1,
      -        "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -        "type": "string"
      -      },
      -      "id": {
      -        "minLength": 1,
      -        "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -        "type": "string"
      -      },
      -      "questionId": {
      -        "minLength": 1,
      -        "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "dimension",
      -      "id"
      -    ],
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / meaningAssessment / required
      Removed value: -[
      -  "contract",
      -  "projectSlug",
      -  "status",
      -  "dimensions",
      -  "topGap",
      -  "nextAction",
      -  "provenance"
      -]
    • removedOutput schema / properties / measuredAt / format
      Removed value: -"date-time"
    • removedOutput schema / properties / projectSlug / minLength
      Removed value: -1
    • removedOutput schema / properties / projectSlug / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / sourceFingerprint / minLength
      Removed value: -1
    • removedOutput schema / properties / sourceFingerprint / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
  2. Changed3 schema fields changedv2.4.0
    • addedInput schema / properties / answers
      Added value: +{
      +  "description": "One row per fixed question: `scope`: What product/system outcome and user problem define the ontology scope? (answered needs concepts, evidence) `domains`: Which stable business responsibilities or decision boundaries form its domains? (answered needs concepts, relations, evidence) `abilities`: Which observable abilities realize those outcomes inside each domain? (answered needs concepts, relations, evidence) `evidence`: Which source artifacts provide implementation evidence for each ability? (answered needs concepts, evidence, paths) `impact`: Which typed dependencies explain change impact across the model? (answered needs concepts, relations, evidence) An `answered` row carries every witness list its question names, non-empty, or it is refused; `partial` or `visible-gap` needs `gap`, one line naming what is missing. More: connection_info({guide:\"competency\"}).",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "answer": {
      +        "description": "Plain sentences; no heading and no \"- Label:\" line.",
      +        "minLength": 1,
      +        "pattern": "^(?!\\s)(?![\\s\\S]*\\s$)(?![\\s\\S]*\\u0000)[\\s\\S]+$",
      +        "type": "string"
      +      },
      +      "concepts": {
      +        "description": "Slugs inside this project.",
      +        "items": {
      +          "minLength": 1,
      +          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      +          "type": "string"
      +        },
      +        "maxItems": 50,
      +        "type": "array"
      +      },
      +      "evidence": {
      +        "description": "Repository-relative files or folders, such as `README.md`, or a pinned `source:<path>#L<a>-L<b>@sha256:<64 hex>`.",
      +        "items": {
      +          "minLength": 1,
      +          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      +          "type": "string"
      +        },
      +        "maxItems": 50,
      +        "type": "array"
      +      },
      +      "gap": {
      +        "description": "What is missing, in one line; required unless status is answered.",
      +        "minLength": 1,
      +        "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      +        "type": "string"
      +      },
      +      "id": {
      +        "enum": [
      +          "scope",
      +          "domains",
      +          "abilities",
      +          "evidence",
      +          "impact"
      +        ],
      +        "type": "string"
      +      },
      +      "paths": {
      +        "description": "Repository-relative files or folders.",
      +        "items": {
      +          "minLength": 1,
      +          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      +          "type": "string"
      +        },
      +        "maxItems": 50,
      +        "type": "array"
      +      },
      +      "relations": {
      +        "description": "Declared relations by their stored key: `domains`, `capabilities`, `elements`, `depends_on`.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "from": {
      +              "minLength": 1,
      +              "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      +              "type": "string"
      +            },
      +            "to": {
      +              "minLength": 1,
      +              "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      +              "type": "string"
      +            },
      +            "type": {
      +              "minLength": 1,
      +              "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "from",
      +            "to",
      +            "type"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 50,
      +        "type": "array"
      +      },
      +      "status": {
      +        "enum": [
      +          "answered",
      +          "partial",
      +          "visible-gap"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "status",
      +      "answer"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 5,
      +  "minItems": 5,
      +  "type": "array"
      +}
    • changedInput schema / properties / expected_mtime / description
      Previous value: -"Required conflict guard. Pass the project node mtime from get_concept; any intervening human or agent edit blocks finalization."New value: +"The project node mtime from its last write or get_concept. Without `answers` it is a conflict guard: any edit since blocks finalization. With `answers` the server replaces only that section in the body as it is now, so an older value is accepted."
    • changedInput schema / properties / projectSlug / description
      Previous value: -"Exact project node slug (or an unambiguous vault alias) whose current Competency answers section should be finalized."New value: +"Exact project node slug (or an unambiguous vault alias) to finalize."
  3. First observedv0.13.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the generic mutation profile (readOnly=false, destructive=false, idempotent=false); the description goes well beyond them. It discloses that a refusal names each offending row and the argument to change yet writes nothing, that a provenance receipt is written to `.ontology-atlas/project-meaning.json` containing no answer text or absolute root, and that `ok: true` only means the receipt was written rather than that source currentness is verified.

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?

Dense but front-loaded: purpose first, then the two modes, then refusal behavior, then the receipt and the `ok` caveat. Almost every clause carries operational meaning, though the final sentence about `meaningAssessment` is terse enough to leave the reader wanting a little more.

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 3-parameter, schema-rich mutation tool with an output schema, this covers what an agent needs: pipeline position, mode selection, refusal semantics, side effects on the vault body and a receipt file, and an explicit warning that a success flag does not imply source verification. Nothing material is left to inference.

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 would be 3, but the description adds meaning the schema cannot express: the presence or absence of `answers` switches between write-and-finalize and finalize-existing, and evidence is only measured when it falls inside the connected folder. The row-refusal behavior ties `status`/`gap` combinations to outcomes.

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?

States a specific verb and resource ("Finalize the project's competency answers") and immediately places it in the pipeline as "the last construction step after concept/relation writes, `validate_vault` and `connect_project_source`". An agent can distinguish this terminal step from the sibling write/validate tools without opening any 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?

Gives clear sequencing context (last step, after concept/relation writes, validate_vault and connect_project_source) and explains the two invocation modes: with `answers` it writes and finalizes in one call, without it finalizes the existing section. It also states a when-not condition (a project with no connected folder is refused). It stops short of naming what an agent should do instead if it only wants validation, but the prerequisite chain is unambiguous.

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