Skip to main content
Glama

get_artifact_metadata

Read-onlyIdempotent

Retrieve an artifact's metadata by its SHA-256 digest without downloading the file bytes. Use it to check filename, size, MIME type, kind, and upload details.

Instructions

Return one artifact's metadata by its SHA-256 digest: id, sha256, size_bytes, mime_type, filename, kind, uploaded_by and created_at, without the bytes (get_artifact returns metadata plus content_base64). An artifact from another workspace, or one tied only to a private channel or DM you cannot read, is NotFound, the same as a missing one. A malformed digest is refused as invalid. Find digests with list_thread_artifacts or in an upload result. Requires workspace:read.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sha256": "<sha256>"
    },
    "name": "get_artifact_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
sha256YesSHA-256 of the artifact bytes as a 64-character hexadecimal string. A malformed value is refused rather than reported as not found.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv479.0.2
    • addedInput schema / properties / sha256 / description
      Added value: +"SHA-256 of the artifact bytes as a 64-character hexadecimal string. A malformed value is refused rather than reported as not found."
  2. First observedv479.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds non-obvious behavior: cross-workspace or unreadable private-channel/DM artifacts are reported as NotFound identically to missing ones, and malformed digests are refused as invalid rather than reported NotFound. It also states the auth scope and the exact response field set, which annotations cannot convey.

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?

Three tight sentences: purpose and return shape first, then error semantics, then how to find the input and the required scope. Every clause carries information; nothing is redundant padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by naming all eight returned fields, and it covers error semantics and authorization for a one-parameter tool. Nothing an agent needs to call it correctly or interpret failures is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter is fully documented (64-char hex), so the baseline is 3. The description adds meaning beyond the schema by noting the malformed-value rejection path and, more usefully, where to source valid digests, which the schema does not say.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Return one artifact's metadata by its SHA-256 digest') and enumerates the returned fields, then explicitly contrasts with the sibling get_artifact ('returns metadata plus content_base64'). An agent can distinguish this from get_artifact without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the selecting condition (metadata without bytes vs. get_artifact for content) and tells the agent how to obtain the required digest ('list_thread_artifacts or in an upload result'), plus the prerequisite scope workspace:read. No inference needed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools