Skip to main content
Glama
people-context

people-context

set_affiliation

Creates an affiliation for a person by resolving an organization ID or finding/creating the organization by name, then records the role and optional validity and confidence.

Instructions

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

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": {
      "person_id": "<person_id>",
      "org": "<org>",
      "role": "<role>"
    },
    "name": "set_affiliation"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgYes
roleYes
valid_toNo
person_idYes
confidenceNo
valid_fromNo

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive write. The description adds real behavioral context beyond them: passing a name will get-or-create an org record, an implicit side effect on another entity. It still omits what happens on duplicate affiliations, whether existing roles are overwritten, and any permission requirements.

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?

A single front-loaded sentence with no filler, embedding the most surprising detail (org name resolution/creation) early. It is arguably over-compressed given the six-parameter surface, but nothing in it is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with six parameters, no output schema, and no annotation detail, one sentence is insufficient: an agent cannot tell what the temporal fields mean, whether the call is an upsert, or what a success response contains. The org-resolution note is the only thing saving it from being fully inadequate.

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

Parameters2/5

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

Schema description coverage is 0% across 6 parameters, so the description carries the full burden and covers only one: it clarifies that 'org' accepts either an id or a name. The semantics of role, person_id, valid_from, valid_to, and confidence (formats, null behavior, confidence scale) are entirely undocumented.

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 ('Create an affiliation') plus the secondary effect of resolving/creating an org, so the agent knows this links a person to an org. It does not differentiate itself from near-siblings like set_relationship or add_group_membership, and the verb 'create' is slightly at odds with the tool name set_affiliation, leaving upsert-vs-insert ambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to prefer this over set_relationship, add_group_membership, or record_fact, and no prerequisites such as whether the person must already exist via resolve_person. The only operational hint is how the 'org' argument is resolved (id or name), which is parameter guidance rather than usage guidance.

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