Skip to main content
Glama
people-context

people-context

set_relationship

Create a directed relationship between two existing people, specifying relationship type and optional validity, confidence, and label.

Instructions

Create a directed relationship between two existing people.

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": {
      "subject_id": "<subject_id>",
      "object_id": "<object_id>",
      "type": "<type>"
    },
    "name": "set_relationship"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
labelNo
valid_toNo
object_idYes
confidenceNo
subject_idYes
valid_fromNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "set_relationshipDictOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv1.1.1

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already disclose that this is a non-read-only, non-idempotent, non-destructive write, so the safety profile is covered. The description adds genuine context by saying the relationship is directed and that both endpoints must reference existing people. It omits the behavior most in question for a non-idempotent write: what happens on an exact duplicate, whether an existing relationship is replaced or a parallel one is created (relevant given the name 'set_'), and whether any permission or validation step gates the call.

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?

A single tightly worded sentence with no filler, and the core action is front-loaded. It errs toward under-specification rather than verbosity, but nothing in it is wasted.

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?

For a seven-parameter mutation with no output schema and no parameter documentation, one sentence is not enough. An agent lacks the relationship-type vocabulary, the meaning of subject vs. object beyond a hint, the temporal and confidence field semantics, and duplicate-handling behavior needed to invoke this correctly.

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

Parameters2/5

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

Schema description coverage is 0% across seven parameters, so the description must carry the load and does not. 'Directed' weakly implies that subject_id is the source and object_id the target, but the description never explains 'type' (no enum, no vocabulary given), 'label', 'confidence', or the 'valid_from'/'valid_to' temporal window, all of which are opaque from the schema.

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 states a specific verb and resource ('Create a directed relationship between two existing people') and adds defining constraints ('directed', 'existing'). It stops short of distinguishing itself from overlapping siblings like set_affiliation, record_fact, or add_group_membership, so an agent can't route confidently from this text alone.

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?

There is no when-to-use or when-not-to-use guidance and no named alternative, despite several siblings that plausibly overlap (set_affiliation, record_fact, add_group_membership, get_relationship_graph). The only implied usage signal is that both people must already exist, which is a prerequisite rather than a selection rule.

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