Skip to main content
Glama

Get Artifact

get_artifact
Read-only

Fetch the content of a saved Maven Bio artifact by its file_id. IDs ("file_...") come from list_artifacts results. Do not construct or guess IDs.

Use format="text" (default) to get markdown content inline. Use format="file" to get a presigned download URL for binary formats like PPTX or XLSX. Download URLs are short-lived; always honor the expires_at in the response and fetch the file promptly. Artifacts with no inline text form (charts, uploaded binary files, and evidence reviews, which are delivered as a Word brief) automatically return a download URL even when format="text", with a note explaining the fallback.

Use max_doc_tokens to limit how much content is returned (default 8000). Lower it when you only need a quick scan of a large report or table.

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": {
      "file_id": "<file_id>"
    },
    "name": "get_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format: 'text' returns markdown content, 'file' returns a presigned download URL.text
file_idYesThe file ID to retrieve, obtained from list_artifacts results.
max_doc_tokensNoMax tokens of content returned. Ignored for 'file' format. Default 8000.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only and non-destructive, but the description adds behavior the annotations cannot: download URLs are short-lived and must be honored against expires_at, and artifacts without an inline text form (charts, uploads, Word-brief evidence reviews) silently fall back to a URL even when text is requested. Those fallback and expiry semantics are the details most likely to cause a failed call if unknown.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose then ID provenance, then format selection, then the token budget — a sensible order. The third paragraph on fallback behavior is longer but each clause carries new information; no filler or restated boilerplate.

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?

An output schema exists, so return values need no explanation, and the description instead covers the operational risks: ID provenance, format branching, silent URL fallback, and link expiry. That is complete for a three-parameter read tool with full schema coverage.

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%, so a baseline of 3 is warranted, but the description adds real meaning: concrete binary-format examples that motivate format="file", the fact that max_doc_tokens is ignored under file format, and a practical heuristic for lowering the token default on large reports. Only the file_id parameter is left purely to the schema.

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?

The first sentence gives a specific verb and resource ('Fetch the content of a saved Maven Bio artifact') scoped by identifier, and the second sentence routes the agent to list_artifacts as the ID source. That distinguishes it from the catalog-listing sibling without needing to open 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 Guidelines4/5

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

Clear conditions are given for the main branch point: format="text" for inline markdown, format="file" for binary formats such as PPTX/XLSX. It also states an explicit prohibition (do not construct or guess IDs) and where valid IDs come from. It stops short of contrasting with other content-reading siblings like read_document or search_documents.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources