Update project knowledge
update_project_knowledgeCreate or update a domain fact that persists across sessions. Use this to capture business rules, terminology, enumerations, or conventions learned during analysis. Provide fact_id to update an existing fact; if fact_id is omitted, this creates a new fact. Use list_project_knowledge first when you need to discover an existing fact_id from an earlier session. Categories: 'terminology' (domain-specific terms), 'business_rule' (validation rules, calculations), 'enumeration' (status values, type codes), 'convention' (naming patterns, soft deletes). 'project_overview' updates the project overview singleton and preserves higher-precedence curation. 'domain_summary' replaces the project domain summary using fact as its description, with optional domains and conventions; it does not accept fact_id. For table-specific metadata (ephemeral tables, usage notes, preferred alternatives), use update_table instead. Example: fact='A tik represents 6 seconds of engagement', category='terminology', context='Inferred from billing_engagements table'
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": {
"fact": "<fact>"
},
"name": "update_project_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fact | Yes | The domain fact or knowledge to store (e.g., 'Platform fees are ~33% of total_amount'). | |
| context | No | Optional - How this fact was discovered (e.g., 'Found in user.go:45-67', 'Verified: tikr_share/total_amount ≈ 0.33') | |
| domains | No | Business domains for category domain_summary | |
| fact_id | No | Optional - UUID of existing fact to update. If omitted, a new fact is created | |
| category | No | Optional - Fact category: terminology, business_rule, enumeration, convention, project_overview, or domain_summary. Defaults to terminology. project_overview is the one project-purpose narrative; it also updates the recorded Setup goal when one exists. | |
| conventions | No | Shared conventions for category domain_summary. Each key has a fixed object shape; omit a convention you did not verify. soft_delete: {enabled, column, column_type ('timestamp' or 'boolean'), filter (SQL fragment such as 'deleted_at IS NULL'), coverage 0-1}; currency: {default_currency, format ('cents' or 'dollars'), column_patterns [..], transform ('divide_by_100' or 'none')}; audit_columns: a list of {column, coverage 0-1}. | |
| expected_overview | No | The current project_overview fact text returned by list_project_knowledge. Required, with expected_revision, to replace a stored overview with different text: a replacement that names neither is refused as overview_precondition_required. A changed value is refused as overview_conflict. | |
| expected_revision | No | Optional exact revision returned by a prior overview write. Omit when creating the overview; a stale revision is refused. Together with expected_overview it is what names an existing overview that a changed text replaces. |