Skip to main content
Glama

locus_kg_match

Match subject-predicate-object patterns in the knowledge graph using wildcards, with optional as-of date filtering to retrieve facts and relationships.

Instructions

Pattern match over the KG with wildcard support. '' matches any value. Examples: match('Alice','','') — all Alice facts; match('','leads','') — all leadership; match('','works_at','Acme') — everyone at Acme.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "locus_kg_match"
  }
}

Input Schema

NameRequiredDescriptionDefault
objNoObject pattern ('*' for any).*
as_ofNoTemporal filter YYYY-MM-DD.
subjectNo*
predicateNo*
store_pathNo.locus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the wildcard matching semantics and, via the examples ('all Alice facts', 'everyone at Acme'), implies it returns matching facts. It says nothing about whether the operation is read-only, result limits/ordering, or behavior on zero matches.

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?

The rule is front-loaded ('*' matches any value) followed by compact, informative examples; there is no filler. It could be marginally tighter by naming the argument order in the examples rather than only showing values.

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?

For a five-parameter tool with no annotations and no output schema, the description leaves key gaps: the temporal filter and store_path are undefined, and the shape of the result is only guessable from example phrasing. An agent could construct a call but not confidently predict the response.

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 only 40%, and the examples cover three of the five parameters (subject, predicate, object) with wildcard behavior, which is genuine added meaning. However, as_of and store_path are never mentioned, and the positional example calls do not name which argument is which, so an agent could misalign them with the alphabetically ordered schema.

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 operation ('pattern match over the KG') and the three example calls make clear this is a subject/predicate/object triple match, which an agent can map to the schema. It does not distinguish itself from siblings like locus_query_entity or locus_traverse, so the agent must 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 three worked examples implicitly show when to reach for this tool (fact lookup by any combination of subject, predicate, object), and the wildcard rule 'matches any value' is clear. There is no explicit when-not guidance and no named alternative for entity lookup or graph traversal, leaving selection to inference.

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