Skip to main content
Glama

hac_storefront_app_config

Inspects and aligns local Composable Storefront Angular workspace configuration, syncing OCC backend URL, baseSite, routing, and B2B/B2C mode flags for SAP Commerce.

Instructions

Inspects and aligns the local Composable Storefront Angular workspace configuration:

  • Synchronizes backend OCC CX_BASE_URL in .env-cmdrc

  • Aligns baseSite and multi-language routing in spartacus-b2b-configuration.providers.ts

  • Verifies B2B/B2C mode flags

Args: storefront_dir: Path to local Spartacus storefront repository backend_url: Target Commerce Cloud backend OCC URL (default 'https://localhost:9002') base_site: Target BaseSite UID (default 'powertools-spa') b2b_mode: Whether B2B mode is enabled (default True) lang: Output language ('zh' or 'en')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNozh
b2b_modeNo
base_siteNopowertools-spa
backend_urlNohttps://localhost:9002
storefront_dirNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It is genuinely useful in disclosing which files get modified ('synchronizes ... in .env-cmdrc', 'aligns ... in spartacus-b2b-configuration.providers.ts'), which signals a file-mutating operation. However, it does not state whether changes overwrite or preserve existing values, whether they are reversible, whether a backup is taken, or what permissions are needed.

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?

Purpose is front-loaded in the opening line, followed by a tight three-bullet enumeration of concrete operations and a compact Args block. Every element is load-bearing, though the Args block partially repeats schema field names rather than adding only net-new meaning.

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?

An output schema exists, so return values need not be explained, and the description covers all five inputs plus the files it mutates. For a config-writing tool with no annotations, it would be stronger if it disclosed reversibility or safety behavior, but the core information needed to invoke it correctly is 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?

Schema description coverage is 0%, so the description must compensate, and it does: all five parameters are described with meaning and defaults (storefront_dir as repo path, backend_url as target OCC URL, base_site as BaseSite UID, b2b_mode flag, lang). It even supplies the enum values 'zh'/'en' for lang, which the schema itself omits. It falls just short of documenting edge cases like a null storefront_dir.

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 pair (inspects/aligns) and resource (local Composable Storefront Angular workspace configuration), then enumerates exactly which artifacts are touched: .env-cmdrc, spartacus-b2b-configuration.providers.ts, and B2B/B2C mode flags. This is far more concrete than a generic 'configure' tool. It does not, however, name a distinguishing sibling such as hac_storefront_autofix or hac_configure, so the boundary with those tools is left to inference.

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

Usage Guidelines2/5

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

There is no explicit when-to-use statement, no prerequisites, and no named alternative. With siblings like hac_storefront_autofix, hac_spartacus_doctor, and hac_configure in the same namespace, the agent has no guidance on when this config-aligner is preferred over them. Usage is only implied by the bullet list of operations.

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