Skip to main content
Glama

prepare_crm_write

Preview one Salesforce note, task, or activity linked to an opportunity or account before sending, so reps can approve CRM updates first.

Instructions

Step 1 of 2: preview ONE Salesforce write. kind: note | task | activity (nothing else is allowed).

link_to: the opportunity (preferred) or account id. note: title + body. task: title, due (YYYY-MM-DD), optional who_id (contact). activity: a completed call/email/meeting with channel, on (date), minutes, body. Nothing is sent; show the rep the preview.

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": {
      "kind": "<kind>",
      "link_to": "<link_to>"
    },
    "name": "prepare_crm_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
onNo
dueNo
bodyNo
kindYes
titleNo
who_idNo
channelNocall
link_toYes
minutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the critical behavior: the tool writes nothing and only produces a preview for the rep. It also fixes the allowed kinds and per-kind required fields. It stops short of stating what the preview returns (an id or token for the commit step), whether previews expire, or any auth constraint on the linked opportunity/account.

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?

Five terse sentences, each carrying distinct information: step position and scope first, then the link target, then per-kind field requirements. No restatement of the tool name and no filler; the fragment style suits a schema companion.

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, two-phase workflow tool, the input side is well covered including conditional field relevance. The remaining gap is the handoff: nothing explains what the preview yields for the subsequent commit call, which is the main thing an agent needs to chain the two steps.

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 compensate, and it largely does: it maps all nine parameters into three conditional shapes (note: title + body; task: title, due, optional who_id; activity: channel, on, minutes, body) and gives a date format (YYYY-MM-DD). It also explains link_to as the opportunity (preferred) or account id, adding a preference rule the schema never states.

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?

"Step 1 of 2: preview ONE Salesforce write" gives a specific verb (preview), a specific resource (Salesforce write), and its position in the two-step flow. The enumeration "kind: note | task | activity (nothing else is allowed)" bounds the tool's scope unambiguously, so an agent can distinguish it from the commit step without opening a schema.

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?

"Step 1 of 2" and "Nothing is sent; show the rep the preview" clearly signal that this is a non-executing precursor and that a commit follows. What is missing is explicit routing to the second step (commit_crm_write) and any statement of when a rep would prefer a direct write; the alternative is implied rather than named.

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