Skip to main content
Glama

save_email_segment

Idempotent

Save a named email segment so the owner can reuse it from Send to. match is any (people with at least one of tags) or all (people with every tag); exclude leaves out anyone with those tags. Use tag key values from list_contact_tag_options. Leave out id to create a segment; pass an id from list_email_segments to change one. Names are unique, and a business can save up to 50.

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": {
      "name": "<name>",
      "match": "<match>",
      "tags": "<tags>"
    },
    "name": "save_email_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
nameYes
tagsYes
matchYes
excludeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already disclose non-read-only, idempotent, non-destructive, closed-world behavior, and the description adds the constraints an agent actually needs: unique names and a 50-segment cap, plus update semantics when id is supplied. It stops short of saying what happens on a duplicate-name or cap-exceeded save, which is the one remaining behavioral gap.

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?

Dense but front-loaded: purpose first, then match/exclude semantics, then the create-vs-update rule, then limits. Slightly run-on in a single block, but no sentence is filler.

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 5-param mutation with no output schema, the description covers selection logic, create/update routing, data sources for tag values, and quota limits. The only omission is whether the call returns the stored segment (and its id), which matters for chaining but is a modest gap.

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

Parameters5/5

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

Schema coverage is 0%, so the description must carry the load, and it does: match is defined as any (at least one tag) vs all (every tag), exclude is defined as removing anyone with those tags, id is bound to create-vs-update, and name is bounded by uniqueness. Every parameter gains meaning the schema does not provide.

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 and resource ("Save a named email segment") plus the consumer-facing purpose ("reuse it from Send to"), which distinguishes it from the read-only sibling list_email_segments and from the draft-saving siblings.

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?

Explicit branching: omit id to create, pass an id from list_email_segments to modify, and pull tag keys from list_contact_tag_options. Both the create/update decision and the required data source are spelled out, leaving little to inference.

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