Skip to main content
Glama

set_document_language

Define the default language for a Word document by specifying a BCP-47 language tag such as 'en-US' or 'fr-FR'.

Instructions

Set the default document language.

Writes the BCP-47 language tag into the default paragraph style's run properties (w:rPr/w:lang) in word/styles.xml.

Args: language_code: BCP-47 language tag, e.g. "en-US", "fr-FR", "de-DE".

Returns: {"language": language_code}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
language_codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Given no annotations, the description details the exact XML modification (w:rPr/w:lang in word/styles.xml), providing clear behavioral insight. However, it omits side effects, error conditions, or prerequisites.

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?

The description is concise with one core sentence followed by a clear docstring-style args/returns section. Every sentence is informative with no redundancy.

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

Completeness4/5

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

The description covers purpose, behavioral detail, parameters, and return format. It misses some edge cases but is adequate for a straightforward tool. Works well with the output schema context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, but the description fully explains the parameter 'language_code' as a BCP-47 tag with examples, adding significant value beyond the schema's bare type definition.

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?

The description clearly states the verb-resource combo 'Set the default document language' and further specifies the exact XML path where the language is written, distinguishing it from run-level language setting tools like set_run_language.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this tool versus alternatives such as set_run_language. The description implies it sets the overall document default, but does not explicitly state when to choose this over other language-related tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SecurityRonin/docx-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server