Skip to main content
Glama

ao_kg_query

Query all knowledge-graph facts about an entity, including historical snapshots by date, to retrieve citable context for an agent.

Instructions

Query the knowledge graph for all facts about an entity. Supports temporal queries with as_of date.

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": {
      "entity": "<entity>"
    },
    "name": "ao_kg_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoHistorical date (YYYY-MM-DD).
entityYesEntity name to query.
principalNoUser/agent id to act as (ACL + audit actor); ignored if the server pins $OMPA_PRINCIPAL
vault_pathNo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it implies a read-only retrieval and adds that results are the complete fact set for the entity, plus temporal semantics for as_of. It does not disclose ACL filtering effects of principal (the schema hints at this but the description does not), behavior when the entity has no facts, or anything about vault scoping.

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, front-loaded with the core purpose and followed by the temporal capability. There is no filler, though the second sentence is terse enough that it reads more like a feature tag than an explained capability.

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 four-parameter retrieval tool with no annotations and no output schema, the description covers the core query intent but skips vault_path entirely and does not explain how principal affects visibility. An agent can call it correctly with the required entity, but may mis-handle the optional parameters.

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 75% and the description reinforces meaning for two of four parameters: entity ('all facts about an entity') and as_of ('temporal queries'), the latter adding intent beyond the schema's bare format note. It says nothing about principal or vault_path, so half the parameter surface gains no extra meaning.

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 states a specific verb and resource ('Query the knowledge graph') plus scope ('all facts about an entity'), which is clearer than a bare name restatement. It does not, however, distinguish this from sibling readers such as ao_as_of or ao_search, leaving the agent to infer the boundary.

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 second sentence signals one usage mode (temporal lookup via as_of), which is a real hint about when that parameter matters. There is no explicit when-not guidance, no mention of prerequisites, and no routing to alternative tools for partial/textual lookups.

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