Skip to main content
Glama
kahlilashanti

Mantis Immersive Commerce MCP

generateEventHandler

Generate Mantis SDK event handler code for any event type and action, tailored to your framework. Use it to convert cart-opened or model-click triggers into ready-to-run code.

Instructions

Generate event handler code for Mantis SDK events

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventYesEvent type (cart-opened, model-click, etc.)
actionYesAction to perform when event fires
frameworkYesTarget framework for code generation
Install Server

TDQS

C2.9/5.0
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 simply states 'generate event handler code' without indicating whether this is a read-only operation, whether it modifies files, or what the output format is. The absence of side-effect clarity is a significant gap for a code-generation tool.

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?

A single, unambiguous sentence conveys the purpose without unnecessary words. It is compact and front-loaded, though it omits details that would enhance usability, which prevents a perfect score.

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

Completeness3/5

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

For a code generation tool with no output schema, the description is minimally sufficient but lacks essential context about the output type, examples, or any side effects. An agent would understand what it does but not what to expect in return, which is incomplete for a non-trivial operation.

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?

The schema descriptions cover all three parameters (event, action, framework), each with a brief explanation. The description adds no additional meaning beyond what the schema provides, so the baseline of 3 applies given 100% schema coverage.

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 'generate' and the resource 'event handler code for Mantis SDK events', making it distinguishable from sibling tools like testMantisEvent or analyzeEventFlow. However, it does not explicitly differentiate itself beyond the core action, so it falls short of 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, nor does it mention any prerequisites or exclusions. Without mentioning sibling tools or usage context, an agent has no basis for selecting this over createMantisIntegration or testMantisEvent.

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

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/kahlilashanti/mantis-mcp'

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