Skip to main content
Glama

List the media library

list_media
Read-onlyIdempotent

The media library (the Gallery page's files), newest first, one item per file: id, type (image or video), url and thumbnailUrl (signed links that expire in an hour; url is null once a published video was cleaned up), imageUrls for a carousel, fileName, size in bytes when known, caption, createdAt and the posts that use it (id, platform, status). Returns { items, nextCursor }: while nextCursor is not null, pass it 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
typeNoOnly this kind of file.
limitNoPosts to read per page, up to 100. Default 40.
cursorNonextCursor from the previous page.
organizationIdNoWhich organization to act in: an id from list_organizations. Leave out for this connection's default organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses that signed links expire in an hour, that url becomes null once a published video is cleaned up, that size may be absent, and that items carry their associated posts. These are exactly the operational caveats an agent cannot infer from structured fields.

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?

The definition is front-loaded with the resource and ordering, then the return contract, with no filler sentences. The long field inventory in the first sentence is dense but every item is a return-value fact the agent would otherwise lack, given there is no output schema.

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 carries the full burden of describing the return shape and does so completely: the { items, nextCursor } envelope, per-item fields, and nullability/expiry edge cases. Nothing essential for calling and consuming this tool 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 value: "one item per file" clarifies that limit counts media files, resolving the schema's misleading "Posts to read per page" wording, and the cursor loop explains how nextCursor is consumed. It does not add anything for type or organizationId beyond what the schema already says.

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

Purpose4/5

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

The description names the resource concretely ("the media library (the Gallery page's files)"), states ordering (newest first) and granularity (one item per file), and enumerates the returned fields. It does not explicitly distinguish itself from siblings such as list_network_posts or list_posts, relying on the name alone for that separation.

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

Usage Guidelines3/5

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

The pagination procedure is spelled out precisely ("while nextCursor is not null, pass it back as cursor"), which is genuinely actionable. However, there is no statement of when to prefer this tool over alternatives like list_posts or get_post_status, and no prerequisites or exclusions are given.

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