Skip to main content
Glama

Get platform limits

platform_limits
Read-onlyIdempotent

Return per-platform caption limits, media rules, thread limits, and recommended media specs (dimensions, container formats, size/duration caps). Consult this BEFORE generating or picking media for a post so images/videos match what the platform renders best (e.g. X images at 1600×900 16:9, X video as MP4 H.264 up to 20 minutes). accepts is what the platform can publish, in one sentence; mediaRules is the same as data — formats by name, maxMB, and a video's minSeconds and maxSeconds (a limit left out is never refused for); refusesMixedMedia means images and a video cannot share a post there. Unlike mediaSpecs, which recommends, every one of these is refused before a post is written, scheduled or published. threadMax is the max follow-up posts a thread can carry after the caption; null means the platform has no thread model. captionFormatting describes the rich-text markup the platform renders in captions (e.g. Telegram accepts a markdown subset); null means captions publish as plain text. formats lists the post.type values the platform honors; null means it ignores type and just consumes the media set. supportsAudio means a track from the platform’s own catalog can be attached through the API (see list_audio) — only Instagram reels can. For every other platform the audio must already be baked into the video file. postingRules lists what the platform refuses beyond length and media (X: one $cashtag per post, replies and quotes only where the target post names the account, thread replies that @mention only people already in the conversation, one X account per post); empty means nothing beyond the numbers.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
platformsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / platforms / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": true,
      -      "properties": {
      -        "allowsText": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/requiresMedia"
      -        },
      -        "captionFormatting": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/mediaSpecs"
      -        },
      -        "captionMax": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "formats": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/mediaSpecs"
      -        },
      -        "label": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/platform"
      -        },
      -        "maxImages": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/captionMax"
      -        },
      -        "maxVideos": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/captionMax"
      -        },
      -        "mediaHint": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/platform"
      -        },
      -        "mediaSpecs": {},
      -        "platform": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "postingRules": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/mediaSpecs"
      -        },
      -        "requiresMedia": {
      -          "type": [
      -            "boolean",
      -            "null"
      -          ]
      -        },
      -        "supportsAudio": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/requiresMedia"
      -        },
      -        "threadMax": {
      -          "$ref": "#/properties/platforms/anyOf/0/items/properties/captionMax"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "accepts": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/platform"
      +        },
      +        "allowsText": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/requiresMedia"
      +        },
      +        "captionFormatting": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/mediaRules"
      +        },
      +        "captionMax": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "formats": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/mediaRules"
      +        },
      +        "label": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/platform"
      +        },
      +        "maxImages": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/captionMax"
      +        },
      +        "maxVideos": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/captionMax"
      +        },
      +        "mediaHint": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/platform"
      +        },
      +        "mediaRules": {},
      +        "mediaSpecs": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/mediaRules"
      +        },
      +        "platform": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "postingRules": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/mediaRules"
      +        },
      +        "refusesMixedMedia": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/requiresMedia"
      +        },
      +        "requiresMedia": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "supportsAudio": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/requiresMedia"
      +        },
      +        "threadMax": {
      +          "$ref": "#/properties/platforms/anyOf/0/items/properties/captionMax"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so safety is covered. The description adds genuine behavioral context beyond them: which values are recommendations versus hard refusals ('every one of these is refused before a post is written'), null semantics for threadMax, captionFormatting, and formats, and the constraint that audio must be baked into the file except for Instagram reels. That is real added value, though it is framed mostly as output-field semantics.

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?

Placeholder check: the response shape below is where this dimension is reported; the assessment here is that the description is long and dense, enumerating field after field (accepts, mediaRules, refusesMixedMedia, threadMax, captionFormatting, formats, supportsAudio, postingRules). Because an output schema already exists, much of that field-by-field exposition duplicates structured data rather than adding meaning, and the phrase 'mediaRules is the same as data' is ambiguous. The opening sentence is well front-loaded, which keeps it from scoring lower.

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?

For a zero-parameter reference tool with a full output schema and read-only annotations, the description supplies far more than the minimum an agent needs to decide to call it and how to use the result.

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?

The tool takes zero parameters, so the baseline of 4 applies and there is nothing for the description to compensate for.

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 first sentence names a specific verb+resource: returning per-platform caption limits, media rules, thread limits, and recommended media specs. It is easy to distinguish from action tools like create_post or attach_media. It does not explicitly differentiate from the sibling image_formats, which plausibly overlaps with the mediaSpecs content, so it stops short of a 5.

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 a clear when-to-use directive: 'Consult this BEFORE generating or picking media for a post.' It also cross-references list_audio for the audio catalog. There is no explicit when-not or statement of alternatives for the non-media parts (thread limits, postingRules), so it is clear context rather than full routing.

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.