Skip to main content
Glama

render_static_ad

Render a static ad to PNG and JPEG. Costs 5 credits the first time (and when a photo format makes a new photo), refunded if it fails; confirm with the user before spending credits. Returns a jobId: poll get_job_status, then get_content for the image links.

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": {
      "projectId": "<projectId>"
    },
    "name": "render_static_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
newPhotoNoPhoto formats only: make a new photo (charges again)
projectIdYesStatic ad projectId

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses credit cost (5 credits), the re-charge condition tied to new photo generation, refund-on-failure behavior, and the asynchronous jobId pattern. Remaining gaps are secondary (no mention of format selection, permissions, or partial-failure behavior).

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 tight sentences ordered as action, cost/confirmation, then return-and-follow-up flow. Every sentence carries information an agent needs and the cost warning is placed before the call is made.

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, and the description compensates by explaining the jobId return and the exact follow-up chain (get_job_status → get_content). Combined with the credit and refund disclosure, an agent has enough to invoke and follow through correctly for this two-parameter tool.

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% and both parameters are already documented, including the newPhoto re-charge note. The description's mention of a new photo costing credits largely restates the schema rather than adding syntax or constraints, so this sits at the baseline.

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 plus the concrete outputs ('Render a static ad to PNG and JPEG'), which immediately separates it from render_carousel or the image/video generators in the sibling list. An agent knows exactly what artifact this produces without opening the 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 a clear precondition ('confirm with the user before spending credits') and the post-call workflow (poll get_job_status, then get_content). It stops short of explicit when-not guidance or naming an alternative render path, so it lands just under a 5.

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