Skip to main content
Glama

Preview agreement send

preview_agreement
Read-onlyIdempotent

Dry-run one document (title, markdown terms with {{merge_fields}}, an optional static PDF) and a signature request for each of 1 to 50 parties. Renders each party's document and lists missing merge fields without sending or emailing anyone. parties is required. With event_id it is a gig agreement and needs financial editing access; without one it is an organization agreement, which a client cannot receive and a crew user must be a roster member for. If any party is refused or a merge field is missing, nothing would be sent. Use preview_agreement before send_agreement. Organizations without the forms channel rollout get not found. PDFs go inline as pdf_base64 + pdf_filename (not request_attachment_upload).

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": {
      "title": "<title>",
      "parties": "<parties>"
    },
    "name": "preview_agreement"
  }
}

Input Schema

NameRequiredDescriptionDefault
termsNoone-off agreement: required markdown terms; merge fields render per party
titleYesagreement title shown to every signer
due_atNoone-off agreement: RFC3339; the due day in the gig or org time zone
notifyNoone-off agreement: always pass it; true emails each party now, false sends no email
partiesYeswho signs, one request each
send_idNoone-off agreement: an idempotency key you generate; give it on every one-off send and reuse it to retry the same send
event_idNothe gig this agreement is for; omit for an organization agreement
pdf_base64Nobase64-encoded static PDF; pair with pdf_filename
template_idNoone-off agreement: the agreement template the terms came from
pdf_filenameNofilename for pdf_base64
organization_idNoone-off agreement: defaults to your active organization
reminder_policyNoone-off agreement: scheduled reminders, for a client signer on a gig only; needs due_at and notify

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: { send_id, dry_run, form_definition_id, form_revision_id, results [{ index, status, request }], previews [{ index, title, content, content_hash, presented_blocks, missing }] } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses failure semantics: refused parties or missing merge fields mean "nothing would be sent," and organizations without the forms channel rollout return not found. It also surfaces an authorization model (financial editing access for gigs, roster membership for crew) and the stale-preview refusal condition, none of which the annotations convey.

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?

Front-loaded with the dry-run scope, then layered with permissions, outcomes, and routing to send_agreement. Dense but every sentence carries a fact an agent needs; the long multi-clause permission sentence is the only spot that costs readability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter tool with an output schema, the description covers what matters: preconditions, per-party eligibility, what a successful preview returns (rendered documents, missing merge fields), and the gating consequence of a refusal. Nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so the baseline is 3 — but the description adds mode-level semantics the schema does not: event_id flips the tool between gig and organization agreement behavior, parties is required and capped at 1–50, and PDFs must be inline rather than uploaded. That is real meaning beyond field-level descriptions.

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?

Opens with a specific verb and resource: "Dry-run one document ... and a signature request for each of 1 to 50 parties," and immediately clarifies that rendering happens "without sending or emailing anyone." This distinguishes it cleanly from send_agreement, which the description names outright.

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?

Gives explicit sequencing ("Use preview_agreement before send_agreement") and an explicit alternative for attachments ("PDFs go inline as pdf_base64 + pdf_filename (not request_attachment_upload)"). It also states the mode split — with event_id = gig agreement requiring financial editing access; without = organization agreement where a client cannot receive and a crew user must be a roster member — which is genuine 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.