Skip to main content
Glama

memory_link_batch

Create multiple explicit graph relationships between memory pairs in a single batch. Specify source and target IDs, optionally set relationship type, to connect memories directly.

Instructions

Connect multiple pairs of memories with explicit graph relationships in a single batch.

Each item in the list should be a dict with 'source_memory_id', 'target_memory_id', and optional 'relationship' (defaults to 'RESPONDS_TO') keys.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
linksYes
Behavior2/5

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

Since annotations are absent, the description must disclose operational details, but it only says relationships are created. It does not state whether existing links are replaced, failed pairs rollback the whole batch, or what happens if memories are missing. The default 'RESPONDS_TO' is useful but not enough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely focused: first sentence states purpose and scope, second sentence explains the required shape of each list item. Every sentence earns its place, and the most important usage details are front-loaded.

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 one-parameter batch tool, the description explains how to structure a valid call, but does not cover failure modes, idempotency, or allowed relationship values. Since there is no output schema and no annotations, the definition leaves room for guesswork about return values and partial failures.

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

Parameters4/5

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

The schema only declares an opaque list with `additionalProperties: true`, so the description is the only source of parameter meaning. It clearly documents `source_memory_id`, `target_memory_id`, the optional `relationship`, and its default value. It lacks valid relationship values and exact ID types, but this is a solid compensatory 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?

The description uses a specific verb ('Connect'), a resource ('multiple pairs of memories'), and a clear scope ('in a single batch'). It distinguishes from the singular memory_link tool by emphasizing batch processing, though it does not explicitly name the alternative.

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 phrase 'in a single batch' implies that this tool is for linking many memory pairs at once, but it does not explicitly state when to prefer it over memory_link or when not to use it. The usage context is reasonable but left largely to inference.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/imattau/polypack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server