Skip to main content
Glama

Compare governed typed knowledge

dm.compare_governed_knowledge
Read-onlyIdempotent

Return a deterministic read-only diff between a workspace-scoped typed object and another stored version or validated proposed payload. It never changes governed state.

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": {
      "knowledge_type": "<knowledge_type>",
      "object_id": "<object_id>"
    },
    "name": "dm.compare_governed_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
object_idYes
compare_to_idNo
knowledge_typeYes
proposed_payloadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds only 'deterministic' and 'never changes governed state', the latter largely restating the annotations; it says nothing about permissions, error behavior, or diff granularity.

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?

Two tight sentences, zero filler, with the operation and the read-only guarantee front-loaded. Nothing could be cut without losing meaning.

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 four-parameter read-only operation with full annotation coverage, the definition covers the essential contract. The remaining gap is modest: with no output schema, the shape of the returned diff is left unspecified, though 'diff' is a reasonably conventional concept.

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 0%, so the description must carry parameter meaning, and it partially does by mapping object_id/knowledge_type to 'workspace-scoped typed object', compare_to_id to 'another stored version', and proposed_payload to 'validated proposed payload'. It does not explain precedence when both compare_to_id and proposed_payload are provided, nor what happens when both are null.

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?

States a specific verb and resource: returns a diff between a workspace-scoped typed object and either a stored version or a proposed payload. The 'compare' framing is naturally distinct from the approve/propose/get siblings, though the description never names an alternative to reinforce that distinction.

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

Usage Guidelines2/5

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

The two comparison modes (stored version vs. validated proposed payload) hint at usage, but there is no explicit when-to-use or when-not guidance. Nothing tells the agent why to compare rather than call dm.get_governed_knowledge twice, nor what to do when neither compare_to_id nor proposed_payload is supplied.

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