Skip to main content
Glama

anytype_delete_object

Delete or archive objects in Anytype by specifying space and object IDs to remove unwanted content from your workspace.

Instructions

Elimina (archiva) un objeto

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
space_idYesID del espacio
object_idYesID del objeto

Implementation Reference

  • The handler function that executes the tool logic by sending a DELETE request to the Anytype API endpoint to archive/delete the specified object.
    export async function handleDeleteObject(args: any) { const { space_id, object_id } = args; const response = await makeRequest(`/v1/spaces/${space_id}/objects/${object_id}`, { method: 'DELETE', }); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; }
  • The input schema definition for the anytype_delete_object tool, specifying required space_id and object_id parameters.
    { name: 'anytype_delete_object', description: 'Elimina (archiva) un objeto', inputSchema: { type: 'object', properties: { space_id: { type: 'string', description: 'ID del espacio' }, object_id: { type: 'string', description: 'ID del objeto' }, }, required: ['space_id', 'object_id'], }, },
  • src/index.ts:132-133 (registration)
    The switch case registration in the MCP server that routes calls to the 'anytype_delete_object' tool to the handleDeleteObject handler.
    case 'anytype_delete_object': return await handleDeleteObject(args);

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/cryptonahue/mcp-anytype'

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