Skip to main content
Glama
people-context

people-context

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PEOPLE_CONTEXT_DBNoPath to the SQLite database file. Overrides the --db flag; if not set, the database location is resolved from the XDG config file, an OpenClaw workspace, or the XDG data directory.
PEOPLE_CONTEXT_DB_KEYNoEncryption key for SQLCipher at-rest encryption. This key is read only from this environment variable and is only needed when the server is installed with the encrypted extra.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

people-context stores durable, local-first knowledge about the people in the user's life: their names and aliases, how they relate to the user, their organisations and roles, and relevant past interactions. When the user mentions someone by name, nickname, or partial reference, call resolve_person first to find who they mean — prefer resolving before asking the user who someone is. After resolving an identity, use get_person_context for a bounded, sensitivity-aware context bundle. After resolving a person, use get_communication_guidance when communication help is requested. Use search_people for broader browsing and remember_person to record a new or updated person. When the user states one durable thing about someone directly, call remember once: it resolves the name, creates the person only if nobody matches, and records the note, affiliation, or relationship in one audited transaction — never guessing between similar names. Use stage_candidates only for concise structured proposals — not raw source text — that are left for later user review and never committed automatically. Ordinary read tools that take a person_id also accept person (a name) in its place; find_connection and the operator-elevated tools take ids only. The full usage guide is the people-context://guide resource; people-context://self is the user's own record. Read-only tools are safe to call freely; write and destructive tools are annotated so the client can gate them behind its normal approval flow.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
resolve_personA

Resolve a name, nickname, or partial reference to candidate people.

Call this first whenever the user mentions someone, before asking who they mean. Returns ranked candidates with a score and match reason. If two or more candidates are close, the result is flagged ambiguous and all are returned so you can disambiguate with extra context or a clarifying question. An empty candidate list means no confident match — use remember or remember_person to create a new record. Put distinguishing context in hints (org, role, relationship) rather than in query.

get_person_contextA

Assemble a minimal-disclosure context bundle for one person.

Pass person_id from resolve_person, or person (a name or alias) to resolve inline: an ambiguous name returns the candidates instead of context. Returns narrow identity fields, active relationships and affiliations, and one ranked facts/interactions slice capped by max_items. Set include_communication=true (or a purpose mentioning communication) to include communication traits. Sensitive and restricted records are never returned by this ordinary tool, and leave no trace that they exist. truncated says the item budget cut the list.

search_peopleA

Free-text search over stored people for browsing or lookup.

Broader than resolve_person: use this to list who is known that matches a query, rather than to pin down a single identity. Returns ranked candidates.

semantic_searchB

Search active people and safe interaction summaries by multilingual semantic similarity.

This optional local search requires an explicit pctx reindex --semantic first. It never downloads a model while serving a query and refuses to mix vectors from different model revisions.

remember_personA

Create a new person or update the existing one matching name.

Use this to durably record someone the user talks about. aliases is a list of {value, kind?, lang?, script?} objects (kinds: nickname, native_script, transliteration, handle, former_name, other); new aliases are merged into an existing record. An email address is contact information: store it as a handle alias, never as name. Set summary to describe who they are, and is_self=True only for the user themselves. Returns the person and whether it was created.

rememberA

Record one thing the user stated directly about one person, in a single call.

person is the name as said; a new person is created only when nobody matches. org/role record an affiliation. relationship (e.g. manager_of, friend_of) is from the user's point of view, or from subject, an existing person who is never created: person="Pu", subject="Dmitrii", relationship="reports_to" means Dmitrii reports to Pu. note is recorded as a fact, trait, or interaction; kind="auto" picks by keyword. Pass occurred_at for an earlier interaction, or the note is refused rather than dated today.

status: ambiguous or unconfirmed returns candidates and records nothing: ask, then call again with the exact name. Material extracted from a transcript goes through stage_candidates instead.

get_communication_guidanceB

Return sensitivity-gated signal for client-composed communication advice.

Pass person_id from resolve_person, or person (a name or alias) to resolve inline; an ambiguous name returns candidates instead of guidance.

set_communication_philosophyC

Store communication philosophy verbatim while auditing lengths only.

list_remindersA

List pull-based reminders, due-dated first and communication notes last.

Filter by person_id, or by person (a name or alias) resolved inline; omit both for every person's reminders.

set_reminderC

Create a reminder for an existing person.

kind is follow_up (dated, something to do), occasion (a date that recurs), or communication_note (undated guidance surfaced with the person's context).

complete_reminderB

Transition one active reminder to completed.

add_aliasB

Add a normalized-deduplicated alias to an existing person.

kind is one of nickname, native_script, transliteration, handle, former_name, or other, and defaults to other. The published schema carries the enum, so an unlisted value is refused before the alias is built rather than dropped.

remove_aliasA

Remove one alias, matched by normalized value, from an existing person.

Use this to undo a wrong alias, such as an email address stored as a name. The person and all of their other names and records stay intact. An alias that is not present returns removed: false and changes nothing; the canonical name is refused with alias_conflict (use rename_person instead).

update_aliasA

Correct one alias in place, matched by normalized value; omitted fields stay unchanged.

Keeps the alias's id. A new_value that normalizes to the canonical name or to another alias is refused with alias_conflict; an unknown alias is refused with alias_not_found. The result lists which of value, kind, lang, and script actually changed.

rename_personA

Replace a person's canonical name; the old name stays on as an alias.

Use this to correct a wrong name, such as an email address stored as the name: the old name is kept as a former_name alias, or as a handle when it is an email address, so it is still contact information and imports still match on it. An email address as the new name is refused with name_is_email; a name that already belongs to another person is refused with name_conflict.

set_relationshipC

Create a directed relationship between two existing people.

set_affiliationC

Create an affiliation, resolving an org id or get/creating by name.

record_factB

Record a time-aware fact about an existing person.

sensitivity defaults to personal; sensitive and restricted records are withheld from ordinary reads. Prefer remember for a single statement named by a person's name.

record_observationC

Record a subjective observation, separate from disclosed context.

record_traitB

Record a derived trait with validated category and provenance.

category is one of communication_style, temperament, values, preference, topics_to_avoid, or other. Cite the observation or interaction it rests on in evidence_note or evidence_ids where you can.

record_interactionB

Record a concise interaction summary after validating all participants.

correct_recordC

Correct whitelisted assertion fields in place with before/after audit.

supersede_factA

Close a fact that was true and open its replacement from an effective date.

Use this when a stored value was historically correct and the real-world state changed; correct_record remains the tool for a value that was simply wrong. The old fact keeps its person, predicate, value, and provenance and is closed the day before effective_from; the replacement inherits the old assertion's original end date, so a bounded claim is never widened into an open-ended one. Person, predicate, and the replacement's end date cannot be changed here. Omitting confidence or sensitivity inherits the old fact's.

Both rows commit together under one logical transaction, or neither commits.

get_relationship_graphB

Return active relationship structure around one person, capped for bounded disclosure.

Pass person_id from resolve_person, or person (a name or alias) to resolve inline.

find_connectionC

Return one shortest relationship path, or a structured not-connected result.

create_groupA

Create one identified group: a class, cohort, team, department, club, household, or community.

Every call creates a new group; an equal name is never treated as the same group. Use find_groups first and reuse the returned id when the user confirms it is the same one. organization_id must name an existing organization and only places the group under it — it creates no affiliation. sensitivity defaults to personal; a sensitive or restricted group is withheld from ordinary reads together with every membership in it.

add_group_membershipA

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.

close_group_membershipA

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.

find_groupsA

List groups whose normalized name contains name, optionally of one kind.

Results are candidates, not identity: two groups with the same name stay distinct, so ask the user which one is meant when several match. Sensitive and restricted groups are never returned by this ordinary tool. Ordered by normalized name then id; truncated reports more.

get_groupA

Return one group and a bounded page of its recorded memberships.

These are recorded memberships only: sharing a group is context, not proof that members know each other. Sensitive and restricted groups read as found: false, and sensitive or restricted memberships are omitted without affecting truncated.

list_group_membershipsA

Return a bounded page of one person's recorded group memberships with each group.

Pass person_id from resolve_person, or person (a name or alias) to resolve inline. Only ordinary memberships in ordinary groups are returned. An unknown or removed person returns found: false.

explain_shared_connectionsA

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.

get_stale_relationshipsC

Return people you have not interacted with recently, using ordinary interactions only.

get_person_timelineA

Return one person's recent history, newest first, as a bounded chronology.

Pass person_id from resolve_person, or person (a name or alias) to resolve inline.

Entries project durable records — interactions, observations, facts, affiliations, relationships, and traits — with the stored timestamp each was placed by and which field that was. Sensitive and restricted records are never returned by this ordinary tool, and a trait names only evidence that is itself ordinary. An unknown or removed person returns found: false rather than an error.

get_consolidation_contextA

Return one person's stored facts, traits, observations, and affiliations and how they relate.

Pass person_id from resolve_person, or person (a name or alias) to resolve inline.

Use this before proposing maintenance. signals names pairs of records that share a predicate or category and says how they stand — duplicate_fact, restated_fact, contradictory_fact, succeeding_fact, duplicate_trait, divergent_trait — comparing normalized values and inclusive validity periods only. It decides nothing: reading the evidence and proposing a correct_record, a supersede_fact, or a merge_people for the user to approve is your job, and several observations supporting one trait are separate evidence rather than duplicates.

affiliations carries the person's stored roles at organizations — employment, education, membership — with their ids, dates, provenance, and any import receipt, so an incoming CV claim can be checked against what is already recorded. It has its own page and its own affiliations_truncated flag, and no signal is computed over it: two roles at one organization may be a promotion, a rehire, or two concurrent posts, and only you can read which. A valid_to of null means the stored assertion set no end, not that the role is confirmed current, and created_at is when the row was written rather than when the role began. A page that truncates is not evidence that a role is absent.

This read never writes. Sensitive and restricted records are never returned, and a trait names only evidence that is itself ordinary. Affiliations carry no disclosure level at all, so this collection adds no sensitivity control and is no route to a protected fact — background that needs one belongs in a fact. An unknown or removed person returns found: false rather than an error.

upcoming_datesB

Return ordinary birthdays and dated active reminders inside an inclusive upcoming window.

Optionally narrow to one person by person_id or by person (a name or alias).

merge_peopleB

Merge a duplicate person into a primary person atomically.

forgetC

Hard-delete a person or record and redact identifying audit history.

import_contentA

Extract and atomically stage header-only candidates from a supported source without bodies.

Accepted source_type values are email, mbox, vcard, ics, linkedin, outlook, and whatsapp. self_sender is an optional chat-export label for the user, such as a display name or a bare phone number, used to omit the user's own messages.

A path import records a receipt for the file it read, so importing that exact file again reports the existing batch instead of staging a second copy. forced says the repeat is intentional: it stages the same content as a distinct processing session and never weakens the duplicate rule for later calls. It is also the only way past source_previously_redacted after a hard forget — and for mbox, which is read from a path and cannot be resubmitted as inline content, the only way at all.

stage_candidatesA

Stage agent-extracted people, interactions, records, relationships, groups, and memberships.

Candidate types are person, interaction, affiliation, fact, observation, trait, relationship, group, and group_membership. Stage every candidate from one source in a single call. Required fields, beyond type; any key the type does not declare is refused: person ref, name (optional aliases); affiliation person_ref, org, role; fact person_ref, predicate, value; observation person_ref, text; trait person_ref, category, value, evidence_note, confidence; interaction summary, participant_refs, date; relationship from_ref, to_ref, relationship_type; group ref, name, kind; group_membership person_ref, group_ref. Only person and group carry a ref; the rest point at one, and refs are batch-local. Staging matches each person against stored people, so do not resolve names first. An email address is a {"value": <address>, "kind": "handle"} alias, never a name.

A fact is stated, an observation happened in this source, and a trait is inferred. Never put raw source text in a field, and leave out a relationship the user would consider sensitive. Staging writes nothing durable: the user reviews with review_import and accepts with commit_import. Before staging stated_by, trait evidence, groups and memberships, dates, or the receipt fields source_kind, label, content_digest, extraction_fingerprint, and external_source_id, read the "Staged capture" and "Documents and shared contexts" sections of the people-context://guide resource.

review_importA

Return staged candidates and statuses for one batch.

The response carries a batch_digest. Pass it back to amend_candidate, withdraw_candidates, or commit_import to have the action refused if somebody else changed the batch after this read.

A new-person row may carry possible_matches: existing people sharing its given name or a short form of it. They are not matches. Ask the user; to reuse one, pass its id as matched_person_id to amend_candidate, otherwise commit to create a new person. A row with name_is_email: true stays unresolved at commit: ask the user for the person's name and amend name to it, keeping the address as a handle alias.

amend_candidateA

Correct one staged candidate before it is committed, returning the revised batch.

The patch replaces the named fields and leaves the rest alone. Nothing is committed: confirming an amendment is not acceptance of the batch.

withdraw_candidatesA

Drop staged candidates from consideration, returning the revised batch.

A withdrawn candidate stays listed as rejected so the user can see what was dropped, and is never committed. Nothing else about the batch changes.

commit_importA

Commit accepted people and resolvable interactions idempotently.

The receipt is the verification: an id in committed_ids is stored. Read records back only for ids in unresolved_ids or skipped_ids, or when the user asks to see them. Accepting a withdrawn candidate refuses the whole commit. Supplying the expected_batch_digest from the review the user approved refuses it if the batch moved after they saw it.

Prompts

Interactive templates invoked by user choice

NameDescription
whoIdentify one person and read what is stored.
rememberRecord one direct statement with the `remember` tool, or stage extracted material for review.
meeting_prepOne short brief per attendee from stored context, guidance, and open follow-ups.
end_of_session_captureReview what was learned about people and stage it for the user to review; never commit.
maintenance_reviewRead timeline and consolidation signals, then propose corrections and wait for approval.

Resources

Contextual data attached and managed by the client

NameDescription
people-context-guideResolution-first reads, context vs. guidance, meeting prep, and propose-then-commit capture.
people-context-selfNarrow identity of the person marked as self: id, canonical name, aliases, summary.

TDQS

B3.1/5.0

Scored across 44 tools

Disambiguation3/5

Most tools are differentiated by resource and action, but several overlap noticeably: resolve_person, search_people, and semantic_search all serve identity lookup with only subtle distinctions, and remember vs record_fact vs remember_person blur the boundary for recording information. Correct_record vs supersede_fact vs amend_candidate, and the several context-reading tools, are well distinguished by their descriptions, but an agent could still misselect among the search and record families.

Naming Consistency4/5

The dominant pattern is verb_noun (remove_alias, resolve_person, record_trait, get_person_timeline, add_group_membership), which is applied across people, groups, reminders, and imports. A few deviations exist—remember (bare verb), semantic_search (adjective_noun), upcoming_dates (noun phrase), and forget—but they remain readable and mostly predictable.

Tool Count2/5

44 tools is well above the typical 3-15 range and even the 25+ heavy threshold. The domain (people, relationships, groups, reminders, imports) is broad, but the surface feels sprawling, especially with three search variants and many read slices that could be consolidated.

Completeness4/5

Coverage is strong: CRUD for people, alias lifecycle (add/update/remove/rename), facts, traits, observations, interactions, relationships, affiliations, groups, memberships, reminders, import staging/commit, merge, and forget. Minor gaps remain—no update or delete for reminders, no removal of relationships/affiliations, no group update—but these are workable with existing tools.

Maintenance

ActivityActive
ResponsivenessLimited data