Skip to main content
Glama

Update project knowledge

update_project_knowledge

Create 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

NameRequiredDescriptionDefault
factYesThe domain fact or knowledge to store (e.g., 'Platform fees are ~33% of total_amount').
contextNoOptional - How this fact was discovered (e.g., 'Found in user.go:45-67', 'Verified: tikr_share/total_amount ≈ 0.33')
domainsNoBusiness domains for category domain_summary
fact_idNoOptional - UUID of existing fact to update. If omitted, a new fact is created
categoryNoOptional - 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.
conventionsNoShared 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_overviewNoThe 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_revisionNoOptional 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false, destructiveHint=false), the description discloses that domain_summary REPLACES the existing domain summary and that project_overview is a singleton preserving higher-precedence curation. It also surfaces precondition refusal behavior (overview_precondition_required, overview_conflict, stale revision), which is exactly the kind of failure mode an agent needs before calling a non-idempotent write.

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?

It is front-loaded with the core create/update semantics before branching into category specifics, and every clause carries information. It is dense and slightly run-on in the category and special-case listing, with a little overlap between the description and the schema's fact_id text, but nothing is filler.

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 an 8-parameter, non-idempotent write with nested objects and no output schema, the description covers creation, updating, category routing, sibling delegation, and precondition conflicts. Remaining detail (conventions sub-shapes, exact revision semantics) lives in the schema, so the description is complete enough for correct invocation.

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 is 3; the description earns above that by enumerating what each category means in practice, explaining that domain_summary uses fact as its description and ignores fact_id, and giving a worked example of fact/category/context. The conventions object shape is left to the schema, which is acceptable given the coverage.

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 opening sentence names a specific verb and resource ('Create or update a domain fact that persists across sessions') and the body distinguishes the tool from siblings list_project_knowledge, delete_project_knowledge, and update_table by scope. An agent can tell what this writes and what it does not cover without opening the schema.

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 explicit when-to-use guidance ('capture business rules, terminology, enumerations, or conventions learned during analysis'), states the update-vs-create condition via fact_id, routes to list_project_knowledge to discover an existing fact_id, and redirects table-specific metadata to update_table. When-not-to-use and the alternative are both named.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources