Skip to main content
Glama
jigarkkarangiya

magento-sql-mcp-server

Get EAV Attribute

get_eav_attribute
Read-onlyIdempotent

Look up an EAV attribute to get its backend_type and query guidance, indicating whether to query the base entity table or EAV value tables.

Instructions

Looks up an EAV attribute by entity_type_code (alias: entity_type) and attribute_code. Returns backend_type and query guidance. static backend_type → query base entity table, not EAV value tables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
profileNoOverride the MAGENTO_SQL_PROFILE env var for this call only. Use list_connection_profiles to see available names.
entity_typeNoAlias for entity_type_code (e.g. 'customer', 'catalog_product').
magentoRootNoAbsolute path to the Magento root (must contain app/etc/env.php). Defaults to MAGENTO_ROOT env var or auto-discovery.
attribute_codeYesEAV attribute code (e.g. 'name', 'status', 'price', 'visibility').
entity_type_codeNoEAV entity type code (e.g. 'catalog_product', 'customer', 'catalog_category').

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNo
rowsYes
sampledNo
rowCountYes
truncatedNo
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint false, so the description doesn't need to repeat that. It adds valuable guidance about interpreting the result: 'static backend_type → query base entity table, not EAV value tables,' which clarifies a behavioral nuance beyond what annotations and schema provide.

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 two concise sentences, front-loaded with the core lookup purpose and the key parameters. The query-guidance note is appended neatly without bloat, and every sentence earns its place.

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 a full output schema and complete parameter descriptions, the description doesn't need to repeat those. It adds the crucial query guidance for interpreting backend_type, which is essential for effective use. The only minor gap is that the description implies both parameters are needed while the schema marks entity_type_code optional, but that's a schema concern more than a description gap.

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 100%, so the schema already documents all parameters. The description adds the alias relationship between entity_type_code and entity_type, and it highlights the two most important parameters (entity_type_code and attribute_code) in the purpose statement, giving the agent better focus.

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 states a specific verb ('looks up'), a clear resource ('EAV attribute'), and the two key discriminators (entity_type_code and attribute_code). It immediately distinguishes from siblings like get_product_attributes by focusing on a single attribute lookup with backend_type guidance.

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?

The description implies the primary use case—looking up a specific EAV attribute's metadata—but does not explicitly mention when to prefer this over alternative tools like get_product_attributes or when not to use it. There are no exclusions or alternative routing, so an agent must infer the appropriate context from the naming and description.

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/jigarkkarangiya/magento-sql-mcp-server'

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