Skip to main content
Glama

Send agreement

send_agreement
Destructive

Send one document and a signature request for each of 1 to 50 parties after preview_agreement. 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. send_id is a UUID you choose: resending the same send_id and arguments sends nothing again; different arguments are refused. Who is told: when notify is true, each party is emailed now. If any party is refused or a merge field is missing, nothing is sent. Organizations without the forms channel rollout get not found. PDFs go inline as pdf_base64 + pdf_filename (not request_attachment_upload). Confirmation-gated only when dry_run is not true. With dry_run true, runs the same preview as preview_agreement for backward compatibility — prefer preview_agreement for planning.

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": "send_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
dry_runNodeprecated: use preview_agreement; when true, previews without sending
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
confirmation_tokenNoonly when dry_run is not true: leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNowhen the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the 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.7/5.0
Behavior5/5

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

Goes far beyond the annotations: it discloses per-branch permission models (gig vs organization agreement, client-cannot-receive), all-or-nothing failure ('If any party is refused or a merge field is missing, nothing is sent'), send_id replay/refusal semantics, notify-now emailing, and confirmation gating contingent on dry_run. The idempotentHint=false annotation is reconciled by the description's opt-in send_id key, so this is not a contradiction but added nuance.

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?

Front-loaded with the core action, and nearly every clause carries operational weight, but it is delivered as one dense run-on paragraph with abrupt register shifts ('Who is told:', 'PDFs go inline...'). Scanning is harder than it needs to be and a couple of clauses could be tightened without losing meaning.

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 14-parameter destructive, externally-visible send with an output schema, it covers permissions, failure modes (409 AGREEMENT_PREVIEW_STALE, not found on rollout), confirmation flow, and delivery behavior. Return values are the output schema's job and are rightly not restated.

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; the description earns an extra point by explaining cross-parameter semantics the schema cannot: send_id as a caller-generated retry key that refuses differing arguments, event_id as the gig/org discriminant, pdf_base64+pdf_filename as a pair, and dry_run's deprecated backward-compatibility behavior.

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 verb and resource with scope: 'Send one document and a signature request for each of 1 to 50 parties after preview_agreement.' It names the predecessor (preview_agreement) and implicitly separates itself from request_attachment_upload (PDF path) and void_agreement, so an agent can identify it without opening 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?

Explicit when-to-use and when-not: run after preview_agreement, prefer preview_agreement for planning instead of dry_run=true, use inline pdf_base64 rather than request_attachment_upload, and omit event_id only for organization agreements. Prerequisites (financial editing access, roster membership, forms channel rollout) are spelled out.

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.