Skip to main content
Glama
people-context

people-context

close_group_membership

Record the end date for a historically accurate group membership when someone leaves; earlier facts stay intact, and invalid or already-ended records are refused.

Instructions

Record the last day a historically true membership held.

Use this when someone left a group; the membership's earlier facts are preserved. It refuses a membership that already records an end (already_ended) or an end before its start (ends_before_start). Use correct_record with entity type group_membership when a stored membership was simply wrong.

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": {
      "membership_id": "<membership_id>",
      "ended_on": "<ended_on>"
    },
    "name": "close_group_membership"
  }
}

Input Schema

NameRequiredDescriptionDefault
ended_onYes
membership_idYes

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false; the description adds genuinely new behavior: earlier facts are preserved (a close, not a delete), and the two refusal paths with their error codes `already_ended` and `ends_before_start`. That error-code disclosure is exactly the kind of context annotations cannot carry, though it stops short of saying what the call returns on success.

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?

Three short sentences, front-loaded with the action, then the trigger, then the exclusion. The only cost is the slightly opaque phrase 'historically true membership held', which the following sentence has to decode.

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 two-parameter mutation with annotations covering the safety profile and no output schema, the definition covers purpose, trigger, validation failures, and the sibling alternative. Remaining gaps are minor: success response shape and date format for `ended_on`.

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 must carry both parameters; it gives real meaning to `ended_on` ('the last day a historically true membership held') and implicitly its relation to the start via the `ends_before_start` rule. However, it never states a date format or any constraint on `membership_id` (e.g. whether it accepts an external ID), so the compensation is partial.

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 opens with a specific verb and resource: 'Record the last day a historically true membership held', and the second sentence disambiguates it as the 'someone left a group' case rather than a correction. Combined with the explicit pointer to `correct_record` for the wrong-data case, an agent can separate this from `add_group_membership` and `correct_record` 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 Guidelines5/5

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

It states the triggering condition ('Use this when someone left a group') and names the alternative tool plus the exact entity type to use when the stored record was simply wrong. Both the when-to-use and the when-not-to-use case are explicit, leaving little to inference.

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