GhostPaw Affinity
v0.7.3Local relationship model and social CRM for contacts, relationships, evidence, and commitments.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_affinity
Search contacts by name, identity, attributes, link roles, bonds and event text. All whitespace tokens must match. Dormant and lost contacts are excluded by default; use includeDormant and includeLost to include them.
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text or natural-key query. |
attribute | ||
includeDormant | boolean | Whether dormant contacts are included. |
includeLost | boolean | Include lost contacts (search excludes them by default). |
includeOwner | boolean | Whether owner contacts are included. |
kind | string | Optional contact kind filter. |
lifecycleState | string | Optional lifecycle state filter. |
limit | integer | Optional result limit. |
offset | integer | Optional result offset. |
scope | string | Search scope; defaults to contacts. |
tag | ||
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
review_affinity
Review one affinity surface such as contacts, journals, link queues, commitments, dates, graph state, or merge history.
| Parameter | Type | Description |
|---|---|---|
view * | string | Which review surface to return. |
attribute | ||
channel | string | Filter events by channel. |
commitmentType | string | Optional commitment type filter. |
contact | object | Optional target contact locator. |
contactIds | array | Optional contact-id subset. |
eventTypes | array | Optional event-type filter. |
exactOnly | boolean | Whether duplicate review is exact-only. |
horizonDays | integer | Optional horizon-days filter. |
includeArchived | boolean | Whether archived links are included. |
includeContent | boolean | Deprecated alias for --with-content; includes verbatim event content. |
includeDismissed | boolean | Whether dismissed pairs are included in duplicate review (marked with dismissed flag). |
includeDormant | boolean | Whether dormant rows are included. |
includeLost | boolean | Include lost contacts (search excludes them by default). |
includeObserved | boolean | Whether observed links are included. |
includeOwner | boolean | Whether owner contacts are included. |
includeStructural | boolean | Include structural ties as marked chart edges. |
kind | string | Optional contact kind or link kind filter, depending on the view. |
lifecycleState | string | Optional contact lifecycle-state filter. |
limit | integer | Optional result limit, 1..10000 (default 50); use offset for paging. |
link | object | Optional target link locator. |
linkState | string | Optional link state filter. |
minScore | number | Optional duplicate minimum score (default 0.5; use 0 for all candidates). |
momentKind | string | Optional moment kind filter. |
now | Optional current timestamp for overdue calculations. Accepts epoch milliseconds integer, ISO 8601 date-time with Z/offset, YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, yesterday, +3d or -2d. UTC midnight… | |
offset | integer | Optional result offset. |
recurrenceKind | string | Optional recurrence-kind filter. |
ref | object | |
refId | string | External reference id. |
refSource | string | External reference source. |
since | Optional lower timestamp bound. Accepts epoch milliseconds integer, ISO 8601 date-time with Z/offset, YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, yesterday, +3d or -2d. UTC midnight for dates; dueAt uses… | |
tag | ||
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
until | Optional upper timestamp bound. Accepts epoch milliseconds integer, ISO 8601 date-time with Z/offset, YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, yesterday, +3d or -2d. UTC midnight for dates; dueAt uses… | |
withContent | boolean | Include verbatim event content. |
inspect_affinity_item
Inspect one exact affinity item such as the owner profile, a contact profile, or one link detail.
| Parameter | Type | Description |
|---|---|---|
kind * | string | What to inspect. |
contact | object | Target contact. Required when kind=contact_profile. Provide contactId or identity. |
eventId | integer | Exact event id. |
link | object | Target link. Required when kind=link. Provide linkId or endpoints. |
recentEventsLimit | integer | Optional recent-events cap. |
ref | object | |
refId | string | External reference id. |
refSource | string | External reference source. |
topLinksLimit | integer | Optional top-links cap. |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
manage_contact
Create, revise, export or permanently delete a contact (confirm: true required; owner cannot be deleted). Export without contact exports the whole database. Lifecycle lost is soft delete. ALWAYS search_affinity first before creating — duplicates corrupt the graph.
| Parameter | Type | Description |
|---|---|---|
action * | string | Operation to perform. |
confirm | boolean | Required true for permanent deletion. |
contact | object | Target contact. Required when action=revise or set_lifecycle. Provide contactId or identity. |
input | object | New contact payload. Required when action=create. |
kind | string | Replacement contact kind for migrate_kind. Owner must remain human or agent. Audited without bond mechanics. |
lifecycleState | string | Target lifecycle state. Required when action=set_lifecycle. |
options | object | Optional lifecycle metadata. |
patch | object | Allowed contact patch. Required when action=revise. |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
merge_contacts
Merge one loser contact into one winner contact using explicit contact locators.
| Parameter | Type | Description |
|---|---|---|
loser * | object | Loser contact. Provide contactId or identity. |
winner * | object | Winner contact. Provide contactId or identity. |
now | Optional merge timestamp. Accepts epoch milliseconds integer, ISO 8601 date-time with Z/offset, YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, yesterday, +3d or -2d. UTC midnight for dates; dueAt uses UTC e… | |
reasonSummary | string | Optional merge reason. |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
manage_duplicate_dismissal
Dismiss or un-dismiss a duplicate candidate pair so it does not resurface in review_affinity contacts.duplicates.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action to perform. |
left * | object | Left contact. Provide contactId or identity. |
right * | object | Right contact. Provide contactId or identity. |
reason | Optional reason for the dismissal. | |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
manage_identity
Add, revise, verify, or remove one routing identity on a contact. Use this for emails, phone numbers, social handles, and URLs — anything that could locate a person. Do not use manage_attribute for these.
| Parameter | Type | Description |
|---|---|---|
action * | string | Operation to perform. |
contact | object | Target contact. Required when action=add. Provide contactId or identity. |
identityId | integer | Identity id. Required when action=revise, verify, or remove. |
input | object | New identity payload. Required when action=add. |
patch | object | Identity patch. Required when action=revise. |
removedAt | Removal timestamp. Optional for action=remove. Accepts epoch milliseconds integer, ISO 8601 date-time with Z/offset, YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, yesterday, +3d or -2d. UTC midnight for da… | |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
verifiedAt | Verification timestamp. Optional for action=verify. Accepts epoch milliseconds integer, ISO 8601 date-time with Z/offset, YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, yesterday, +3d or -2d. UTC midnight f… |
manage_relationship
Seed social links, revise bond and state, and manage structural ties. Seed a link as soon as a relationship is mentioned — do not wait for repeated evidence.
| Parameter | Type | Description |
|---|---|---|
action * | string | Operation to perform. |
bond | Bond text. Required when action=revise_bond. Null to clear. | |
from | object | Source contact. Required when action=seed_social_link or set_structural_tie. Provide contactId or identity. |
input | object | Full payload for seed_social_link or set_structural_tie. Alternative to top-level kind/role. |
kind | string | Link kind. Required for seed_social_link and set_structural_tie. Can be passed here or inside input. For seed_social_link: personal, family, professional, romantic, care, service, observed, other_rela… |
link | object | Target link. Required when action=revise_bond, override_state, or remove_structural_tie. Provide linkId or endpoints. |
options | object | Optional metadata. |
patch | object | Replacement link fields; cadenceDays null unpins. |
removedAt | Removal timestamp. Optional for action=remove_structural_tie. Accepts epoch milliseconds integer, ISO 8601 date-time with Z/offset, YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, yesterday, +3d or -2d. UTC… | |
role | string | Optional role for seed_social_link or set_structural_tie. Can be passed here or inside input. |
state | string | Link state. Required when action=override_state. |
to | object | Target contact. Required when action=seed_social_link or set_structural_tie. Provide contactId or identity. |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
record_event
Record one social event such as an interaction, observation, milestone, or transaction. For interactions, milestones, and transactions the owner contact is auto-injected into participants if missing. Observations may omit the owner when recording third-party evidence.
manage_commitment
Record or resolve one commitment such as a promise or agreement. The owner contact is auto-injected into participants if missing.
| Parameter | Type | Description |
|---|---|---|
action * | string | Operation to perform. |
commitmentEventId | integer | Commitment event id. Required when action=resolve. |
input | object | Commitment payload. Required when action=record. |
options | object | Optional metadata. |
resolution | string | How the commitment was resolved. Required when action=resolve. |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
manage_date_anchor
Add, revise, or remove recurring date anchors on contacts or links. Use this for birthdays, anniversaries, and yearly events — not manage_attribute.
| Parameter | Type | Description |
|---|---|---|
action * | string | Operation to perform. |
anchorEventId | integer | Anchor event id. Required when action=revise or remove. |
input | object | Date anchor payload. Required when action=add. |
options | object | Optional metadata. |
patch | object | Anchor patch. Required when action=revise. |
removedAt | Removal timestamp. Optional for action=remove. Accepts epoch milliseconds integer, ISO 8601 date-time with Z/offset, YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, yesterday, +3d or -2d. UTC midnight for da… | |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
manage_attribute
Set, unset, or replace custom metadata attributes on contacts, links and events. For emails, phones, handles, and URLs use manage_identity instead — those are routing keys, not attributes.
| Parameter | Type | Description |
|---|---|---|
action * | string | Operation to perform. |
entries | array | Key-value map to replace all attributes. Required when action=replace. |
name | string | Attribute name. Required when action=set or unset. |
removedAt | Removal timestamp. Optional for action=unset. Accepts epoch milliseconds integer, ISO 8601 date-time with Z/offset, YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, yesterday, +3d or -2d. UTC midnight for dat… | |
target | object | Attribute target. Always required. |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
value | Attribute value. Required when action=set. Null for presence/tag semantics. |
manage_event
Revise or delete one event by eventId or external reference. Delete requires confirm=true and recomputes affected relationships.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action. |
confirm | boolean | Must be true to delete. |
eventId | integer | Event id; provide eventId or ref. |
patch | object | Fields to revise; externalRef may only be added when absent. |
ref | object | |
refId | string | External reference id. |
refSource | string | External reference source. |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |
check_contactable
Check do-not-contact flags through works_at and member_of ties.
| Parameter | Type | Description |
|---|---|---|
contact * | object | Contact to check. |
tz | string | IANA time zone for due days and local calendar calculations; defaults to TZ or the process local zone. |