Agents and MCP
Agents prepare, edit and send documents through task-sized tools; people sign, and decide in a window in the chat.
Connect
The quickest way is Eggent. Start Eggent with Sendforsign: Eggent makes a workspace and connects this server itself; you only sign in to Sendforsign when it asks.
The MCP server is at https://api2.sendforsign.com/mcp (Streamable HTTP). Authenticate with an API key as a Bearer token; through MCP a key always acts as an agent: it can do everything except sign or see signing links.
{ "mcpServers": { "sendforsign": { "url": "https://api2.sendforsign.com/mcp", "headers": { "Authorization": "Bearer sk_live_…" } } } }
Or connect the agent by signing in: give the address with no key and the client opens Sendforsign's sign-in (a password or the company's SSO) — the agent then acts as that member, with their roles. See Workspace and people.
A person in several workspaces connects their agent once: it creates new documents in the workspace chosen at sign-in, and works on a document waiting for them in any of their workspaces with the roles they have there. A workspace they are not in stays closed to it.
Tools
| Tool | Does |
|---|---|
create_document |
from Markdown, a file or a template, with parties and data |
get_document |
status, parties, fields, the blocks with their ids, and for a draft what still stands between it and sending |
edit_document |
precise edits by block id (replace_text, replace, insert_after, delete) |
fill_fields |
set field values |
set_parties |
add a signer or a copy recipient |
send_document, remind_signers, unsend_document, void_document, copy_document, delete_document |
the document's life; a draft nobody needs is deleted |
get_template, edit_template, publish_template_version, delete_template |
read a template with its versions; edit it through its working draft; publish the next version when your person says so; delete it |
list_documents, list_templates |
find things |
get_guide |
how to do a job by Sendforsign's rules: one Word file to a template, several to one, fields, conditions |
get_upload_link, upload_file, create_template, define_field |
a user's Word file or photos in (by curl to one-time links when the agent has a terminal, several files with one command); a reusable template out; a decision field |
list_versions, compare_versions, restore_version |
every edit is a version: who, what, why |
paragraph_history, changes_since |
one clause through the versions; what approvers changed since it went out to them |
find_people, set_workflow, my_tasks |
colleagues from the directory, a workflow of steps of approvers and signers, what waits for your person |
get_review, add_comment, suggest_edit, decide_suggestion, resolve_comment |
discussion: comments and suggested edits |
return_with_edits |
the approver's side: a document waiting for your person's approval goes back to its author as a draft, with exact edits as suggestions and the reason |
api_request |
anything else in the API, except browser routes |
The document window
In hosts that draw MCP Apps (Claude, ChatGPT, Eggent), document tools show a window under the call: a draft as an approval card the person can send from or review in full, a sent document as its live status. The window gets a short-lived session in the tool result's _meta, which the model does not see; it is never a signing session.
The window tells the model what the person sees (ui/update-model-context), so "add Ivan as a second signer" acts on the document on screen, and says what the person did (ui/message).
Telling your agent
Each member can have their own agent told when a document waits for them to approve or sign, and what happens to the documents they sent: approved, returned with edits, signed, declined, completed. Set it in Settings → Tell my agent, or with PUT /v2/me/agent-inbox. Nobody is told about what they did themselves.
Eggent. Give the workspace address (https://name.cloud.eggent.ai), its API token (Eggent: Settings → API) and, if you like, a project by name or id. Each document gets one chat in that project (sendforsign:<document id>): the agent is asked, in your language, to read the document, say what it is about and what deserves attention, and to send it back with exact edits if asked. It never approves or signs: only the person does. The token is stored sealed.
Any other agent. A webhook gets a signed JSON, verified like ordinary webhooks:
{
"object": "agent_notification",
"id": "evt_…",
"type": "party.notified",
"text": "A document is waiting for your approval…",
"document": { "id": "doc_…", "name": "Service agreement", "status": "open", "url": "https://…" },
"member": "mem_…",
"created": 1790000000
}
text is written for a model; pass it to your agent as the next message. Deliveries are retried for about an hour (20 s, 1 min, 5 min, 15 min, 1 h). POST /v2/me/agent-inbox/test sends a check now and says whether it got through.
Agent keys
Mark a key as an agent key when you create it (agent: true), or let MCP do it. Agent keys can only create agent keys, cannot create signing sessions, and appear in the history as "the agent on behalf of your account". Restrict them further with permissions and allowed_recipient_domains.