Skip to main content
Glama

set_record_labels

DestructiveIdempotent

Add and/or remove labels on people (entity=contacts) or organisations (entity=accounts) — one record or many at once (bulk). Required: entity, ids. add/remove: label names or ids; names in add that do not exist yet are created. Returns how many assignments were added/removed.

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": {
      "entity": "<entity>",
      "ids": "<ids>"
    },
    "name": "set_record_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoLabel names or ids to add; unknown names are created
idsYesIDs of the contacts or accounts to label
entityYescontacts | accounts
removeNoLabel names or ids to remove

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / add / description
      Added value: +"Label names or ids to add; unknown names are created"
    • addedInput schema / properties / ids / description
      Added value: +"IDs of the contacts or accounts to label"
    • addedInput schema / properties / remove / description
      Added value: +"Label names or ids to remove"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is largely covered. The description still adds genuinely non-obvious behavior: label names in add that do not exist are created as a side effect, bulk operations are supported, and the return value reports counts of assignments added/removed.

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?

Three compact, front-loaded sentences with no filler: scope first, requirements second, parameter semantics and return value last. Every clause carries information.

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?

For a 4-parameter mutation tool with rich annotations and no output schema, the definition covers scope, bulk behavior, side effects and the return summary. Minor gaps remain: behavior when an id is invalid, and whether removal of a non-existent assignment errors or is silently ignored.

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 coverage is 100%, so the baseline is 3; the description largely mirrors what the schema already states (unknown names created, entity values, ids of contacts/accounts). It adds the mild clarification that both label names and ids are accepted in add/remove, but nothing the schema does not already convey.

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?

States a specific verb pair (add and/or remove) and resource (labels), scoped to people/organisations via entity=contacts|accounts, and notes bulk capability. This is clearly distinct from siblings like set_record_members or list_labels without needing to name them.

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

Usage Guidelines3/5

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

The description clarifies the mechanics of use (required entity and ids, add vs remove semantics, one-or-many records) but gives no explicit when-to-use/when-not guidance and does not route the agent toward or away from label-related alternatives. Usage is implied through the field semantics rather than stated.

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.