Skip to main content
Glama
mcp-hyperspace-memory

mcp-hyperspace-memory

Official
by YARlabs

memory_link_batch

Bulk-insert explicit directed edges between memories or entities in the CSR KAG graph atomically, enabling reliable knowledge-graph linking for agent memory workflows.

Instructions

Bulk-insert explicit directed edges between memories/entities in the CSR KAG graph atomically.

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": {
      "edges": "<edges>"
    },
    "name": "memory_link_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
edgesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.2.0

TDQS

B3/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, and it does supply one genuinely useful trait: the operation is atomic, so the agent knows a failure means no partial writes. It says nothing about duplicate/conflict handling (insert vs upsert), self-loop or cycle rejection, whether weight/relation default when omitted, or what the response contains (e.g., count of inserted edges).

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?

A single front-loaded sentence with no filler; the key constraint (bulk, atomic) appears immediately. It leans on domain jargon ('CSR KAG graph') that adds little for an agent choosing between tools, which is the only mild inefficiency.

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?

Given a nested edge array, zero annotation coverage, and no output schema, the description should say what a successful call reports (number of edges created?) and how failures/duplicates surface. Atomicity is covered, but return behavior and duplicate semantics are gaps an invoking agent would want closed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% on a nested array whose items have four properties (source_id, target_id, weight, relation). The phrase 'directed edges' usefully implies source→target direction, but weight semantics (scale, default), the allowed vocabulary or free-form nature of relation, and whether IDs must already exist are all undocumented in both schema and description.

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: bulk-insert of explicit directed edges between memories/entities, with atomicity noted. The word 'bulk' implicitly separates it from the singular memory_link and 'explicit' from memory_induce_edges, but neither sibling is named outright.

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?

There is no explicit when-to-use guidance, no statement of when to prefer memory_link for a single edge, and no mention of when memory_induce_edges (inferred edges) is the better choice. The adverb 'explicit' hints at the distinction but leaves the agent to infer the routing rule.

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