Skip to main content
Glama

send_team_email

Destructive

Send an email to a COLLEAGUE in this tenant — e.g. a price list or an offer PDF to the employee who asked for it, for approval. Recipient: to_user_id (see list_tenant_users; a numeric Pipedrive user id such as a deal owner is resolved via its email) and/or to_address; the address must be that person's login address or one of their connected mailboxes, anything else is refused. Customers are NOT reachable here — for them use send_email / send_draft_email (lead, consent check). No lead needed. Optional attachments: document_ids (e.g. from get_abaninja_quote_pdf), attachment_mode 'link' (default) or 'file'. Sends for real, from the tenant's mailbox. Called by an AGENT: NO internal status or request mails — a mail WITHOUT attachments is refused (put the request/info as create_todo on the responsible person's list instead; the todo is the channel and replies happen there), and with attachments only what the person should check or approve (e.g. a report PDF «… zur Freigabe»), never a pure status («… importiert/blockiert/erledigt»). Exception: a human explicitly asked for this mail — pass auf_wunsch_von with that person (name, user_id or address; recorded in the mail and the tool log). Also for agents: a second internal mail to the same person within 24 h with the same DN or (almost) the same subject is NOT sent — the result says dublette:true (trotzdem:true sends anyway).

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": {
      "subject": "<subject>",
      "body": "<body>"
    },
    "name": "send_team_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesBody text
subjectYesSubject line
trotzdemNoAgents only: send even if the same person got an internal mail with the same DN or (almost) the same subject in the last 24 h — otherwise nothing is sent and dublette:true is returned.
body_htmlNoOptional designed HTML version of the mail, sent UNCHANGED as the text/html part (multipart/alternative); body stays required and is the plain-text part. Attachment links, unsubscribe and AI notice are inserted before </body> (or appended). Max 512 KB; link images, no data: URLs.
to_addressNoRecipient email address
to_user_idNoID of the recipient user
attachmentsNodocument_ids
auf_wunsch_vonNoAgents only: the person of this tenant (name, user_id or address) who EXPLICITLY asked for this mail. Without it an agent cannot send internal mails without attachments or pure status mails — use create_todo instead.
attachment_modeNoHow documents are attached: link (default) or file

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / body_html
      Added value: +{
      +  "description": "Optional designed HTML version of the mail, sent UNCHANGED as the text/html part (multipart/alternative); body stays required and is the plain-text part. Attachment links, unsubscribe and AI notice are inserted before </body> (or appended). Max 512 KB; link images, no data: URLs.",
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / attachment_mode / description
      Added value: +"How documents are attached: link (default) or file"
    • addedInput schema / properties / body / description
      Added value: +"Body text"
    • addedInput schema / properties / subject / description
      Added value: +"Subject line"
    • addedInput schema / properties / to_address / description
      Added value: +"Recipient email address"
    • addedInput schema / properties / to_user_id / description
      Added value: +"ID of the recipient user"
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already mark this as non-read-only, open-world, non-idempotent and destructive, and the description adds substantial operational context beyond them: the mail is sent for real from the tenant mailbox, recipients are restricted to login/connected addresses, duplicates within 24 hours are suppressed, and an explicit override exists. It also discloses agent-specific sending constraints and the exception path via auf_wunsch_von.

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

Conciseness3/5

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

The information is high-value, but it is delivered as one dense, run-on paragraph with heavy capitalization and repeated agent-policy clauses. The purpose is front-loaded, yet the duplicate rule and agent restrictions could be structured more cleanly for faster scanning.

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 nine-parameter, no-output-schema email tool, the description covers recipient eligibility, attachment behavior, agent restrictions, duplicate handling, and alternatives. It partially describes return behavior through dublette:true, but does not otherwise explain the result shape or general failure responses.

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 schema already carries baseline parameter meaning. The description still adds useful semantics: to_user_id is resolved via list_tenant_users and Pipedrive user email, to_address must be a login or connected mailbox, attachments are document_ids and can be linked or filed, and auf_wunsch_von/trotzdem have behavioral consequences.

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: 'Send an email to a COLLEAGUE in this tenant.' It immediately establishes the internal-recipient scope and explicitly distinguishes this from customer-facing tools such as send_email and send_draft_email.

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?

It gives explicit when-to-use and when-not-to-use guidance: customers require send_email / send_draft_email, while agent status/request mails without attachments should use create_todo instead. It also names the human-request exception and the duplicate-send behavior, 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.