Skip to main content
Glama

Social media studio

Get Media Rules

get_media_rules
Read-only

Return the full media rules table this workspace enforces: accepted MIME types, byte caps, attachment counts, duration, pixel bounds, aspect-ratio ranges, video codecs and frame-rate caps, per platform and post type. Use it to choose a destination or to generate media at the right size in the first place; use validate_post_media to check one specific file. These are Social media studio configured limits, not a live mirror of each platform API.

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": "get_media_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
postTypeNoLimit the answer to one post type; requires socialMedia
socialMediaNoLimit the answer to one platform

Output Schema

NameRequiredDescriptionDefault
codeYes
noteNo
sizeUnitNo
platformsYesplatform -> post type -> the configured rule for that combination.
ruleSourceNo
aspectRatioUnitNo

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 declare this is a safe read-only, non-destructive, closed-world operation. The description adds important behavioral context by warning that the returned limits are workspace-configured rather than live platform API values, though it does not discuss any rate or freshness limitations beyond that.

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?

The description is three compact sentences with no filler. Purpose, usage guidance, alternative routing, and the source-of-truth caveat are all front-loaded and easy to scan.

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?

Given the output schema exists, the description does not need to explain return values. It covers what the tool returns, when to use it, the relevant alternative, and the important limitation on the data source, leaving no material gaps for correct invocation.

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%, so the enum parameters and the postType socialMedia dependency are fully documented in the schema. The description only adds that results are organized per platform and post type and that the unfiltered default is the full table, which is useful but limited beyond the structured fields.

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: return the full media rules table this workspace enforces. It enumerates the exact rule categories covered and explicitly distinguishes the tool from validate_post_media.

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?

Explicitly says to use this tool when choosing a destination or generating media at the right size, and names validate_post_media for checking one specific file. It also clarifies the scope caveat that these are configured studio limits, not live platform API mirrors.

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