Skip to main content
Glama

anytype_get_type

Retrieve a specific object type from Anytype by providing the space ID and type ID to access structured data within your workspace.

Instructions

Obtiene un tipo específico

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
space_idYesID del espacio
type_idYesID del tipo

Implementation Reference

  • The main handler function for 'anytype_get_type' that extracts space_id and type_id from arguments, makes an API request to retrieve the type details, and returns the JSON-formatted response.
    export async function handleGetType(args: any) { const { space_id, type_id } = args; const response = await makeRequest(`/v1/spaces/${space_id}/types/${type_id}`); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; }
  • The tool schema definition including name, description, and input schema requiring space_id and type_id.
    { name: 'anytype_get_type', description: 'Obtiene un tipo específico', inputSchema: { type: 'object', properties: { space_id: { type: 'string', description: 'ID del espacio' }, type_id: { type: 'string', description: 'ID del tipo' }, }, required: ['space_id', 'type_id'], }, },
  • src/index.ts:150-151 (registration)
    The switch case registration in the main tool dispatcher that routes 'anytype_get_type' calls to the handleGetType handler.
    case 'anytype_get_type': return await handleGetType(args);
  • src/index.ts:89-89 (registration)
    Inclusion of typeTools array (containing the schema) into the master tools list for tool discovery.
    ...typeTools,

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