Skip to main content
Glama

write_relate

Relates two Targetprocess cards by creating a specified relation, such as dependency, blocker, link, or duplicate, while leaving identical relations unchanged.

Instructions

Relate two cards (Relation by default; Dependency, Blocker, Link, Duplicate, ...). An identical relation is left alone.

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": {
      "id": "<id>",
      "to": "<to>"
    },
    "name": "write_relate"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
toYes
relationNo
directionNooutbound (default): id is the master of to; inbound: to is the master

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.2.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / direction / description
      Added value: +"outbound (default): id is the master of to; inbound: to is the master"
    • removedInput schema / properties / id / anyOf
      Removed value: -[
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "pattern": "^\\d+$",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / id / type
      Added value: +"number"
    • removedInput schema / properties / relation / anyOf
      Removed value: -[
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "exclusiveMinimum": 0,
      -    "maximum": 9007199254740991,
      -    "type": "integer"
      -  }
      -]
    • addedInput schema / properties / relation / type
      Added value: +"string"
    • removedInput schema / properties / to / anyOf
      Removed value: -[
      -  {
      -    "maximum": 9007199254740991,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "pattern": "^\\d+$",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / to / type
      Added value: +"number"
  2. First observedv1.0.1

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. It usefully discloses idempotency — duplicate relations are not re-created — which is real behavioral context. However, it omits permission requirements, what happens on invalid ids, and whether an existing relation of a different type is modified or added alongside.

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 short sentences, front-loaded with the core action and the default relation type. The trailing '...' in the enumeration is loose but not wasteful; nothing is padded.

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?

A mutation tool with no annotations, no output schema, and 25% schema coverage needs more than this. The description never covers error behavior, permissions, return value, or the interaction between relation type and direction, leaving meaningful gaps for an agent to guess at.

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 only 25%, so the description must compensate. It adds meaning for the `relation` parameter by listing valid values and the default, but says nothing about what `id` and `to` represent beyond 'two cards', leaving the source/target semantics to the schema's `direction` 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?

Names a specific verb (relate) and resource (two cards) and enumerates the relation types (Relation default, Dependency, Blocker, Link, Duplicate), so the operation is unambiguous. It does not distinguish itself from the sibling delete_relation or other write_* tools, so it stops short of a 5.

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?

No statement of when to use this versus alternatives such as delete_relation or write_create_card, and no prerequisites or permission context. The only guidance-like sentence ('An identical relation is left alone') is a behavioral property, not usage direction.

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