tb-word-mgagent
v0.3.1MCP 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…
| Parameter | Type | Description |
|---|---|---|
outline * | string | The document outline: chapter/section headings in order, with any sub-points, KPIs, tables, or copy the user already wrote. |
attachments | array | Optional 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. |
author | string | Optional. Auteur on the meta table/bar (formeel, contract, bold). |
clientName | string | Optional client/company name (Opdrachtgever) for the title page, meta table/bar and bold eyebrow. |
contactPerson | string | Optional. Contactpersoon on the meta table/bar (formeel, contract, bold). |
cover | string | Cover 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… |
date | string | Optional. Datum as dd-mm-jjjj for the meta table/bar. Defaults to today. |
docType | string | Optional short label for the document (e.g. 'SEA Audit', 'Kwartaalrapportage', 'Projectvoorstel'). |
filename | string | Optional filename without extension for the resulting .docx. |
images | array | Deprecated alias of `attachments`. |
numberedHeadings | string | Numbered 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… |
tableOfContents | string | Table of contents. Default auto = when headings are numbered or the document is 5+ pages. |
template | string | Which 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… |
version | string | Optional. 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.
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | The session id returned by generate_tb_word_document. |