Skip to main content
Glama
people-context

people-context

explain_shared_connections

Read-only

Identifies shared groups and overlapping dates between two people to explain how they know each other for introductions, shared-background questions, and connection checks.

Instructions

Explain how two people are connected through groups they were both recorded in, and when.

Use for shared-background, introduction, and "how do they know each other" questions. Pass each person as an id (person_a_id, person_b_id) or a name (person_a, person_b).

Each connection is one membership of each person in the same group, cited in full. label is classmates (both student in a class) or teammates (both participant in a team) only when the recorded dates prove a common day (temporal: overlap, with the overlap period); otherwise the connection is shared_context only. temporal is disjoint when the dates exclude a common time and unknown when they cannot tell. Sharing a club, household, or community is not friendship, kinship, or acquaintance; different groups under one organization, and people linked through a third person, share nothing here. direct_relationships are recorded relationships between the two, kept apart from derived results. No result means no shared group was found, not that they do not know each other. Only ordinary groups and memberships are used; truncated and memberships_truncated report a partial answer.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "explain_shared_connections"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
person_aNo
person_bNo
person_a_idNo
person_b_idNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, and the description goes well beyond that: it defines the `label` values (classmates/teammates) and the exact condition that produces them, defines `temporal` states (overlap/disjoint/unknown), exposes truncation flags (`truncated`, `memberships_truncated`), and separates `direct_relationships` from derived output. It also discloses the crucial negative-result semantics that no result means no shared group rather than no acquaintance.

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 and usage lead, followed by output semantics and then scope caveats, so the important material is front-loaded. The label/temporal sentence is densely packed with nested backticks and conditions, costing some readability, but no sentence is filler.

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?

With no output schema, the description does the heavy lifting on return values and does it well, covering labels, temporal states, truncation, and direct relationships. Remaining gaps are the `limit` parameter's effect, mixed name/id handling, and behavior when neither person is supplied.

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 0%, so the description has to carry parameter meaning, and it does explain the id-vs-name pairing for `person_a`/`person_a_id` and `person_b`/`person_b_id`. However it never mentions `limit` (default 50), does not say whether a name and an id may be mixed for the two people, and does not state what happens when a person argument is omitted entirely — notable since no parameter is required.

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 names a specific operation (explain how two people are connected) and its mechanism (shared group memberships with recorded dates), which is far more precise than the bare tool name. It distinguishes derived connections from `direct_relationships`, but never names the sibling tools (`find_connection`, `get_relationship_graph`) that an agent might confuse it with.

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

Usage Guidelines4/5

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

It gives explicit triggers ('shared-background, introduction, and "how do they know each other" questions') and useful negative scope: clubs, households, communities, cross-organization groups, and third-party links 'share nothing here'. It also warns that an empty result is not proof of no relationship. What is missing is a named alternative tool for when the caller actually wants a recorded direct relationship.

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