Skip to main content
Glama

Get media

get_media
Read-onlyIdempotent

Get one media record by ID. Get the ID from list_media or get_post. target says what the media is attached to: post (default), comment, task, or taskComment.

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": {
      "mediaId": "<mediaId>"
    },
    "name": "get_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetNoWhat the media is attached to. Default post.
mediaIdYesMedia ID.

Output Schema

NameRequiredDescriptionDefault
idYes
urlNo
fileNameNo
fileTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is fully covered. The description adds only the meaning of `target` beyond that, and says nothing about failure behavior when the ID or target is wrong. Adequate but not enriching over the structured data.

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?

Two short sentences, front-loaded with the operation and followed by the prerequisite and parameter note. No redundant or filler wording; every clause carries information.

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?

With an output schema present, return values need not be described, and the safety annotations are complete, so the definition covers what an agent needs for a two-parameter read. The minor gap is that it does not mention what happens on a not-found ID or a mismatched target value.

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 coverage is 100% and the enum description already states "Default post," so the description's restatement of the target values mostly duplicates the schema. The one genuine addition is ID provenance ("Get the ID from list_media or get_post"), which is useful but limited to a single parameter.

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 ("Get one media record by ID") with singular scope, which cleanly separates it from the sibling list_media and from get_media_stats. An agent can tell what this returns without opening the 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?

Gives concrete routing guidance by naming where to obtain the required ID (list_media or get_post), so an agent knows the prerequisite step. It stops short of stating when NOT to use it (e.g., bulk retrieval should go to list_media), so no explicit exclusion is present.

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