Skip to main content
Glama

Set repository locale path patterns

set_repository_patterns

Add locale path patterns to a connected repository (existing identical patterns are skipped). Each pattern must contain exactly one {locale} and at most one {namespace}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repositoryId": "<repositoryId>",
      "patterns": "<patterns>"
    },
    "name": "set_repository_patterns"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternsYes
repositoryIdYes

Output Schema

NameRequiredDescriptionDefault
patternsYesEvery pattern on the repository after the call, not only the ones just added

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false), the description discloses that the operation is additive rather than replacing and that duplicate identical patterns are skipped, which is meaningful idempotency context for a write tool. It does not mention permission requirements or what happens when a pattern violates the {locale}/{namespace} rule.

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 sentences, both front-loaded with actionable information: the operation and its dedupe behavior first, then the hard format constraint on the input. No filler wording.

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?

With an output schema present, return values need not be described, and the description covers the operation's semantics plus the key validation rule. The remaining gap is the fileFormat requirement per pattern and error behavior on invalid input, which an agent would have to infer from the schema.

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 0%, so the description must compensate; it partially does by constraining 'patterns' entries to exactly one {locale} and at most one {namespace}. It says nothing about the required repositoryId, the required fileFormat enum inside each pattern object, or the free-form 'options' object.

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: 'Add locale path patterns to a connected repository'. An agent can tell this mutates repository locale configuration rather than connecting or detecting a repository, though it does not explicitly name the sibling tools it is distinct from.

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?

Usage is implied by 'connected repository', suggesting connect_repository must run first, and the skip-existing rule hints at safe re-invocation. There is no explicit when-to-use/when-not-to-use statement or named alternative for related setup tools like detect_repository.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.