Skip to main content
Glama

task_relationship_add

Create an approved typed relationship between two non-Trash tasks and log it on both.

Instructions

Create an approved typed relationship between two non-Trash tasks and log it on both tasks.

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": {
      "taskId": "<taskId>",
      "targetTaskId": "<targetTaskId>",
      "relationTypeCode": "<relationTypeCode>"
    },
    "name": "task_relationship_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesNumeric source task ID.
targetTaskIdYesNumeric related target task ID.
relationTypeCodeYesStable relationship type code from task_relationship_options.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the description's burden is lower. It still earns credit for two facts the annotations do not convey: the relationship is recorded on both tasks (bidirectional side effect) and it only accepts approved type codes against non-Trash tasks. It stops short of saying what happens on a duplicate or invalid pair.

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?

A single front-loaded sentence with no filler; every qualifier (approved, typed, non-Trash, logged on both tasks) carries information an agent needs before calling.

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?

For a three-parameter mutation with complete schema coverage and informative annotations, the description covers the essential preconditions and the dual-write behavior. The residual gap is failure semantics (duplicate relationships, invalid or Trash targets), which is minor given a non-idempotent, non-destructive create.

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 description coverage is 100%, so the three parameters are already documented and the baseline is 3. The description adds the meaningful constraint that the type code must be "approved" and both tasks non-Trash, but it adds no syntax or format detail beyond the schema.

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 description states a specific verb ("Create") and resource ("typed relationship between two tasks") with two meaningful scope qualifiers: the relationship type must be approved and both tasks must be non-Trash. That is enough for an agent to distinguish it from task_relationship_delete, task_relationship_list, and task_relationship_options without opening any 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?

Usage is implied rather than stated: "non-Trash tasks" and "approved" type codes communicate preconditions, but the definition never says when to reach for this tool versus task_relationship_list or task_relationship_options, nor does it explicitly warn that types must first be looked up. The pointer to task_relationship_options lives in the schema, not the description.

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