Skip to main content
Glama

create_mdx_component

Register a new MDX component with a unique PascalCase key and prop schema, for use in entry richText bodies

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": {
      "key": "<key>",
      "label": "<label>"
    },
    "name": "create_mdx_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
labelYes
propsNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden for a write operation. It does add one genuinely non-schema detail — the key must be unique — but says nothing about permissions, what happens on a duplicate key collision, whether registration is idempotent or reversible, or what the call returns.

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 front-loaded sentence with the action first and no filler. It is efficient, though the trailing purpose clause and the embedded constraints make it slightly dense compared with a clean split into purpose and constraint.

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?

For a mutation tool with zero annotation coverage, no output schema, and four parameters at 0% schema description coverage, the description is too thin. An agent cannot tell what it gets back, whether label/description matter, or how failures (duplicate key, invalid prop type) are surfaced.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, yet the description only touches 'key' (restating the PascalCase constraint already encoded in the pattern) and gestures at 'props'. The required 'label' parameter and the optional 'description' parameter are completely undocumented, and the allowed prop types are never explained.

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 ('Register a new MDX component') plus the scope of use ('entry richText bodies'), which is enough for an agent to distinguish it from delete_mdx_component, get_mdx_component, and update_mdx_component by verb alone. It never explicitly names a sibling or contrasts itself with them, so it stops 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 Guidelines3/5

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

The clause 'for use in entry richText bodies' implies when the component is applicable, but there is no explicit when-to-use/when-not-to-use guidance, no mention of alternatives, and no stated prerequisites (e.g. must the component exist before an entry references it). Usage must be inferred.

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.

Resources