Skip to main content
Glama

styleset_install

Install a JSON style set into a .docx document, adding new styles and replacing or skipping existing ones. Use dry_run to preview without writing.

Instructions

Install a JSON style set into the document: new styles are added, existing ones replaced (or skipped); dry_run previews.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docYesPath to the .docx.
pathNoOr a style set file.
expectNo
dry_runNoPreview only; write nothing.
stylesetNoThe style set (inline).
on_conflictNoA style id already in the document (default replace).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations supply only readOnlyHint=false, so the description carries the real burden and delivers: new styles are added, existing ones replaced or skipped, and dry_run writes nothing. That is genuine mutation/overwrite disclosure beyond the annotation. It omits permission needs, failure/rollback behavior, and the effect of on_conflict='error'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with a colon and a parenthetical; the write semantics come first and the dry_run caveat last. No filler 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 6-parameter mutation tool with nested objects and no output schema, the core behavior is covered but key gaps remain: the expect.sha256 integrity check, the relationship/mutual exclusivity of doc, path, and inline styleset, and the third on_conflict mode are all unexplained.

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 description coverage is 83%, so the schema already documents doc, path, dry_run, styleset, and on_conflict. The description echoes the conflict resolution and dry_run semantics but adds no new detail, and is silent on the nested expect.sha256 verification and the 'error' enum value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (Install) and resource (a JSON style set into the document), and the 'JSON' qualifier implicitly separates it from the dotx-oriented siblings styleset_import-dotx/styleset_export-dotx. It does not name any sibling explicitly, but the scope is unambiguous.

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

Usage Guidelines2/5

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

It never states when to use this versus style_create, style_update, styleset_import-dotx, or style_merge, nor any prerequisites (open document, valid style set). The only usage signal is the incidental 'dry_run previews' clause, which is inferential rather than directive.

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