Skip to main content
Glama

biovia_insert_ole_into_docx

Embed editable BIOVIA Draw OLE objects into existing Word .docx files by replacing placeholders, filling table cells, or appending structures, reactions, and captions.

Instructions

Embed genuine editable BIOVIA Draw OLE objects (MDLDrawOLE.MDLDrawObject.1 — NOT plain pictures!) into ANY existing Word (.docx) document. Supports replacing placeholders like '{{biovia:aspirin}}', inserting into a specific table cell (table_index/row_index/col_index), or appending.

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": {
      "input_docx_path": "<input_docx_path>",
      "insertions": "<insertions>"
    },
    "name": "biovia_insert_ole_into_docx"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoPNG preview supersampling scale 1..6 (default: 3).
export_pdfNoAlso export updated .docx to .pdf via Word COM.
insertionsYes
style_presetNoOptional BIOVIA Draw Journal Settings preset name (e.g. 'ACS Document', 'RSC Document', 'Wiley Document', 'Presentations').
hydrogen_modeNoImplicit hydrogen display mode (default: 'HeteroOrTerminal').
input_docx_pathYesPath to existing .docx file.
output_pdf_pathNo
color_by_elementNoColor heteroatoms by element (default: false = publication black-and-white).
output_docx_pathNoOptional output .docx path (defaults to overwriting input).
show_stereo_labelsNoShow CIP R/S and E/Z stereochemistry labels on the rendered drawing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the mode-dependent effects and that output defaults to overwriting the input (in schema), but says nothing about requiring BIOVIA Draw/Word COM automation, permission/lock requirements for the open .docx, or what happens when a placeholder is not found.

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?

One front-loaded sentence plus a compact mode enumeration; the emphasis on 'genuine editable OLE' earns its place because that is the tool's distinguishing property. Minor redundancy with the schema's placeholder example, but no wasted sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with a nested insertions array, no annotations and no output schema, the description covers purpose and modes but omits prerequisites (Draw/Word installation), failure behavior, and whether result paths are returned. Adequate but leaves real gaps for an agent calling it blind.

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?

Schema coverage is 80%, so the schema already documents most parameters including table_index/row_index/col_index and placeholder. The description reinforces the placeholder token format and table-cell indices but adds no syntax or format detail beyond what the schema states; baseline 3 applies.

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 ('Embed genuine editable BIOVIA Draw OLE objects ... into ANY existing Word (.docx) document') and explicitly rules out the tempting misreading with 'NOT plain pictures!'. The three supported insertion modes are named, which makes it clearly distinct from siblings like biovia_create_pptx_slides or biovia_export_pdf.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete usage contexts: replacing '{{biovia:aspirin}}' placeholders, inserting at a specific table cell, or appending. That maps each mode to a scenario, but there is no explicit exclusion guidance (e.g. when to use this instead of a PPTX or PDF route, or what to do if no placeholder exists).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.