Skip to main content
Glama
dealdesk-mcp

dealdesk-mcp

dealdesk.log_email

Destructive

Log inbound or outbound emails on a Desk card as status-update touchpoints, capturing direction, sender, recipient, subject, and body text.

Instructions

Log an inbound or outbound email on a desk card as a status-update touchpoint (email_incoming / email_outgoing). Persists structured from/to (plus subject/text). Do not use add_card_note for email logs.

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": {
      "cardId": "<cardId>"
    },
    "name": "dealdesk.log_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoRecipient email or label (persisted as statusUpdate.to)
bodyNoAlias for text
fromNoSender email or label (persisted as statusUpdate.from)
textNoEmail body (maps to touchpoint note)
cardIdYesDesk card id
subjectNoEmail subject
directionNoincoming → email_incoming; outgoing → email_outgoing (default incoming)
projectIdNoDealDesk project id. Omit when the OAuth token or API key authorizes exactly one project. Required when Connect authorized several projects.
contactIdsNo
occurredAtNoISO datetime (defaults to now)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.1
    • changedInput schema / properties / from / description
      Previous value: -"Sender email or label"New value: +"Sender email or label (persisted as statusUpdate.from)"
    • changedInput schema / properties / projectId / description
      Previous value: -"DealDesk project id (must match API key / OAuth project)"New value: +"DealDesk project id. Omit when the OAuth token or API key authorizes exactly one project. Required when Connect authorized several projects."
    • changedInput schema / properties / to / description
      Previous value: -"Recipient email or label (e.g. us)"New value: +"Recipient email or label (persisted as statusUpdate.to)"
    • changedInput schema / required
      Previous value: -[
      -  "projectId",
      -  "cardId"
      -]New value: +[
      +  "cardId"
      +]
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this is a mutating (readOnlyHint=false, destructiveHint=true) open-world call, so the description only needs to add what actually happens on write. It does that by naming the persisted output (a status-update touchpoint with structured from/to, subject and text), which is genuinely beyond the annotations. It leaves the destructiveHint unaddressed and does not say whether logging triggers card activity or is reversible.

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?

Two sentences, purpose first, exclusion second, with no filler or repeated information. Every clause carries a distinct fact.

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 10-parameter write tool with a rich schema and covered annotations, the description supplies what the structured data cannot: the resulting object type and the sibling it replaces. It omits any mention of the projectId multi-project authorization nuance, but that is already spelled out in the schema.

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 90%, so the schema already carries almost all parameter meaning, and enum values plus defaults are documented there. The description's 'Persists structured from/to (plus subject/text)' mostly restates schema content rather than adding new guidance, 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 states a specific verb and resource ('Log an inbound or outbound email on a desk card') plus the resulting artifact type ('status-update touchpoint'), so an agent can distinguish it from note-creation siblings at a glance. It also names the exact touchpoint subtypes produced (email_incoming / email_outgoing).

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 an explicit negative routing rule: 'Do not use add_card_note for email logs', which directs the agent away from the most obvious wrong sibling. It stops short of positively describing when an email should be logged versus other touchpoint types (create_status_update) or non-email channels.

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

Deploy Server

Other Tools