Skip to main content
Glama
kesslerio

Attio MCP Server

by kesslerio

delete-record

Destructive

Remove specific records from your Attio CRM system, including companies, people, lists, tasks, deals, and notes by providing the record ID and resource type.

Instructions

Delete a record of any supported type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
record_idYesRecord ID to delete
resource_typeYesType of resource to operate on (companies, people, lists, records, tasks)

Implementation Reference

  • Core handler function for the delete-record tool. Performs DELETE request to Attio API /v2/objects/{slug}/records/{record_id} using the HttpClient.
    export async function handleDeleteRecord(
      client: HttpClient,
      params: {
        resource_type: ResourceType;
        record_id: string;
      }
    ): Promise<ToolResult> {
      try {
        const { resource_type, record_id } = params;
        const objectSlug = getObjectSlug(resource_type);
    
        await client.delete(`/v2/objects/${objectSlug}/records/${record_id}`);
    
        return structuredResult(
          { record_id },
          `Deleted ${resource_type} record with ID: ${record_id}`
        );
      } catch (error) {
        const { message, details } = extractErrorInfo(error);
        return errorResult(message || 'Failed to delete record', details);
      }
    }
  • ToolDefinition for delete-record, including input schema (resource_type and record_id required) and formatted description.
    export const deleteRecordDefinition: ToolDefinition = {
      name: 'delete-record',
      description: formatDescription({
        capability:
          'Delete an Attio record from its object (company, person, deal, task)',
        boundaries:
          'cascade delete related data or clean up list memberships automatically',
        constraints:
          'Requires record_id and resource_type; operation is irreversible once confirmed',
        recoveryHint:
          'If uncertain, fetch with records_get_details to confirm the target before deletion',
      }),
      inputSchema: {
        type: 'object',
        properties: {
          resource_type: RESOURCE_TYPE_SCHEMA,
          record_id: {
            type: 'string',
            description: 'Record ID to delete',
          },
        },
        required: ['resource_type', 'record_id'],
      },
    };
  • Registration of delete-record handler in the getToolHandler dispatch map.
    'delete-record': async (client, params) =>
      handleDeleteRecord(
        client,
        params as Parameters<typeof handleDeleteRecord>[1]
      ),
  • Export and registration of deleteRecordDefinition in coreToolDefinitions object.
    'delete-record': deleteRecordDefinition,
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the agent knows this is a destructive write operation. The description adds minimal context beyond this—it doesn't specify whether deletions are permanent, reversible, have confirmation steps, or affect related data. With annotations covering the safety profile, this meets baseline expectations but doesn't provide rich behavioral details.

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 with zero wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly. Every word earns its place without redundancy or unnecessary elaboration.

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 destructive tool with no output schema, the description is minimally adequate but lacks depth. Annotations cover safety (destructive), and schema covers parameters fully, but the description doesn't address critical context like what 'delete' entails (permanent? soft delete?), error handling, or return values. It meets basic requirements but leaves gaps for informed usage.

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 both parameters clearly documented in the schema (record_id and resource_type with enum values). The description adds no additional parameter semantics beyond what the schema provides, such as explaining the relationship between record_id and resource_type or providing examples. Baseline 3 is appropriate when schema does the heavy lifting.

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 resource ('record of any supported type'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'remove-record-from-list' or 'batch-operations' that might also involve deletion operations, preventing a perfect score.

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 'remove-record-from-list' (which removes from lists but doesn't delete) or 'batch-operations' (which might handle bulk deletions). It lacks context about prerequisites, permissions needed, or when deletion is appropriate versus other operations.

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/kesslerio/attio-mcp-server'

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