tb-word-mgagent

v0.3.1
@unboundai/tb-word-mgagent Checked 1 day ago Published 1 month ago

MCP server that hands a document outline to the Traffic Builders Word Managed Agent, then retrieves the finished .docx

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

generate_tb_word_document

Start generating a Traffic Builders-branded Word document from a document outline, via Anthropic's hosted Managed Agent (brand assets and design brief already provisioned in that agent's environment - nothing is uploaded here). Creates a new session, sends the outline as the first message, and returns the session id right away - it does NOT wait for the document to finish building. Use this whenever the user has typed or drafted an outline for a report/audit/proposal and wants it turned into a Traffic Builders Word document. Follow up later with get_tb_word_document_result using the returned s…

ParameterTypeDescription
outline *stringThe document outline: chapter/section headings in order, with any sub-points, KPIs, tables, or copy the user already wrote.
attachmentsarrayOptional files from the chat to include in the document (images to embed as figures, or PDFs/spreadsheets/documents as source material). At most 10. Each needs one of path, url, data or fileId.
authorstringOptional. Auteur on the meta table/bar (formeel, contract, bold).
clientNamestringOptional client/company name (Opdrachtgever) for the title page, meta table/bar and bold eyebrow.
contactPersonstringOptional. Contactpersoon on the meta table/bar (formeel, contract, bold).
coverstringCover page (voorblad). Default auto = only for documents of 5+ pages, whitepapers, offertes and formal documents (strategie, mediaplan, plan van aanpak, beleidsdocument); always for formeel/contract/b…
datestringOptional. Datum as dd-mm-jjjj for the meta table/bar. Defaults to today.
docTypestringOptional short label for the document (e.g. 'SEA Audit', 'Kwartaalrapportage', 'Projectvoorstel').
filenamestringOptional filename without extension for the resulting .docx.
imagesarrayDeprecated alias of `attachments`.
numberedHeadingsstringNumbered chapter/paragraph structure (1, 1.1, 1.1.1). Default auto = only for whitepapers, offertes and formal documents (strategie, mediaplan, plan van aanpak, beleidsdocument); always for formeel/co…
tableOfContentsstringTable of contents. Default auto = when headings are numbered or the document is 5+ pages.
templatestringWhich Traffic Builders Word template to use. standaard = internal notes/process descriptions/minutes (no meta table); formeel = client documents that record something (plan van aanpak, audit, advisory…
versionstringOptional. Versie for the meta table/bar (0.x draft, 1.0 first delivery). Defaults to 0.1.

get_tb_word_document_result

Check on a Traffic Builders Word document generation started with generate_tb_word_document, and fetch the finished file once ready. Retrieves the session, and ONLY looks for output files if the session is idle AND its most recent status_idle event has stop_reason 'end_turn' (a clean finish - not idle for another reason like a budget cap). When ready, finds a .docx file under the session's outputs, downloads it into the local GCS-synced output folder, and returns a download link. If not ready yet, reports the current status instead.

ParameterTypeDescription
sessionId *stringThe session id returned by generate_tb_word_document.