Skip to main content
Glama

datatype-delete

DestructiveIdempotent

Remove datatypes from the Simplifier platform by specifying their qualified name, including namespace prefixes when needed.

Instructions

#Delete a datatype Deletes the datatype with the given name. The name may be prefixed by the namespace, separated with a slash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qualifiedNameYes

Implementation Reference

  • The main handler function for the 'datatype-delete' MCP tool. It extracts the qualified name, computes tracking key, splits into name and namespace using helper, and delegates to simplifier.deleteDataType.
    }, async ({ qualifiedName: qualifiedName }) => {
      return wrapToolResult(`delete data type ${qualifiedName}`, async () => {
        const trackingKey = trackingToolPrefix + toolNameDatatypeDelete
        const { name: name, namespace: namespace } = splitNamespace(qualifiedName);
        return simplifier.deleteDataType(name, namespace, trackingKey);
      })
    });
  • Zod input schema for the datatype-delete tool, requiring a single 'qualifiedName' string parameter.
    {
      qualifiedName: z.string(),
    },
  • Registration of the 'datatype-delete' tool on the MCP server using server.tool(), including name, description reference, input schema, execution hints, and inline handler.
    const toolNameDatatypeDelete = "datatype-delete"
    server.tool(toolNameDatatypeDelete,
      datatypeDeleteDescription,
      {
        qualifiedName: z.string(),
      },
      {
        title: "Delete a Data Type",
        readOnlyHint: false,
        destructiveHint: true,
        idempotentHint: true,
        openWorldHint: true
      }, async ({ qualifiedName: qualifiedName }) => {
        return wrapToolResult(`delete data type ${qualifiedName}`, async () => {
          const trackingKey = trackingToolPrefix + toolNameDatatypeDelete
          const { name: name, namespace: namespace } = splitNamespace(qualifiedName);
          return simplifier.deleteDataType(name, namespace, trackingKey);
        })
      });
  • Utility helper function that parses a qualified datatype name (e.g., 'ns/type') into separate namespace and name components, used in the delete handler.
    const splitNamespace = (qualifiedName: string): { namespace: string | undefined, name: string } => {
      const nameStart = qualifiedName.lastIndexOf('/')
      const namespace = nameStart > 0 ? qualifiedName.substring(0, nameStart) : undefined
      const name = qualifiedName.substring(nameStart + 1)
      return { namespace, name }
    }
Behavior4/5

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

The description adds valuable behavioral context beyond annotations: it explains the namespace prefix syntax and confirms the deletion action. While annotations already indicate destructiveHint=true and idempotentHint=true, the description reinforces the destructive nature and provides operational details not covered by structured fields.

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?

Extremely concise with zero wasted words. Two sentences cover purpose, action, parameter meaning, and syntax details. The hash header provides clear structure, and every element serves a specific informational purpose.

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?

For a destructive operation with no output schema, the description provides good coverage: purpose, parameter semantics, and namespace syntax. However, it doesn't mention potential side effects, confirmation requirements, or what happens to dependent objects, which would be helpful given the destructive nature.

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?

With 0% schema description coverage and only one parameter, the description fully compensates by explaining what 'qualifiedName' represents (datatype name with optional namespace prefix separated by slash). It provides complete semantic understanding of the single parameter beyond the bare schema.

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 clearly states the specific action ('Deletes') and resource ('datatype with the given name'), distinguishing it from sibling tools like datatype-update. It provides precise scope by mentioning namespace prefixing with slash syntax, making the purpose unambiguous and well-differentiated.

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

Usage Guidelines4/5

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

The description implies usage context through the namespace prefix explanation, but doesn't explicitly state when to use this tool versus alternatives like datatype-update or when deletion is appropriate. It provides some operational guidance but lacks explicit when/when-not directives or named alternatives.

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/simplifier-ag/simplifier-mcp'

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