Skip to main content
Glama

update_knowledge

Update the knowledge graph by adding or removing entities like intents, ADRs, tools, and code, and manage relationships between them to keep architectural decision records current.

Instructions

ADR-018: Simple CRUD operations for knowledge graph. Add/remove entities (intents, ADRs, tools, code) and relationships. Use knowledge://graph resource to read current state (zero token cost).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesType of operation to perform on the knowledge graph
entityNoEntity ID (for add_entity/remove_entity operations)
entityTypeNoType of entity (required for add_entity operation)
relationshipNoRelationship type (for add_relationship/remove_relationship)
sourceNoSource node ID (for relationship operations)
targetNoTarget node ID (for relationship operations)
metadataNoAdditional metadata for the entity or relationship
Behavior2/5

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

No annotations are provided, so the description must disclose behaviors. It does not mention authorization, side effects, persistence, or return values. The zero token cost reference is for a different resource, not this tool.

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?

The description is two sentences, front-loads the purpose, and contains no redundant information. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 7 parameters and 1 required, the description fails to explain conditional parameter requirements (e.g., when entity vs source/target are needed based on operation). No output schema or error handling is described.

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 baseline is 3. The description adds minimal value beyond schema, only listing example entity types. No additional guidance on parameter interactions or conditional requirements.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it performs CRUD operations on a knowledge graph, specifying adding/removing entities and relationships. However, the tool name 'update_knowledge' suggests only updates, but description covers both add and remove, which is slightly inconsistent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description mentions using 'knowledge://graph resource' for reading state, hinting at reading tool alternatives. However, it does not explicitly name sibling tools like 'get_knowledge_graph' nor state when to use this tool over others.

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

Install Server

Other Tools

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/tosin2013/mcp-adr-analysis-server'

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