Skip to main content
Glama

set_project_knowledge

DestructiveIdempotent

Store structured project facts by key, updating existing entries to keep deploy URLs, stack conventions, and gotchas current.

Instructions

Write a structured fact to project knowledge. UPSERT by key — calling with same key updates the existing entry. Use for deploy URLs, stack conventions, gotchas. These facts are visible via get_project_knowledge.

Input Schema

NameRequiredDescriptionDefault
keyYesSlug key for UPSERT (e.g. 'deploy-url', 'stack-convention'). Same enforced pattern as remember: ^[a-z0-9][a-z0-9-]*[a-z0-9]$ — hyphens, NEVER colons; a colon-delimited key is REFUSED, not normalised.
tagsNoAdditional tags for filtering.
valueYesThe knowledge to store (markdown, max 4000 chars).
categoryNoOptional category: deploy, stack, conventions, gotchas, api, auth, etc.
thread_idNoThread identifier. Auto-populated from the runner state file when omitted.
project_idYesProject ID to store knowledge for.
source_urlNoOptional URL/path to the source of this knowledge.
attach_contextNoWhen false, disables auto-injection of thread_id and source_task_id.
source_task_idNoUUID of the Mesh task that produced this fact. Auto-populated from the runner state file when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=true, so the safety profile is partly covered. The description adds real value by spelling out the UPSERT behavior ('same key updates the existing entry'), which directly explains the otherwise alarming destructiveHint, and notes downstream visibility. It omits permission/auth requirements and size/rate limits.

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 tight sentences, front-loaded with the core action and UPSERT rule, then usage, then the read counterpart. No filler or repetition of structured data.

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 9-param, 3-required write tool with a fully covered schema and no output schema, the description covers purpose, mutation semantics, and usage adequately. The remaining unaddressed details (auto-injection via attach_context, tags/category behavior) are already handled in the schema, leaving little for the description to add.

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%, so the schema already documents key patterns, tag/filter usage, defaults, and threading params thoroughly. The description only echoes the key-based UPSERT concept and adds no parameter detail beyond the schema, so baseline 3 applies.

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 ('Write a structured fact to project knowledge') and immediately clarifies the UPSERT-by-key semantics. It names the sibling used for reading ('visible via get_project_knowledge'), letting an agent distinguish it from read/list tools 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete use cases ('deploy URLs, stack conventions, gotchas') and confirms the read counterpart, which is clear context for when to reach for it. It does not, however, contrast against the closely related 'remember' sibling or state exclusions, so guidance stops short of full when/when-not routing.

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