Skip to main content
Glama

Read post (oEmbed)

oembed
Read-onlyIdempotent

Reads a public post through its provider's oEmbed endpoint: the author, the post text (as plain text), a thumbnail and the embed HTML, in a small response. Supported today: x.com and twitter.com. Works for a tweet or X post where fetching the page itself is slow, blocked or too large. Not for video or audio - use media_transcribe.

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": {
      "url": "<url>",
      "context": "<context>"
    },
    "name": "oembed"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the post, e.g. https://x.com/user/status/123
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
maxWidthNoPreferred embed width in pixels
workspace_idNoWhich workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace.

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 readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds value beyond that by disclosing the response is small, that output is plain-text post body plus embed HTML, and which providers are supported. It stops short of mentioning auth or rate-limit behavior, which keeps it from a 5.

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 sentences, front-loaded with purpose and response shape, then usage conditions, then the exclusion. Every clause carries information and nothing is repeated from the name or annotations.

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?

There is no output schema, so the description compensates by naming the returned fields and characterizing the payload size. Combined with the provider support list and the routing note to media_transcribe, an agent has everything needed to call this correctly.

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%, so url, context, maxWidth and workspace_id are all documented in the schema itself. The description adds no parameter-level detail such as URL format expectations or how maxWidth affects the returned embed, so the baseline 3 applies.

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?

The description opens with a specific verb and resource ('Reads a public post through its provider's oEmbed endpoint') and then enumerates the returned fields (author, post text, thumbnail, embed HTML). It also states the currently supported domains, so an agent knows exactly what class of input it handles.

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?

It gives a positive condition ('where fetching the page itself is slow, blocked or too large') and an explicit exclusion with the alternative named ('Not for video or audio - use media_transcribe'). This is the when/when-not/alternative pattern at full strength.

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