Skip to main content
Glama

anytype_delete_object

Archives or deletes an object within a specified space using the object ID. Facilitates streamlined object management in the Anytype MCP Server environment.

Instructions

Elimina (archiva) un objeto

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_idYesID del objeto a eliminar
space_idYesID del espacio

Implementation Reference

  • The handler function that implements the core logic of deleting (archiving) an object by making a DELETE request to the Anytype API endpoint `/v1/spaces/{space_id}/objects/{object_id}` and returning the response.
    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 the required parameters: space_id and object_id.
    { 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 in the main CallToolRequest handler that registers and dispatches calls to the 'anytype_delete_object' tool by invoking handleDeleteObject.
    case 'anytype_delete_object': return await handleDeleteObject(args);
  • src/index.ts:85-92 (registration)
    The tools array registration that includes objectTools (containing the schema for anytype_delete_object) for the ListTools endpoint.
    const tools = [ ...spaceTools, ...objectTools, ...propertyTools, ...typeTools, ...tagTools, ...templateTools, ...listTools,

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