Skip to main content
Glama
people-context

people-context

review_import

Read-only

Retrieve staged candidates and statuses for one import batch to review possible matches and unresolved names before amending, withdrawing, or committing.

Instructions

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.

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": {
      "batch_id": "<batch_id>"
    },
    "name": "review_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idYes

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.9/5.0
Behavior4/5

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

readOnlyHint=true already tells the agent this is a safe read, yet the description still adds real value: the batch_digest enables optimistic-concurrency refusal if the batch changed after the read, and it warns that possible_matches are explicitly 'not matches' and that name_is_email rows stay unresolved at commit. It does not describe pagination or the shape of 'statuses', which keeps it below a 5.

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?

The core action is front-loaded in the first line, followed by short paragraphs covering the digest token, possible_matches, and name_is_email edge cases. Each paragraph carries distinct information with no filler, though the workflow guidance could be tightened slightly.

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?

There is no output schema, so the description must explain the return: it covers the candidates list, statuses, batch_digest, and two special row shapes. That is a lot of the return semantics for a review tool; only pagination and the enumeration of possible statuses are left undefined.

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?

The single parameter batch_id has no schema description (0% coverage). The description implies it identifies 'one batch' but never states where the id comes from (presumably import_content or stage_candidates) or its format. Some meaning is added over the bare schema field, but not enough to fully compensate for the coverage gap.

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?

States a specific verb and resource with scope: 'Return staged candidates and statuses for one batch.' That distinguishes it from stage_candidates (which creates stages) through implied read-vs-write, though the description never names an alternative explicitly. An agent knows what it gets without opening the schema.

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 downstream routing: pass batch_digest back to amend_candidate, withdraw_candidates, or commit_import. It also prescribes a workflow for possible_matches (ask the user; reuse via matched_person_id, otherwise commit creates a new person) and for name_is_email rows (amend name, keep the address as a handle alias). What's missing is an explicit statement of when to call this versus re-reading or other siblings, but the operational context is clear.

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