Skip to main content
Glama
people-context

people-context

add_group_membership

Record that an existing person held a role in an existing group, keeping concurrent and historical memberships with only confirmed dates.

Instructions

Record that an existing person held a role in an existing group.

Record only what was stated or confirmed. Leave dates out when they are unknown — never guess a school year or fill a January 1 date. temporal_basis is unknown (no dates), period (at least one known bound; a missing bound means unknown, not open-ended), or ongoing (asserted current, no end date); it is inferred from the dates when omitted, except that ongoing must be stated. role defaults to member. sensitivity defaults to personal. Concurrent and historical memberships are all kept.

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": {
      "person_id": "<person_id>",
      "group_id": "<group_id>"
    },
    "name": "add_group_membership"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNo
group_idYes
valid_toNo
person_idYes
confidenceNo
valid_fromNo
sensitivityNo
temporal_basisNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag non-read-only, non-idempotent, non-destructive behavior; the description usefully adds that concurrent and historical memberships are all retained, so repeated calls accumulate rather than replace. It also discloses default fills (role=member, sensitivity=personal) and the temporal_basis inference rules, though it says nothing about failure modes when person or group ids don't resolve.

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?

Purpose is front-loaded in the first sentence, followed by tightly packed rules with no filler. Every sentence conveys a distinct constraint (no guessing, temporal_basis semantics, defaults, retention).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter mutation with no output schema, the description covers the tricky temporal semantics well but omits what the call returns (e.g., a new membership id) and the meaning of confidence. An agent would need to guess on those points.

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 reported as 0%, so the description must carry parameter meaning; it explains temporal_basis values, the role and sensitivity defaults, and the missing-bound rule well. But it leaves confidence entirely undefined and says nothing about the expected date format for valid_from/valid_to, so several of the eight parameters remain opaque.

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 opening sentence gives a specific verb and resource ('Record that an existing person held a role in an existing group') and clarifies that both entities must pre-exist. It does not, however, distinguish this from close_group_membership or set_affiliation, which an agent must choose between in this sibling set.

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?

The description gives strong data-quality rules ('record only what was stated or confirmed', never guess dates) but these govern how to fill fields, not when to pick this tool over close_group_membership, set_affiliation, or set_relationship. Usage is implied rather than scoped against alternatives.

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