Skip to main content
Glama
jongall45

Frontrun MCP Server

by jongall45

frontrun_delete_rule

Remove a custom classification rule from the Frontrun MCP Server to manage venture capital tracking configurations.

Instructions

Delete a custom classification rule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesRule UUID to delete

Implementation Reference

  • The handler function for 'frontrun_delete_rule' tool - makes a DELETE API call to /classify/rules/{id} endpoint and returns the result as JSON text
    async ({ id }) => {
      const result = await apiCall('DELETE', `/classify/rules/${id}`);
      return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
    }
  • Zod schema defining the input parameter: 'id' as a required string with description 'Rule UUID to delete'
    { id: z.string().describe('Rule UUID to delete') },
  • index.js:307-315 (registration)
    Tool registration using server.tool() - registers 'frontrun_delete_rule' with description 'Delete a custom classification rule.'
    server.tool(
      'frontrun_delete_rule',
      'Delete a custom classification rule.',
      { id: z.string().describe('Rule UUID to delete') },
      async ({ id }) => {
        const result = await apiCall('DELETE', `/classify/rules/${id}`);
        return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
      }
    );
  • apiCall helper function that handles HTTP requests to the Frontrun API with authentication headers, timeout handling, and error management
    async function apiCall(method, path, body = null) {
      const url = `${API_URL}/v1${path}`;
      const options = {
        method,
        headers: {
          'X-API-Key': API_KEY,
          'Content-Type': 'application/json',
        },
      };
      if (body) {
        options.body = JSON.stringify(body);
      }
    
      const controller = new AbortController();
      const timeout = setTimeout(() => controller.abort(), 60000);
      options.signal = controller.signal;
    
      let response;
      try {
        response = await fetch(url, options);
      } catch (err) {
        clearTimeout(timeout);
        if (err.name === 'AbortError') return { error: 'Request timed out (60s). Try a narrower query.' };
        return { error: `Network error: ${err.message}` };
      }
      clearTimeout(timeout);
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'Delete' implies a destructive operation, the description doesn't specify whether deletion is permanent, reversible, requires specific permissions, or has side effects on related data. This leaves significant behavioral gaps for a mutation tool.

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 states the core purpose without unnecessary words. It's appropriately sized for a simple deletion operation and gets straight to the point.

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 destructive operation with no annotations and no output schema, the description is insufficient. It doesn't explain what happens after deletion (success confirmation, error conditions), whether the action affects other system components, or provide any context about the rule lifecycle. The agent lacks critical information to use this tool safely and effectively.

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%, with the single parameter 'id' documented as 'Rule UUID to delete'. The description doesn't add any meaningful parameter semantics beyond what the schema already provides, so it meets the baseline expectation without adding extra value.

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 action ('Delete') and the resource ('a custom classification rule'), making the purpose immediately understandable. However, it doesn't differentiate this tool from its sibling 'frontrun_update_rule' or explain what distinguishes deletion from other rule modifications.

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 'frontrun_update_rule' or 'frontrun_list_rules'. There's no mention of prerequisites (e.g., needing an existing rule ID), consequences of deletion, or when deletion is appropriate versus updating.

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/jongall45/frontrun-mcp-server'

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