Skip to main content
Glama

List media

list_media
Read-only

List media files in a space, as structured JSON (id, space_id, kind). Get the spaceId from list_spaces or list_folders. This is the structured counterpart to browsing media/ via inspect_space.

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": {
      "spaceId": "<spaceId>"
    },
    "name": "list_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default 1)
limitNoMax media to return (default 100)
spaceIdYesSpace ID from `list_spaces`

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds value by disclosing the output modality ('structured JSON') and the returned fields in the absence of an output schema, though it says nothing about pagination behavior or whether deeply nested folders are included.

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 short sentences with no filler; the core action and return shape come first, then the parameter source, then the sibling differentiation. Every sentence carries information the agent needs.

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

Completeness4/5

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

For a simple paginated list tool with full annotation coverage and full schema coverage, the definition supplies purpose, input sourcing, sibling routing, and return fields. The remaining gap is result-set semantics — total counts, ordering, or whether the list spans subfolders — which the agent might reasonably want.

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

Parameters3/5

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

Schema description coverage is 100%, with page, limit, and spaceId all documented in the schema itself, so the baseline is 3. The description only adds a marginally useful note that `list_folders` is also an acceptable source for spaceId, and says nothing about page/limit semantics.

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 ('List media files in a space') plus the exact return shape (id, space_id, kind), and explicitly frames itself as the structured counterpart to `inspect_space` browsing, so an agent can separate the two without opening a 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 prerequisite pathway for the required parameter ('Get the spaceId from `list_spaces` or `list_folders`') and names the alternative route for the same underlying data (`inspect_space` on `media/`), so the choice between tools is determinable from the description alone.

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.