Skip to main content
Glama

Set up the paper language

setup_paper_language

Configures an Overleaf project for Korean or English writing: adds kotex and switches to XeLaTeX for Korean, or confirms no setup for English. Use before Korean text or Unicode errors.

Instructions

Prepare the project for writing in Korean or English. For "ko": adds \usepackage{kotex} to the main file's preamble (if no Korean package is loaded yet) and switches the compiler to XeLaTeX (needs the opt-in web mode; otherwise it says how to do it in Overleaf). For "en": reports that no setup is needed. Run this before writing Korean text, or when compile reports "Unicode character" errors for Korean.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNoProject ID or Overleaf project URL (or project name in web mode). Defaults to OVERLEAF_PROJECT_ID.
languageYesPaper language.
main_fileNoMain .tex file. Detected automatically if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the concrete mutation (adds \usepackage{kotex} to the preamble), a compiler switch to XeLaTeX, the prerequisite (opt-in web mode), idempotency ('if no Korean package is loaded yet'), and the Overleaf fallback. It stops short of describing reversibility or the exact response/return shape.

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?

Front-loaded with the purpose followed by per-language specifics; every clause earns its place. The second sentence is somewhat dense with nested parentheticals, which slightly hurts scannability but not comprehension.

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 3-param, no-annotation, no-output-schema tool, the description is nearly complete, covering triggers, side effects, prerequisites, and the Overleaf alternative. Minor gaps remain around failure modes and what the tool reports when setup is already satisfied.

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?

Schema coverage is 100% so the baseline is 3, and the description exceeds it by mapping each enum value ('ko' vs 'en') to a distinct behavioral outcome, which the schema only labels as 'Paper language.' The 'project' and 'main_file' parameters get no additional semantics, but they are already fully documented in the schema.

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 ('Prepare the project for writing in Korean or English') and immediately enumerates the concrete effect for each mode. It is distinguishable from all siblings, none of which perform project-level writing setup.

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

Usage Guidelines5/5

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

Provides an explicit trigger ('Run this before writing Korean text, or when compile reports "Unicode character" errors for Korean') and effectively handles the negative case by telling the agent that 'en' needs no setup. Nothing is left to inference about when to invoke it.

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