Skip to main content
Glama

get_media

Read-only

Resolves a previously returned media_id into its storage path and public URL.

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

Input Schema

NameRequiredDescriptionDefault
idYes

Output Schema

NameRequiredDescriptionDefault
bodyNoUpstream error details, when available.
codeNoError code when the tool result has isError=true.
dataNoPresent on successful results; omitted on tool errors.
metaNo
statusNo
messageNo

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, destructiveHint false and openWorldHint false, so the safety profile is covered. The description adds the one behavioral fact annotations cannot convey — that the id must be a previously returned media_id — but gives no detail on failure behavior for unknown IDs or on how the lookup is scoped.

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?

A single front-loaded sentence that moves from input to output with zero filler. Every clause earns its place.

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 one-parameter read tool with a full annotation set and an existing output schema, the description covers the essentials, and it need not re-describe return values. It stops just short of completeness by omitting error behavior for stale or invalid IDs.

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 description coverage is 0% and the single parameter is a bare 'id' string, so the description carries the full burden. It does so by identifying the parameter as a previously returned media_id, which tells the agent where the value must come from; only the exact format is left undocumented.

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 (resolves) plus the exact resource transformation: a media_id into its storage path and public URL. Nothing among the listed siblings does this, and the description makes the input-to-output mapping explicit enough to distinguish it from create_upload_url.

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 phrase 'a previously returned media_id' implies a prerequisite (this tool only applies to IDs from an earlier upload call), which is useful usage context. However, it never names an alternative tool or states when not to use it, so guidance is implied rather than explicit.

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