Skip to main content
Glama

Get Workspace Language

get_workspace_language
Read-only

Read the default workspace language for a Docmost workspace, enabling AI clients to adapt content by locale. Requires Docmost 0.98 or later.

Instructions

Read the default workspace language only. Needs Docmost 0.98+.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_workspace_language"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description is consistent with a pure read. It adds a genuinely new behavioral fact not present in structured data: the Docmost 0.98+ version prerequisite, which tells the agent the call may fail on older instances. It does not elaborate on failure behavior, but that is a minor omission given an output schema exists.

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?

Two very short sentences with the core action first and the compatibility constraint second. Every clause carries information; nothing is redundant.

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?

For a zero-argument read with annotations and an output schema, the description covers purpose and the one non-obvious constraint (minimum version). It could note what 'default workspace language' resolves to or fallback behavior, but the essentials for correct invocation are present.

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

Parameters4/5

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

The tool takes zero parameters, so there is no parameter semantics to explain; baseline 4 applies. The schema explicitly forbids additional properties, and the description correctly implies no inputs are needed.

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?

States a specific verb and resource ('Read the default workspace language'), and the word 'only' signals it is the read counterpart to set_workspace_language without requiring the agent to inspect the schema. It stops short of naming the sibling explicitly, so differentiation is implied rather than stated.

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?

The 'only' phrasing plus the presence of set_workspace_language in the sibling set implies when to use this tool versus the setter, and the version requirement gives a precondition. However, there is no explicit 'use this instead of X when Y' guidance or statement about what happens on older Docmost versions.

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