Skip to main content
Glama

Create and send an offer

create_offer

Turn an HTML document (an offer you wrote) into a tracked offer page for ONE prospect and, with send=true, email the link from the workspace's mailboxes. The recipient opens a reader page; opens, reads and temperature are tracked and emitted as offer_* webhook events. The HTML is sanitised server-side (scripts and event handlers are removed), so use plain semantic HTML: headings, paragraphs, tables, lists, inline CSS. contact is the salesperson shown on the page (id from list_team). send=false only creates the link, which is the safe way to let the user review first. send=true emails a real person: show the user the subject, message and recipient and get approval before calling. 409 when the prospect is on the suppression list or no mailbox can send.

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": {
      "prospect_id": "<prospect_id>",
      "html": "<html>"
    },
    "name": "create_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesThe offer document as HTML.
sendNoDefault true. false = create the link only, send nothing.
contactNoSalesperson id from list_team.
messageNoCover message in the email. {{first_name}} style fields work. Empty = the email is just the link.
subjectNoEmail subject. Required when send is true.
email_gateNoAsk the reader for their email before showing the offer (default false).
prospect_idYesProspect id (uuid) from search_prospects or create_prospect.
message_formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare a non-read-only, open-world, non-destructive, non-idempotent operation, and the description adds genuinely useful context beyond that: server-side HTML sanitisation, the tracked reader page, offer_* webhook emission, and a 409 for suppression/no-mailbox. However, it does not state what the call returns (offer id? link URL?) and gives no guidance on retries or duplicate offers, which matters given idempotentHint=false and a real email side effect.

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?

The core action is front-loaded in the first clause, and each subsequent sentence carries distinct information (tracking, sanitisation constraints, approval requirement, error case). It is dense but justified for an 8-parameter mutating tool, with only slight redundancy between 'send=false only creates the link' and 'the safe way to let the user review first'.

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?

Given no output schema, the description covers side effects, tracking events, HTML constraints and the main failure mode, which is enough to call it correctly. The remaining gap is the return value (offer id or link) that the agent would need to chain into get_offer or a follow-up message.

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 88%, so the schema already documents html, send, contact, message, subject, email_gate and prospect_id; the description mostly restates these (contact = salesperson shown on the page, send=false creates only the link). It adds little beyond the schema, and message_format is left undefined in both places. Baseline 3 is appropriate.

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 transformation (HTML document -> tracked offer page) plus the dual mode (create link vs. email link), scoped to ONE prospect. This clearly separates it from read tools like get_offer and from campaign/step tools, without needing the schema.

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?

Explicitly prescribes send=false as the review-first path and send=true as the path that emails a real person requiring user approval of subject, message and recipient. It also routes the agent to list_team for the contact id, giving concrete when/when-not guidance.

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.