Skip to main content
Glama

People Manage Contact Groups

people_manage_contact_groups

List, create, and update contact groups by adding or removing contacts in one group with a single call.

Instructions

Work with the user's contact groups (labels): 'list' pages through them, system groups such as myContacts and starred included; 'create' adds an empty group; 'modify_members' adds and removes contacts (from people_search_contacts) in one group in a single call. Every result echoes action. 'list' returns contact_groups (resource_name, the group_name to pass; name; group_type 'user' or 'system'; member_count), count, total and next_page_token; 'create' returns status 'ok' and contact_group; 'modify_members' returns status 'ok', group_name, not_found and cannot_remove_last_group (both empty when every change applied).

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": {
      "action": "<action>"
    },
    "name": "people_manage_contact_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName of the new group; required for 'create'. Google rejects a name the user already has for a group.
actionYes'list' pages through the user's contact groups; 'create' adds an empty group called name; 'modify_members' adds contacts to and removes contacts from the group group_name.
page_sizeNoFor 'list': contact groups per page, 1 to 1000, default 100.
group_nameNoContact group resource name, e.g. 'contactGroups/myContacts', as resource_name in 'list' results; required for 'modify_members'. A bare ID is prefixed automatically.
page_tokenNoFor 'list': the next_page_token of the previous 'list' response; omit for the first page.
resource_names_to_addNoFor 'modify_members': contact resource names (people/...) from people_search_contacts to add to the group; this list or resource_names_to_remove must be non-empty.
resource_names_to_removeNoFor 'modify_members': contact resource names (people/...) to remove from the group.

Output Schema

NameRequiredDescriptionDefault
countNoNumber of items in this response.
totalNo
actionNo
statusNoMachine-readable operation status.
not_foundNo
group_nameNo
contact_groupNo
contact_groupsNo
next_page_tokenNoOpaque token for retrieving the next page, or null when complete.
cannot_remove_last_groupNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), so the bar is lower, and the description still adds meaningful behavior: system groups like myContacts/starred appear in 'list', 'create' makes an *empty* group, and 'modify_members' surfaces not_found and cannot_remove_last_group only when something did not apply. It does not discuss permissions or rate limits, so it is not exhaustive.

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 description is front-loaded with the action list and then per-action return shapes, which is easy to scan, and every sentence is action-oriented. The per-action return-field enumeration is somewhat redundant given an output schema exists, keeping it from a 5.

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

Completeness5/5

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

For a 3-action, 7-parameter tool, the definition covers action semantics, parameter sources, pagination via next_page_token, partial-failure signals, and return shapes. An agent has everything needed to choose an action and call it correctly on the first attempt.

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

Parameters4/5

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

Schema coverage is 100%, so a 3 is the baseline, but the description adds cross-field meaning the schema alone does not: group_name is the resource_name returned by 'list' (and a bare ID is prefixed), and resource_names_to_add/remove must come from people_search_contacts results. That linkage between the output of one action and the input of another is genuinely useful.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (the user's contact groups/labels) and enumerates the three concrete operations: 'list' pages, 'create' adds an empty group, 'modify_members' adds/removes contacts in one group. It also names the sibling that supplies contact resource names (people_search_contacts), so an agent can tell this apart from contact CRUD tools without opening schemas.

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?

Each action is given a clear condition of use, and 'modify_members' is tied to a prerequisite source (resource names from people_search_contacts) plus the constraint that the add or remove list must be non-empty. There is no explicit when-not guidance or contrast with non-contact-group label tools such as gmail_manage_labels, so it stops short of a 5.

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

Deploy Server

Other Tools