Skip to main content
Glama

Build an Open Graph card

build_open_graph
Read-onlyIdempotent

Render one of the Open Graph templates as a PNG and a Next.js opengraph-image.tsx file. Pass a template id from list_og_templates, the fields that template uses, colors, a size, and optional base64 images.

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

Input Schema

NameRequiredDescriptionDefault
ctaNo
urlNo
dateNo
heroNoHero image as base64, a data URI, or a public URL.
logoNoLogo image as base64, a data URI, or a public URL. Private addresses are refused. 10 MB cap.
metaNo
roleNo
sizeNo1200x630
statNo
timeNo
afterNoAfter image as base64, a data URI, or a public URL.
badgeNo
brandNoBrand name shown on templates that have a brand row.
priceNo
quoteNo
stepsNoOne step per line.
titleNo
authorNo
avatarNoPortrait image as base64, a data URI, or a public URL.
beforeNoBefore image as base64, a data URI, or a public URL.
colorsNo
captionNo
commandNo
episodeNo
eyebrowNo
imageUrlNoPublic URL written into og:image. This does not fetch the file.
readTimeNo
subtitleNo
templateNoTemplate id from list_og_templates.editorial
versionsNoOne version per line, as v2.3 | Note.
statLabelNo
afterValueNo
beforeValueNo

Output Schema

NameRequiredDescriptionDefault
pngYesPNG bytes, base64 encoded.
widthYes
heightYes
sourceYes
metaTagsYes
mimeTypeYes
templateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered without prose help. The description adds useful context that two artifacts are produced and that images may be passed as base64, but it never says whether files are written to disk or returned, nor mentions the URL-fetch/private-address limits that the schema documents for logo images.

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?

Two dense sentences, front-loaded with the output artifacts before the input guidance. No filler, though the second sentence strings categories together in a way that reads more like an enumeration than a structured parameter guide.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. However, for a tool with 33 parameters and a template-driven field model, the description should do more to explain which fields apply to which template and whether the TSX artifact is written or returned.

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?

With 33 parameters and only 30% schema description coverage, the schema alone does not carry the burden. The description does supply the key organizing principle — the active field set depends on the chosen template, with colors, size, and optional base64 images added on top — but it gives no per-field meaning for the many template-specific strings (stat, beforeValue, versions, steps, cta, eyebrow).

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 ("Render ... Open Graph templates") and names both artifacts produced (a PNG and a Next.js opengraph-image.tsx file). It also names the sibling that supplies template ids, so an agent can distinguish discovery from rendering without opening either 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 clear ordering guidance: pass a template id from list_og_templates, implying list_og_templates should be called first. It does not state when-not to use this tool or what happens with an unknown template id, so no explicit exclusions or failure guidance.

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.