Skip to main content
Glama

Merge translation files

cs_merge_translations

Import translated .resx or .json files into agents or an unpacked solution folder. Use whatIf to preview changes; set confirm:true to apply to a live environment.

Instructions

Import translated .resx or .json files back into one or more agents (environment or unpacked solution folder). whatIf previews the merge without writing. Runs 'pac copilot merge-translation' with the active pac auth profile. Mutates a live environment: requires confirm: true (a dry run otherwise). Only some inputs mutate; see the parameter descriptions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for pac (for project commands: the solution project folder)
filesYesTranslation files; glob patterns allowed
whatIfNoReport what would change without changing anything
confirmNoRequired to actually perform a change in a live environment. Without it the tool returns a dry run.
profileNopac auth profile to run as: the admin account for tenant commands. Defaults to CPS_ADMIN_PROFILE for admin commands and CPS_PAC_PROFILE otherwise, then the active profile. cs_init lists the profiles.
verboseNoMore diagnostic output
solutionNoSolution unique name
sourceDirNoUnpacked solution folder to update instead of the environment
backgroundNoRun in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status.
environmentNoEnvironment id or URL; default: the environment of the active pac auth profile
timeoutSecondsNoDefault 900

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.4/5.0
Behavior5/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 excellently. It discloses the dry-run behavior with whatIf, the mutation of a live environment, the confirm requirement, and that only some inputs mutate (guiding the agent to parameter descriptions). It also mentions the actual pac command and auth profile, which is valuable behavioral context.

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 composed of four tightly-packed sentences, each earning its place: core purpose, whatIf preview, underlying command and auth, and mutation/confirm behavior. It is front-loaded and structured logically, with no filler or redundant content.

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?

Given the complexity of 11 parameters and no output schema, the description covers the essential high-level semantics: import direction, target scope, dry-run behavior, mutation safety, and the confirm gate. It appropriately points to parameter descriptions for details and explains the overall workflow well as a standalone definition.

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 100%, so the baseline is 3. The description adds a useful meta-note that only some inputs mutate)Skip mentioning 'see the parameter descriptions', but this does not materially enhance parameter meaning beyond the already-comprehensive schema. No additional detail on any specific parameter is provided.

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 a specific verb ('Import'), resource (translated .resx or .json files), and target ('back into one or more agents'), with scope ('environment or unpacked solution folder'). It distinguishes itself from sibling cs_extract_translations by using 'back' to indicate the reverse direction, and mentions the underlying pac command, so an agent can unambiguously identify what it does.

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?

The description provides clear context on how to use the tool: it previews with whatIf, requires confirm: true for actual mutation, and runs with the active pac auth profile. However, it does not explicitly name alternatives or state when not to use this tool versus a sibling like cs_extract_translations, so it stops short of full exclusion guidance.

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

Deploy Server

Other Tools