Skip to main content
Glama
people-context

people-context

commit_import

Commit accepted people and resolvable interactions from an import batch idempotently, using the returned receipt to verify stored IDs and reject stale or withdrawn batches.

Instructions

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.

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>",
      "accepted_ids": "<accepted_ids>"
    },
    "name": "commit_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idYes
accepted_idsYes
expected_batch_digestNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "commit_importDictOutput",
      -  "type": "object"
      -}New value: +null
  2. Changed1 schema field changedv1.3.0
    • addedInput schema / properties / expected_batch_digest
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Expected Batch Digest"
      +}
  3. First observedv1.1.1

TDQS

A3.5/5.0
Behavior2/5

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

The description adds genuinely useful behavior beyond the annotations: all-or-nothing refusal on withdrawn candidates or a stale expected_batch_digest, and the meaning of committed_ids/unresolved_ids/skipped_ids despite there being no output schema. But it calls the operation 'idempotent' while the annotations declare idempotentHint=false, which could lead an agent to retry a commit assuming it is safe.

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 the action, then the receipt semantics, then the two refusal conditions. Most sentences earn their place, though 'The receipt is the verification' is an indirect way to say committed_ids confirms storage and could be tightened.

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 three-parameter mutation with no output schema, the description covers what the caller needs: what confirms success, when to re-read, and the two failure modes. Missing are scope details such as whether a commit is partial across accepted_ids or what a refusal returns.

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 carries the load and does explain expected_batch_digest well (take it from the review the user approved; it refuses if the batch moved). batch_id and accepted_ids are left uninterpreted, including whether accepted_ids must come from the staged candidate set.

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 first sentence gives a specific verb and resource ('Commit accepted people and resolvable interactions') plus a modifier ('idempotently'), which is enough to distinguish it from siblings like stage_candidates and review_import in the import pipeline. It stops short of naming those siblings explicitly, so the boundary is implied rather than stated.

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?

Offers concrete routing guidance: read records back only for ids in unresolved_ids or skipped_ids, or when the user asks. It also states two preconditions that cause the whole commit to be refused. It does not say when to prefer this over review_import or stage_candidates, which a sibling-mapped agent would still have to infer.

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