Skip to main content
Glama

update_knowledge

Update the knowledge graph by adding or removing entities and relationships to support architectural decision record analysis.

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
entityNoEntity ID (for add_entity/remove_entity operations)
sourceNoSource node ID (for relationship operations)
targetNoTarget node ID (for relationship operations)
metadataNoAdditional metadata for the entity or relationship
operationYesType of operation to perform on the knowledge graph
entityTypeNoType of entity (required for add_entity operation)
relationshipNoRelationship type (for add_relationship/remove_relationship)
Behavior2/5

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

No annotations are provided, so the description must carry full behavioral disclosure. It only states the operations without detailing side effects, permissions, reversibility, or error handling. This is insufficient for a mutation 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 long, front-loaded with purpose, and contains no extraneous information. Efficient and well-structured.

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

Completeness3/5

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

For a simple CRUD tool with no output schema, the description is somewhat complete but fails to describe the return value or confirm success. It could provide more context on expected outcomes.

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 coverage is 100%, so baseline is 3. The description mentions entity types (intents, ADRs, tools, code) which are already in the schema, adding no new meaning beyond the parameter descriptions.

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 description clearly states the tool performs CRUD operations on the knowledge graph, specifically adding/removing entities and relationships. It distinguishes from reading by mentioning the knowledge://graph resource for reading.

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?

The description explicitly tells the agent to use the knowledge://graph resource for reading, implying when to use this tool for modifications. However, it does not explicitly exclude other write tools or provide when-not-to-use scenarios.

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