Skip to main content
Glama
EAD Factory MCP Server

EAD Factory MCP Server

Official

add_document_to_signature_request

Registers a document with an existing signature request and returns a presigned URL for uploading the file bytes, preparing it for signatories.

Instructions

Adds a document to a signature request — the first step of a 2-step upload (add, then PUT the file bytes to the returned upload URL). Use once per document that needs signing. Requires: create_signature_request → signatureRequestId, and the document's SHA-256 hash (compute it before calling, or use the signature_request_full composite tool). Add signatories with add_signatory_to_document before activating. Signature type: INTERPOSITION = EAD Factory mediates the signing act on the signatory's behalf (e.g. an OTP sent via WhatsApp/SMS) — the signatory needs no software or certificate. ADVANCED = Advanced electronic signature — the signatory signs directly (signing pad or certificate); a stronger legal tier than INTERPOSITION. OTHER = A signature type not covered by INTERPOSITION or ADVANCED. Who uploads: this tool registers the document and returns a presigned URL — you must PUT the raw file bytes to it yourself (no Authorization header; the composite tools also send x-amz-checksum-sha256 with the base64 SHA-256 of the file). To have the server upload for you, use signature_request_full with a FileInput file instead.

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": {
      "signatureRequestId": "<signatureRequestId>",
      "filename": "<filename>",
      "title": "<title>",
      "hash": "<hash>",
      "signatureType": "<signatureType>"
    },
    "name": "add_document_to_signature_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYes
titleYes
detachedNo
fileSizeNo
filenameYes
metadataNo
providerNo
sequenceNo
evidenceIdNoMANDATORY. UUID of the evidence record. Obtain from evidence_group_evidence_register or generate_evidence.
descriptionNo
convertToPdfNo
signatureTypeYes
certificateFilesNo
signatureDeadlineNo
signatureRequestIdYesMANDATORY. UUID of the signature request. Obtain from create_signature_request.

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
expirationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.0
    • changedInput schema / properties / signatureDeadline / pattern
      Previous value: -"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"New value: +"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
  2. First observedv1.3.1

TDQS

A4.3/5.0
Behavior4/5

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

Goes well past the annotations by disclosing the presigned-URL handoff, the requirement to PUT raw bytes with no Authorization header, the x-amz-checksum-sha256 header used by composite tools, and the legal meaning of each signatureType tier. What it omits is the failure/replace behavior for a document already registered and whether the registration can be undone, which matter for a non-idempotent mutation.

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 workflow constraint is front-loaded and the signature-type glossary is genuinely necessary for an ambiguous enum. It is long but nearly all of it earns its place; the closing 'Who uploads' paragraph partly restates the opening 2-step framing, which is the one redundant stretch.

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 mutation tool with a presigned-upload side channel, the description supplies the orchestration, the wire-level detail, and the enum semantics; the output schema covers the returned upload URL and ID so those needn't be spelled out. The remaining gap is behavior on re-registration or a failed PUT, which an agent would still have to guess.

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?

With only 13% schema coverage and 15 parameters, the description must carry meaning, and it does for the two hardest ones: hash must be computed beforehand, and all three signatureType enum values are explained. But filename, title, sequence, detached, convertToPdf, fileSize, metadata, provider, description, certificateFiles and signatureDeadline get nothing, leaving most of the schema undocumented in both places.

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 ('Adds a document to a signature request') and immediately frames it as the first of a 2-step upload, which tells an agent exactly what this tool does and does not finish. It is clearly distinguished from signature_request_full, the sibling that does the whole job.

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 (create_signature_request → this tool → add_signatory_to_document → activate), cardinality ('use once per document'), prerequisites (SHA-256 hash, signatureRequestId), and a named alternative ('use signature_request_full with a FileInput file instead') with the condition that selects it.

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