contacts

A command set for managing contacts and contact groups through the Nylas command-line tool. It can list contacts, display contact details, and create or update records.

In plain words
What is it for?
Use it to list contacts, find a person by email, inspect contact IDs and details, and manage contact records and groups through Nylas.
Why use it?
It provides a terminal-based way to work with address-book data without manually navigating a contact-management interface. Filters can narrow results by email or source.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/nylas/cli/contacts
Clone the repo
git clone --depth 1 https://github.com/nylas/cli
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,913 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01913
Opus 5 $0.00000 $0.00957
Sonnet 5 $0.00000 $0.00383
Haiku 4.5 $0.00000 $0.00191

Measured yesterday against content hash c2d56f6ab74e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

contacts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/contacts.md · 303 lines

How it starts

The opening of the file, as written. The whole thing — 303 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Contacts Management

Manage contacts and contact groups.

List Contacts

nylas contacts list [grant-id]
nylas contacts list --limit 100
nylas contacts list --id                      # Show contact IDs
nylas contacts list --email "[email protected]"
nylas contacts list --source address_book

Example output:

$ nylas contacts list --limit 5

Found 5 contact(s):

NAME                EMAIL                      PHONE            COMPANY
Alice Johnson       [email protected]          +1-555-0101      Acme Corp - Engineer
Bob Wilson          [email protected]            +1-555-0102
Carol Davis         [email protected]           +1-555-0103      Startup Inc - CEO
David Brown         [email protected]                             Freelancer
Eve Martinez        [email protected]            +1-555-0105      Acme Corp - Designer

Show Contact

nylas contacts show <contact-id> [grant-id]
nylas contacts get <contact-id>  # Alias

Example output:

$ nylas contacts show contact_abc123

Alice Johnson

Work
  Job Title: Software Engineer
  Company: Acme Corporation
  Manager: John Smith

Email Addresses
  [email protected] (work)
  [email protected] (personal)

Phone Numbers
  +1-555-0101 (mobile)
  +1-555-0102 (work)

Addresses
  (work)
    123 Main Street
    San Francisco, CA 94102
    United States

Web Pages
  https://linkedin.com/in/alice (linkedin)
  https://github.com/alice (profile)

Personal
  Nickname: Ali
  Birthday: 1990-05-15

Notes
  Met at the tech conference in 2023.

Details
  ID: contact_abc123
  Source: address_book

Create Contact

nylas contacts create [grant-id]
nylas contacts create --first-name "John" --last-name "Doe" --email "[email protected]"
nylas contacts create --first-name "Jane" --last-name "Smith" \
  --email "[email protected]" --phone "+1-555-123-4567" \
  --company "Acme Corp" --job-title "Engineer"

Example output:

$ nylas contacts create --first-name "John" --last-name "Doe" --email "[email protected]"

✓ Contact created successfully!

Name: John Doe
Email: [email protected]
ID: contact_new_123

Read the full file on GitHub · 303 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 303 lines · 0 tokens per session scan A c2d56f6ab74e

Subscribe to this mod's changes

contacts is a command published in the GitHub repository nylas/cli (68 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,913 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.