{"serverId":"mcp-registry/io.github.toasternet/delegaize","tools":[{"name":"create_sap_supplier_invoice","fixed":{"name":"create_sap_supplier_invoice","description":"Post an incoming supplier invoice with PO reference (MIRO equivalent). Runs the 3-way match first and books ONLY if every line matches; deviations come back as a question for a human instead of a posting (allow_deviation only after a human approved). Also refuses a second invoice with the same supplier_reference for the same supplier. WRITES — permission gate + write log; dry run unless the connection is live.","inputSchema":{"type":"object","required":["invoicing_party","document_date","supplier_reference","gross_amount","lines"],"properties":{"park":{"description":"true = park the invoice in SAP instead of posting it; 'bei_abweichung' = park only when the 3-way match deviates (instead of asking back). A duplicate invoice number is always refused.","type":"string"},"lines":{"type":"array","items":{"type":"object","required":["purchase_order","purchase_order_item","quantity","amount"],"properties":{"unit":{"type":"string","description":"Unit of measure"},"amount":{"type":"number","description":"net amount of the line in document currency"},"quantity":{"type":"number","description":"invoiced quantity in PO unit"},"purchase_order":{"type":"string","description":"SAP purchase order number the line refers to"},"purchase_order_item":{"type":"string","description":"Item number within the purchase order"}}},"description":"Invoice lines with PO reference (PO, PO item, quantity, amount, unit)"},"dry_run":{"type":"boolean","description":"true = build and log the request but send nothing. Writes are ALWAYS dry runs while the tenant's SAP connection has write_mode \"dry_run\" (the default)."},"currency":{"type":"string","description":"Currency code (ISO 4217, e.g. EUR)"},"tax_code":{"type":"string","description":"default from the connection"},"company_code":{"type":"string","description":"SAP company code to post in"},"gross_amount":{"type":"number","description":"Gross invoice amount in document currency"},"posting_date":{"type":"string","description":"default: today"},"document_date":{"type":"string","description":"invoice date YYYY-MM-DD"},"allow_deviation":{"type":"boolean","description":"true = book despite 3-way-match deviations; only after human approval"},"invoicing_party":{"type":"string","description":"SAP supplier number"},"supplier_reference":{"type":"string","description":"the supplier's invoice number"}}},"annotations":{"title":"Create SAP supplier invoice","readOnlyHint":false,"openWorldHint":true,"idempotentHint":false,"destructiveHint":false}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: park. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":663,"tokensAfter":668},{"name":"send_draft_email","fixed":{"name":"send_draft_email","description":"Send a REVIEW COPY of an email to the rep for approval — NOT to the lead. Renders exactly as the real send (same from-address/signature/placeholders via the lead+campaign) but is delivered to the reviewer and clearly marked as a draft: the subject is prefixed '[DRAFT — review copy]' and a banner naming the real intended recipient is prepended to the body. Recipient defaults to the authenticated caller's own account email; pass to_address to send the review copy somewhere else. Required: lead_id,","inputSchema":{"type":"object","required":["lead_id","subject","body"],"properties":{"bcc":{"description":"Blind-copy recipients for this review copy — array or comma-separated string. The campaign's archive BCC is deliberately not applied to review copies.","type":"string"},"body":{"type":"string","description":"Body text"},"lead_id":{"type":"string","description":"ID of the lead"},"subject":{"type":"string","description":"Subject line"},"to_address":{"type":"string","description":"Where to send the review copy (default: caller's own email)"},"campaign_id":{"type":"string","description":"ID of the campaign"},"intended_to":{"type":"string","description":"The lead's real email, shown in the draft banner"}}},"annotations":{"title":"Send draft email","readOnlyHint":false,"openWorldHint":true,"idempotentHint":false,"destructiveHint":false}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: bcc. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":346,"tokensAfter":350},{"name":"send_email","fixed":{"name":"send_email","description":"Send an email to a lead, a person (contact_id) or an organisation (account_id) — or to any address. Required: subject, body, and lead_id, contact_id, account_id or to_address (to_address defaults to the record's e-mail). Sender: from_email picks one of the tenant's connected mailboxes (own SMTP server, Microsoft or Google); as_me=true sends with your name and sets Reply-To to your address so answers reach you; or set reply_to. If the tenant has switched off external providers (mail_only_own_serv","inputSchema":{"type":"object","required":["subject","body"],"properties":{"bcc":{"description":"Extra blind-copy recipients for THIS send — array or comma-separated string. ADDS TO the campaign's bcc_emails, it does not replace them; set the campaign field for a copy that cannot be forgotten. Invalid addresses are dropped and logged, they never block the send.","type":"string"},"body":{"type":"string","description":"Body text"},"as_me":{"type":"boolean","description":"Your name as sender name, Reply-To your login address."},"lead_id":{"type":"string","description":"ID of the lead"},"purpose":{"type":"string","description":"The processing purpose of THIS mail (e.g. akquise, newsletter, bestandskunde, rechnung). A consent is always for ONE purpose: whoever agreed to the newsletter did not agree to cold outreach, so without a purpose the check can only look at the record's state and at withdrawals. Falls back to the campaign's processing_purpose. If the tenant has switched on legal_basis_enforced, a mail without any purpose is refused."},"subject":{"type":"string","description":"Subject line"},"reply_to":{"type":"string","description":"Reply-to email address"},"from_name":{"type":"string","description":"Sender display name"},"account_id":{"type":"string","description":"ID of the account (company)"},"contact_id":{"type":"string","description":"ID of the contact"},"from_email":{"type":"string","description":"Address of a connected mailbox to send from."},"to_address":{"type":"string","description":"Recipient email address"},"attachments":{"type":"array","items":{"type":"string"},"description":"document_ids"},"campaign_id":{"type":"string","description":"ID of the campaign"},"attachment_mode":{"enum":["link","file"],"type":"string","description":"link (default) or file"}}},"annotations":{"title":"Send email","readOnlyHint":false,"openWorldHint":true,"idempotentHint":false,"destructiveHint":false}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: bcc. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":645,"tokensAfter":650},{"name":"set_deadline","fixed":{"name":"set_deadline","description":"Put a deadline with a reminder on ANY record (entity = table, e.g. contacts, accounts, leads, customer_invoices, mod_seminar_events; entity_id). Required: entity, entity_id, title, due_at (ISO). Optional: remind_before (e.g. '1d', '3h', '2w' or minutes; default 1d), channel todo (default) | email | both, user_id (who is reminded; default you), notes, source_key (modules: setting the same key again updates instead of duplicating). The server reminds at due_at - remind_before: a high-priority task","inputSchema":{"type":"object","required":["entity","entity_id","title","due_at"],"properties":{"notes":{"type":"string","description":"Free-text notes"},"title":{"type":"string","description":"Title of the deadline"},"due_at":{"type":"string","description":"Due date/time (ISO 8601)"},"entity":{"type":"string","description":"Table of the record, e.g. contacts, accounts, leads, customer_invoices"},"channel":{"type":"string","description":"Reminder channel: todo (default), email or both"},"user_id":{"type":"string","description":"ID of the user"},"entity_id":{"type":"string","description":"ID of the record"},"source_key":{"type":"string","description":"Stable key for modules; setting the same key again updates instead of duplicating"},"remind_before":{"description":"Lead time of the reminder, e.g. '1d', '3h', '2w' or minutes (default 1d)","type":"string"}}},"annotations":{"title":"Set deadline","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":true}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: remind_before. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":387,"tokensAfter":392},{"name":"update_campaign","fixed":{"name":"update_campaign","description":"Update a campaign (partial; empty values are NOT cleared — list a column in clear_fields to blank it). status: draft|active|paused|completed.","inputSchema":{"type":"object","required":["campaign_id"],"properties":{"name":{"type":"string","description":"Name of the campaign"},"notes":{"type":"string","description":"Free-text notes"},"status":{"type":"string","description":"New status"},"end_date":{"type":"string","description":"End date (YYYY-MM-DD)"},"owner_id":{"type":"string","description":"ID of the owner (user)"},"from_name":{"type":"string","description":"Sender display name"},"script_id":{"type":"string","description":"ID of the script"},"bcc_emails":{"description":"Blind-copy archive for EVERY send of this campaign — array or comma-separated string. Set as a real BCC, never appended to 'to'. Put it here rather than on each call: a call parameter can be forgotten, a campaign field cannot. Pass bcc_emails in clear_fields to switch the archive off.","type":"string"},"from_email":{"type":"string","description":"Sender email address"},"start_date":{"type":"string","description":"Start date (YYYY-MM-DD)"},"campaign_id":{"type":"string","description":"ID of the campaign to change"},"description":{"type":"string","description":"Description of the campaign"},"clear_fields":{"type":"array","items":{"type":"string"},"description":"Column names to set to NULL (opt-in clear)."},"email_signature":{"type":"string","description":"E-mail signature used for this campaign's mails"},"daily_call_target":{"type":"number","description":"Number of calls planned per day (integer)"}}},"annotations":{"title":"Update campaign","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":true}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: bcc_emails. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":450,"tokensAfter":455},{"name":"update_deadline","fixed":{"name":"update_deadline","description":"Change a deadline: title, due_at, remind_before, channel, notes, user_id, or status done/cancelled/open. Moving due_at re-arms the reminder. Required: id.","inputSchema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"ID of the deadline to change"},"notes":{"type":"string","description":"Free-text notes"},"title":{"type":"string","description":"Title of the deadline"},"due_at":{"type":"string","description":"Due date/time (ISO 8601)"},"status":{"type":"string","description":"New status"},"channel":{"type":"string","description":"Reminder channel: todo, email or both"},"user_id":{"type":"string","description":"ID of the user"},"remind_before":{"description":"New lead time of the reminder, e.g. '1d', '3h', '2w' or minutes","type":"string"}}},"annotations":{"title":"Update deadline","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":true}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: remind_before. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":226,"tokensAfter":231},{"name":"upsert_workflow_knoten","fixed":{"name":"upsert_workflow_knoten","description":"Create or update a node of a workflow, matched by schluessel (for imported Pipedrive workflows the schluessel is the stage/phase id). Required: workflow_id, schluessel; name for new nodes. Optional: reihenfolge, art (start|schritt|ende), agent_id (responsible agent), agent_info (what an agent must know/do/check here — shown by get_workflow_status), ausloeser (Trigger when an object ENTERS the node: {art:'keine'} | {art:'mensch', an:<user_id>, nachricht?, wichtigkeit?(0-100), antworten?:[…]} → a ","inputSchema":{"type":"object","required":["workflow_id","schluessel"],"properties":{"art":{"enum":["start","schritt","ende"],"type":"string","description":"Node type: start, regular step or end"},"name":{"type":"string","description":"Name of the workflow knoten"},"rollen":{"type":"object","description":"Who does the step today and what code/AI could take over, with work shares"},"signale":{"type":"array","items":{"type":"object"},"description":"Mail patterns that show an object reached or finished this step; replaces the list"},"agent_id":{"type":"string","description":"ID of the agent"},"max_tage":{"type":"integer","description":"Days after which an object at this node counts as overdue"},"ausloeser":{"type":"object","description":"Trigger fired when an object enters the node (keine, mensch or agent)"},"agent_info":{"type":"string","description":"What an agent must know, do or check at this node"},"schluessel":{"type":"string","description":"Key of the node within the workflow; for Pipedrive the stage/phase ID"},"reihenfolge":{"type":"integer","description":"Position of the node in the workflow order"},"workflow_id":{"type":"string","description":"ID of the workflow"},"vorbereitung":{"description":"Object or list of objects, null to remove.","type":"string"},"erledigt_wenn":{"type":"object","description":"Condition JSON over the object's data that marks the step as done"}}},"annotations":{"title":"Upsert workflow knoten","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":true}},"changes":[{"kind":"schema","detail":"Added \"type\":\"string\" to untyped parameters: vorbereitung. Change to number/boolean/array where that's what you accept.","verify":true}],"tokensBefore":538,"tokensAfter":542}],"toolsChanged":7,"tokensSaved":0,"todo":[],"note":"Deterministic fixes. Changes marked verify need a human look before shipping (renames, inferred annotations, inferred types, removed text). Parameter descriptions in `todo` need to be written by someone who knows the API."}