Skip to main content
Glama
people-context

people-context

stage_candidates

Stages agent-extracted people, interactions, facts, relationships, groups, and memberships from one source so users can review and commit imports without writing durable data.

Instructions

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.

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": {
      "source": "<source>",
      "candidates": "<candidates>"
    },
    "name": "stage_candidates"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNo
sourceYes
candidatesYes
source_kindNo
content_digestNo
external_source_idNo
extraction_fingerprintNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.3/5.0
Behavior4/5

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

Annotations mark this as a non-read-only, non-idempotent write; the description explains what that write actually is — a non-durable staging batch that matches persons against stored people and is discarded or promoted later. It also discloses hard validation behavior ('any key the type does not declare is refused') and that refs are batch-local. It does not say whether a repeat call creates a second batch or what the staging call returns, which matters for a non-idempotent tool.

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?

Front-loaded with purpose then type inventory, with zero filler sentences; the fact/observation/trait distinction and the workflow note are each stated once. The semicolon-chained required-field list is dense and hard to scan, but compressing it further would cost real information.

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 tool with an untyped array argument, no output schema, and 0% schema coverage, the description supplies most of what a caller needs: types, required keys, ref semantics, and the review/commit lifecycle. Gaps remain on what `source` should contain, whether one malformed candidate rejects the whole batch, and what the call returns beyond receipt fields.

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

Parameters4/5

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

Schema coverage is 0% and `candidates` is an untyped array of free-form objects, so the description carries the full burden — and it does, listing every type plus its exact required keys and the person/group ref conventions. The remaining five parameters (`source`, `label`, `source_kind`, `content_digest`, `external_source_id`, `extraction_fingerprint`) are only covered by a pointer to a guide resource rather than explained inline.

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?

Opens with a specific verb and enumerates the resource set it stages (people, interactions, records, relationships, groups, memberships), then names all nine candidate types explicitly. It also distinguishes itself from the direct-write siblings by stating that staging writes nothing durable and routes review to `review_import` / `commit_import`.

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?

Gives concrete procedural rules: stage every candidate from one source in a single call, do not resolve names first because staging matches people itself, and omit sensitive relationships. It clearly signals the staging-vs-commit workflow. It never explicitly contrasts with the direct-record siblings (`record_fact`, `record_observation`, `record_trait`), so a caller must infer when to stage instead of record directly.

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