Skip to main content
Glama

Tag contacts

tag_contacts
Idempotent

Attach a tag to contacts (the tag is created if missing). Returns {tagged: n} for newly tagged contacts. Errors: not_found (contact), invalid_tag. Next: list_contacts with tag to see them.

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": {
      "emails": "<emails>",
      "tag": "<tag>"
    },
    "name": "tag_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagYesTag name; created when missing.
emailsYesEmails or ids (ctc_...) of existing contacts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the description is not carrying the safety profile alone. It adds genuinely new behavioral information: tag auto-creation, the return payload shape, and the two named error codes (not_found, invalid_tag). It doesn't say whether already-tagged contacts are silently skipped or whether there is a cap on the emails array.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences with the action, side effect, return shape, error set, and follow-up in that order. Every sentence carries distinct information and nothing is padded.

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

Completeness4/5

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

There is no output schema, and the description compensates well by stating the return object and the error codes. For a two-parameter mutation tool this is nearly complete; only edge behavior for already-tagged contacts and any input-size limits are left implicit.

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

Parameters3/5

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

Schema description coverage is 100%, with the schema itself documenting 'tag' (created when missing) and 'emails' (emails or ctc_ ids of existing contacts). The description largely restates the tag auto-creation note and adds no syntax, limits, or format detail beyond the schema, so the baseline of 3 applies.

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 opens with a specific verb and resource ('Attach a tag to contacts') and immediately qualifies the side effect ('the tag is created if missing'). This distinguishes it clearly from sibling read/list tools such as list_contacts and from record-creating tools like add_contact.

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?

It gives clear forward guidance — 'Next: list_contacts with tag to see them' — which tells the agent how to verify the result and which sibling to call afterward. It does not state explicit when-not-to-use conditions or mention bulk_contacts as a bulk alternative, so it stops short of full alternative routing.

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