Skip to main content
Glama

List media

list_media
Read-onlyIdempotent

List uploaded media, newest first, 50 per page. target picks what the media is attached to: post (default), comment, task, or taskComment, with postId, commentId, taskId, or taskCommentId naming the parent. For post media, narrow with fileType, projectId, uploaderId (a user ID or me), createdAfter, createdBefore, or q (file name words), and sort by createdAt or fileSize with order. Each item shows isProcessing, hasError, and conversionStatus while a video or 3D model is still being prepared. Pass nextCursor back as cursor.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoWords in the file name.
sortNoDefault createdAt.
limitNoPage size. Default 50.
orderNoDefault desc.
cursorNoPrevious nextCursor.
postIdNoOnly media attached to this post.
targetNoWhat the media is attached to. Default post.
taskIdNoOnly media attached to this task (target task).
fileTypeNoFile type, such as image or video.
commentIdNoOnly media attached to this comment (target comment).
projectIdNoPost media only: this project, by ID or slug.
uploaderIdNoPost media only: uploaded by this user, a user ID or "me".
createdAfterNoMedia uploaded after this time. Epoch milliseconds or an ISO 8601 time with a timezone.
createdBeforeNoMedia uploaded before this time. Epoch milliseconds or an ISO 8601 time with a timezone.
taskCommentIdNoOnly media attached to this task comment (target taskComment).

Output Schema

NameRequiredDescriptionDefault
itemsYes
hasMoreNo
nextCursorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, non-open-world behavior, yet the description still adds real context: newest-first default ordering, fixed page size, cursor-based pagination, and the fact that items expose isProcessing, hasError, and conversionStatus while a video or 3D model is still being prepared. That processing-state note is the kind of behavior an agent cannot get from annotations alone.

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?

Five tight sentences with no filler: resource and ordering first, then target semantics, then filter scope, then return-state hints, then pagination instruction. Ordering is front-loaded and progressive rather than alphabetical or schema-mirroring.

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?

For a 15-parameter list tool with an output schema and full annotation coverage, the description supplies exactly what the structured fields cannot: target-to-ID coupling, post-only filter scope, default sort/page size, and pagination mechanics. Nothing an agent needs to invoke it correctly 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%, so the baseline is 3, but the description adds cross-parameter semantics the schema only states piecemeal: target decides which of the four ID fields is meaningful, and fileType/projectId/uploaderId are explicitly scoped to post media. It also glosses q as file-name words and cursor as the previous nextCursor, tying the pagination loop together.

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?

Opens with a specific verb and resource plus ordering and page size: "List uploaded media, newest first, 50 per page." It then enumerates the four attachment targets (post, comment, task, taskComment), which makes the scope unambiguous even against siblings like list_media_posts or get_media.

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?

Explains how to drive the tool: pick target first, then use postId/commentId/taskId/taskCommentId to name the parent, and narrow with post-only filters. It also gives a concrete follow-up instruction ("Pass nextCursor back as cursor"). It stops short of saying when to prefer this over a sibling such as list_media_posts or get_media.

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