Skip to main content
Glama

bulk_ensure_links

Create multiple directed links between eLabFTW entities from a JSON pair list in one idempotent call, with per-pair results and optional dry-run.

Instructions

Idempotently create several directed links in one call. 'pairs_json' is a JSON array of {from_type, from_id, to_type, to_id} objects, at most bulk_links_max_pairs entries. WRITE OPERATION when dry_run=false — requires the link write scope. Returns a per-pair result list plus a summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNo
trace_idNo
pairs_jsonYes
continue_on_errorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the safety burden and does so well: it declares idempotency, flags the write only under dry_run=false, names the required link write scope, and states the return shape. It does not explain failure behavior or what continue_on_error actually does, leaving one gap.

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?

Three tight sentences, front-loaded with purpose and the parameter contract before the operational caveat. Dense but every clause carries information; only a minor lack of labeling on the parameters keeps it from top marks.

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

Completeness4/5

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

An output schema exists so return values need only a pointer, and the description gives purpose, idempotency, write semantics, required scope, and the batch limit. The residual gaps are the undocumented trace_id/continue_on_error semantics, which matter for a batch tool with error-handling options.

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 0%, so the description must compensate. It fully specifies the critical pairs_json parameter (JSON array shape, the four object fields, and the bulk_links_max_pairs bound), but trace_id and continue_on_error are never explained, leaving half the parameters opaque.

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 and resource ('create several directed links in one call') and adds the defining trait 'idempotently', which separates it from the single-link sibling ensure_link and from bulk_delete_links. An agent can identify the tool without opening the schema.

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 batching clause ('several ... in one call', plus the bulk_links_max_pairs cap) implies this is the multi-link path versus ensure_link, but the description never names the alternative or states the when-not condition. Usage is inferable rather than explicit.

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