Skip to main content
Glama

aps_get_item_details

Retrieve summarized metadata for a single file or item, including name, type, size, version, and dates, using a project ID and item ID for quick lookups.

Instructions

Get summarised metadata for a single file / item: name, type, size, version number, dates. Much smaller than the raw JSON:API response. Use for quick file lookups when you already have the item_id from a folder listing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID – starts with 'b.'.
item_idYesItem (lineage) URN – starts with 'urn:'.

Implementation Reference

  • The handler logic for 'aps_get_item_details' which validates inputs and calls 'apsDmRequest' and 'summarizeItem'.
    // ── aps_get_item_details ─────────────────────────────────────
    if (name === "aps_get_item_details") {
      const projectId = args.project_id as string;
      const itemId = args.item_id as string;
      const e1 = validateProjectId(projectId);
      if (e1) return fail(e1);
      const e2 = validateItemId(itemId);
      if (e2) return fail(e2);
    
      const t = await token();
      const raw = await apsDmRequest(
        "GET",
        `data/v1/projects/${projectId}/items/${encodeURIComponent(itemId)}`,
        t,
      );
      return json(summarizeItem(raw, { projectId }));
    }

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/pabloderen/ACC.MCP'

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