Skip to main content
Glama
Pseudogiant-xr

PseudoLife-MCP

Official

memory_graph_relate

Destructive

Assert a typed relationship between two entities, auto-creating or resolving them through aliases and bumping confidence when an edge is re-asserted.

Instructions

Assert a typed relation between two entities, e.g. ("web-app", "runs-on", "host-1"). Entities auto-create and resolve through aliases; re-asserting an edge bumps its confidence. On a rejected relation, pick a suggestion, fall back to related-to, or grow the vocabulary deliberately via memory_relation_define.

Returns: {src, relation, dst, confidence, warnings} or {error: "unknown_relation", suggestions}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dstYesThe object entity.
srcYesThe subject entity.
originNoWho asserted the edge.
dst_typeNoEntity kind for ``dst``: set when the node is created, or filled in on an existing node that has none.
relationYesFrom the closed registry: ``depends-on``, ``part-of``, ``runs-on``, ``hosts``, ``uses``, ``configures``, ``stores-data-in``, ``related-to``. Separator variants normalise; an unknown name is rejected WITH the closest matches.
src_typeNoEntity kind for ``src``: set when the node is created, or filled in on an existing node that has none.
confidenceNoHow sure you are, 0..1.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.15.0
    • addedInput schema / properties / confidence / description
      Added value: +"How sure you are, 0..1."
    • addedInput schema / properties / dst / description
      Added value: +"The object entity."
    • addedInput schema / properties / dst_type / description
      Added value: +"Entity kind for ``dst``: set when the node is created, or filled in on an existing node that has none."
    • addedInput schema / properties / origin / description
      Added value: +"Who asserted the edge."
    • addedInput schema / properties / relation / description
      Added value: +"From the closed registry: ``depends-on``, ``part-of``, ``runs-on``, ``hosts``, ``uses``, ``configures``, ``stores-data-in``, ``related-to``. Separator variants normalise; an unknown name is rejected WITH the closest matches."
    • addedInput schema / properties / src / description
      Added value: +"The subject entity."
    • addedInput schema / properties / src_type / description
      Added value: +"Entity kind for ``src``: set when the node is created, or filled in on an existing node that has none."
  2. First observedv0.11.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare the mutation/safety profile (readOnly=false, destructive=true, idempotent=false), and the description adds meaningful behavior on top: entities auto-create and resolve through aliases, re-asserting an edge bumps confidence (which explains the non-idempotent hint), and unknown relations are rejected with suggestions. No contradiction with the annotations.

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?

Front-loads the action and an example, then behavior, then the return shape, in a compact paragraph with no filler. Dense but each sentence carries information; the only minor redundancy is restating the return shape despite an output schema existing.

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

Completeness5/5

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

For a 7-parameter mutation tool, the description covers the critical unknowns an agent needs: auto-creation side effects, alias resolution, confidence bumping on re-assert, the rejection/suggestion path, and the fallback tool. With full schema coverage and an output schema present, nothing essential is missing.

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 100%, so the schema already documents src/dst/relation/confidence/origin/types, including the closed relation registry and its normalisation/rejection behavior. The description reinforces the triplet shape with an example but adds no syntax or constraint detail beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb+resource ('Assert a typed relation between two entities') and grounds it with a concrete triplet example ("web-app", "runs-on", "host-1"). It also distinguishes itself from the vocabulary-management sibling memory_relation_define, so an agent can identify the tool's role without opening a schema.

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?

Gives explicit branch guidance for the failure case: on a rejected relation, pick a suggestion, fall back to related-to, or call memory_relation_define to grow the vocabulary. This names an alternative tool and the condition that selects it, though it does not state when to prefer this over other writes like memory_store or memory_set_add.

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