Skip to main content
Glama

ao_kg_add

Adds a subject-predicate-object fact to the knowledge graph, with an optional validity window, so agents can store temporal, citable relationships.

Instructions

Add a fact (triple) to the knowledge graph. Subject-predicate-object with optional validity window.

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": {
      "subject": "<subject>",
      "predicate": "<predicate>",
      "object": "<object>"
    },
    "name": "ao_kg_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
objectYesObject entity.
sourceNoSource file or drawer reference.
subjectYesSubject entity.
predicateYesRelationship verb.
principalNoUser/agent id to act as (ACL + audit actor); ignored if the server pins $OMPA_PRINCIPAL
valid_fromNoStart date (YYYY-MM-DD).
vault_pathNo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it only notes the optional validity window. It does not say whether duplicate triples are deduplicated, whether the call is idempotent, what ACL checks the principal triggers, or what is returned on success or conflict.

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?

Two short sentences with the core operation front-loaded and no filler. Slight under-specification rather than verbosity is the issue.

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?

This is a mutation tool with seven parameters, no annotations, and no output schema, so the description is the only place to explain write semantics, error/conflict behavior, and return value. It covers none of these, leaving an agent unable to predict what happens when a triple already exists or what the call produces.

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 86%, so the schema already documents subject, predicate, object, source, principal, and valid_from. The description's 'optional validity window' phrasing hints at temporal scoping but adds little beyond the schema fields and does not explain how valid_from interacts with queries (e.g., ao_as_of).

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: 'Add a fact (triple) to the knowledge graph', with the subject-predicate-object shape spelled out. An agent can tell this writes graph data, though nothing distinguishes it from siblings like ao_kg_populate or ao_import.

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?

No when-to-use, when-not-to-use, or alternative is named. An agent must infer from the name alone whether this is the right tool versus ao_kg_populate (likely bulk ingestion) or ao_write; the description offers no routing signal.

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