Skip to main content
Glama
YARlabs

HyperspaceDB MCP Server

Official
by YARlabs

hyperspace_link_batch

Atomically bulk-insert explicit directed edges into a collection's CSR graph, specifying source, target, relation, and optional weight for each edge.

Instructions

Bulk-insert explicit directed edges in CSR graph atomically. Parameters: collection, edges array of {source_id, target_id, relation, weight}.

Input Schema

NameRequiredDescriptionDefault
edgesYes
collectionYesCollection name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.2.0

TDQS

B3.1/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 disclose one meaningful trait: the insert is atomic. It says nothing about duplicate/conflict handling, whether the collection must pre-exist, required permissions, or what happens if one edge in the batch is invalid.

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 front-loaded sentences with the atomicity guarantee up front and no filler. The trailing parameter recitation is largely redundant with the schema, costing it the top score.

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 mutation tool with no annotations and no output schema, the description omits return information (insert count? per-edge error detail?), duplicate/conflict semantics, and prerequisites. Atomicity alone doesn't cover the gaps an agent needs before calling it on real data.

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 coverage is only 50% — only `collection` is documented, and as 'Collection name', which adds nothing. The description recites the edge object's fields (source_id, target_id, relation, weight), all of which the schema already enumerates, and adds no meaning such as relation string conventions, weight range/defaults, or whether relation is optional.

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 into a CSR graph — with 'bulk' and 'explicit' implicitly separating it from single-edge linking and edge induction. It never names the sibling tools, so the differentiation is inferential rather than explicit.

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?

'Bulk-insert' implies the batch case versus hyperspace_link for single edges, but no condition, prerequisite, or alternative is stated. An agent must infer when this is preferable to hyperspace_link or hyperspace_induce_edges.

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