Skip to main content
Glama

Tag Contact

tag_contact
Destructive

Apply or remove tags on a contact — pass tag names in add and/or remove (resolve them with list_contact_tags, or pass create_missing to create as you go). Works on contacts you own and on shared contacts you have read/write on. Both your own tags and a teammate's tag that list_contact_tags returned under shared_tags can be used, so prefer reusing an existing team tag over creating a near-duplicate. IMPORTANT: tags also scope contact sharing, so adding a tag can make this contact visible to other brokers and removing one can take it away — and on a contact someone else owns, that includes removing a tag THEY put on it, which revokes it from the people they share it with. The response returns sharing_impact when visibility moved; confirm with the user before tagging, and tell them what changed afterwards. Cannot delete anything.

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": {
      "contact_id": "<contact_id>"
    },
    "name": "tag_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoTag names to apply. Your own tags, or a teammate's tag shown under shared_tags by list_contact_tags. Prefer matching an existing shared tag name over creating a near-duplicate. Pass create_missing to create one that exists nowhere.
removeNoTag names to remove. Your own tags, or a teammate's. Removing another broker's tag from their contact can take it away from people they share it with — check sharing_impact in the result and tell the user what changed.
contact_idYesThe contact to tag (from list_contacts).
create_missingNoCreate any tag in `add` that you do not already have, instead of reporting it as unknown.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the non-obvious side effect that tags scope contact sharing, including the case where removing a teammate's tag on their contact revokes access from the people they share it with. It names the sharing_impact field in the response and instructs the agent to confirm before and report after. It also scopes destructiveness ('cannot delete anything'), which usefully refines destructiveHint=true to mean access revocation rather than data loss.

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?

Purpose and the critical sharing warning are front-loaded, and every sentence carries operational weight. It is a dense single paragraph with some repetition of the add/remove naming rules that the schema already states, costing a little tightness.

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?

With no output schema, the description correctly compensates by telling the agent that the response returns sharing_impact when visibility moved and what to do with it. For a 4-parameter mutation with sharing side effects, nothing an agent needs to call it safely is missing.

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 description coverage is 100%, so the baseline is 3. The description still adds value by tying add/remove values to the list_contact_tags resolution flow and by clarifying that both your own tags and a teammate's shared_tags are valid inputs, which the schema only partially conveys.

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?

Opens with a specific verb pair and resource: 'Apply or remove tags on a contact', and immediately names the parameter shape (add and/or remove). It is clearly distinguishable from siblings list_contact_tags and create_contact_tag, which handle resolution and tag creation respectively.

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

Usage Guidelines5/5

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

Explicitly routes the agent to list_contact_tags for name resolution, explains create_missing as the create-as-you-go path, and states a preference ('prefer reusing an existing team tag over creating a near-duplicate'). It also states the permission scope (owned contacts and shared contacts with read/write) and mandates confirming with the user before tagging.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources