Skip to main content
Glama

sim_link

Destructive

Record a typed edge between two stored entities (models, prompts, artifacts, maps, collections, bindings, relations — not witnesses), using a registered predicate. sim_link writes these (subject → object): @type (model → a https://sim.pflow.xyz/ns/models/v1 type name); about (artifact/prompt/map/collection → model/collection/binding/system); broader (model/collection/system → model/collection/system); cites (any entity → any entity); closeMatch (model → model); hasMember (collection → any entity); related (model/collection/system → model/collection/system). from, to and feeds are recorded only by sim_bind, produced only by sim_prompt/sim_reroll, supersededBy only by sim_supersede_model, migratedFrom only by sim_accept_migration; narrower is broader read backwards and is never stored; structural predicates (isomorphicTo, subnetOf, preservesInvariant, refines) are recorded only by sim_prove, together with the witness that proves them. Each is refused here, naming the tool that records it (or the reversed call, for narrower). Subject and object must be stored entities of the kinds the predicate relates, passed by content id (for @type, the object is a /ns/models/v1 type name). Full definitions at https://sim.pflow.xyz/ns/predicates/v1. Distinct from the Lineage a model/prompt/artifact already carries, which is specifically derivation (parent -> prompt -> child). Who may write an edge is its predicate's write rule (writeRule in the registry): hasMember is subject-owner — only the collection's owner (who created it with sim_create_collection) adds members, and a collection created before collections had owners takes no new ones; every other predicate sim_link writes is any-signed-in, an assertion attributed to you. A refusal names the rule. Edges are immutable and are never retracted. Linking the same subject/predicate/object again as the same user — either direction for a symmetric predicate — is idempotent: it returns the existing relation's id (existing: true) rather than recording a duplicate edge. Needs sign-in (opens OAuth the first time); the edge is attributed to you; costs 1 compute token. Writes one Relation, or nothing when it already exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
objectYescontent id of the stored entity the edge points to; for @type, a type name from https://sim.pflow.xyz/ns/models/v1
subjectYescontent id of the stored entity the edge starts from
predicateYesone of @type, about, broader, cites, closeMatch, hasMember, related

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / object / description
      Previous value: -"id of the entity the relation points to"New value: +"content id of the stored entity the edge points to; for @type, a type name from https://sim.pflow.xyz/ns/models/v1"
    • changedInput schema / properties / predicate / description
      Previous value: -"the relationship, e.g. hasMember, cites, supersedes — no fixed vocabulary"New value: +"one of @type, about, broader, cites, closeMatch, hasMember, related"
    • changedInput schema / properties / subject / description
      Previous value: -"id of the entity the relation starts from"New value: +"content id of the stored entity the edge starts from"
  2. First observed

TDQS

A4.1/5.0
Behavior1/5

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

The description explicitly claims 'Linking the same subject/predicate/object again as the same user ... is idempotent: it returns the existing relation's id ... rather than recording a duplicate edge', while the annotations declare idempotentHint=false. The text says the annotation is wrong, which is a direct contradiction an agent could act on. (The otherwise rich detail — auth, attribution, cost, immutability, refusal rules — cannot offset the conflict.)

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?

Purpose is front-loaded in the first sentence and almost every clause carries operational information (refusals, ownership, idempotency, cost). It is, however, a single dense paragraph with long semicolon chains that could be broken into predicate list vs. behavior, making it harder to scan than its content warrants.

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?

There is no output schema, and the description closes the loop itself by stating what is written ('one Relation, or nothing when it already exists') and the existing:true signal. Combined with the auth requirement, compute-token cost, attribution, immutability, and refusal semantics, an agent has everything needed to invoke and interpret this call.

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

Parameters5/5

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

Schema coverage is 100%, but the 'predicate' parameter has no enum in the schema, so the description carries the load: it enumerates every accepted predicate, gives each one's subject→object type signature, and specifies that 'object' is a /ns/models/v1 type name for @type and a content id otherwise. That is substantive semantics well beyond the field descriptions.

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?

The opening sentence states a specific verb+resource+scope ('Record a typed edge between two stored entities ... using a registered predicate') and immediately distinguishes this tool from siblings (sim_bind, sim_supersede_model, sim_prove, sim_accept_migration) by naming the predicates each of those owns. An agent can tell exactly what this tool writes and what it does not.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is exhaustively specified: the valid predicate set is enumerated with subject→object type constraints, predicates refused here are listed together with the tool that records them instead, and 'narrower' is called out as the reversed form of 'broader'. It also states when the call will be refused and why (write rule / ownership).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources