Skip to main content
Glama
elgentos

Magento 2 Development MCP Server

by elgentos

Config Store Get

config-store-get

Retrieve store-specific configuration values from Magento 2 by providing the configuration path and optional store ID to access targeted settings.

Instructions

Get store-specific Magento 2 configuration values

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesConfiguration path to get
storeIdNoStore ID (optional)

Implementation Reference

  • src/index.ts:843-882 (registration)
    Registration of the 'config-store-get' tool using server.registerTool, including name, metadata (title, description, inputSchema), and inline handler function.
    server.registerTool(
      "config-store-get",
      {
        title: "Config Store Get",
        description: "Get store-specific Magento 2 configuration values",
        inputSchema: {
          path: z.string()
            .describe("Configuration path to get"),
          storeId: z.string()
            .optional()
            .describe("Store ID (optional)")
        }
      },
      async ({ path, storeId }) => {
        let command = `magerun2 config:store:get "${path}"`;
    
        if (storeId) {
          command += ` --store-id="${storeId}"`;
        }
    
        const result = await executeMagerun2Command(command);
    
        if (!result.success) {
          return {
            content: [{
              type: "text",
              text: result.error
            }],
            isError: true
          };
        }
    
        return {
          content: [{
            type: "text",
            text: `Store configuration value:\n\n${result.data}`
          }]
        };
      }
    );
  • The handler function for 'config-store-get' that constructs and executes a magerun2 config:store:get command, handles errors, and returns formatted results.
    async ({ path, storeId }) => {
      let command = `magerun2 config:store:get "${path}"`;
    
      if (storeId) {
        command += ` --store-id="${storeId}"`;
      }
    
      const result = await executeMagerun2Command(command);
    
      if (!result.success) {
        return {
          content: [{
            type: "text",
            text: result.error
          }],
          isError: true
        };
      }
    
      return {
        content: [{
          type: "text",
          text: `Store configuration value:\n\n${result.data}`
        }]
      };
    }
  • Zod-based input schema defining required 'path' (string) and optional 'storeId' (string) parameters for the tool.
    inputSchema: {
      path: z.string()
        .describe("Configuration path to get"),
      storeId: z.string()
        .optional()
        .describe("Store ID (optional)")
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it's a read operation ('Get'), but doesn't mention potential side effects, error conditions, authentication needs, rate limits, or what the return format looks like. This is inadequate for a tool with no annotation coverage.

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 a single, efficient sentence that front-loads the core purpose without any wasted words. It's appropriately sized for a simple retrieval tool and earns its place by clearly stating the action and target.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (retrieving configuration values), lack of annotations, and no output schema, the description is insufficient. It doesn't explain what the return values look like, error handling, or how it differs from similar tools, leaving significant gaps for the agent.

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 schema already documents both parameters ('path' and 'storeId') adequately. The description adds no additional meaning beyond implying store-specific configuration retrieval, which aligns with the schema but doesn't provide extra context like format examples or edge cases.

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?

The description clearly states the verb 'Get' and the resource 'store-specific Magento 2 configuration values', making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'config-show' or 'config-store-set', which would require a 5.

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?

The description provides no guidance on when to use this tool versus alternatives like 'config-show' or 'config-store-set'. It lacks any context about prerequisites, typical use cases, or exclusions, leaving the agent with minimal direction.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elgentos/magento2-dev-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server