Skip to main content
Glama

Make an ad from a web page

make_ad

Build a 15-second video ad kit from a business's web page: its homepage, a product page, a restaurant's site. It takes two calls, because the user's email address has to be proved first. Call it with url and email: a code is emailed to the user. Ask them for the code, then call it again with url, email and code: that returns an id and a page the user can open to watch the build. Generation time depends on the queue and the source site, so follow it with get_ad; the user is also emailed when it is ready.

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>",
      "email": "<email>"
    },
    "name": "make_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe page the ad should send people to.
codeNoThe code Pagecuts emailed to that address. Leave it out on the first call.
emailYesThe user's own email address. Ask for it; never guess it.
instructionsNoOptional. What this ad should push, in the user's words: an offer, a product, an event, who it is for. Up to 2,000 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, so the mutation and open-world nature are given. The description still adds real value beyond them: email-ownership proof, the emailed code, a returned id plus a watchable page, queue/site-dependent generation time, and an email notification on completion. That said, with annotations carrying the safety profile this sits at the upper end of 'adds context' rather than doing the full load.

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?

Four sentences, front-loaded with what the tool produces before the mechanics, and each sentence carries distinct information: artifact, sequencing, verification obstacle, and follow-up. Nothing repeats the schema or the annotations.

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

Completeness4/5

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

Covers the full call flow, the verification prerequisite, return shape, timing expectations, and the follow-up tool despite no output schema existing. A minor gap is that it does not state what happens if the code expires or is wrong, which matters for a two-phase verified flow.

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?

Schema coverage is 100%, so the baseline is 3; the description earns an extra point by explaining the phase-dependent role of code (omit on first call, supply on second) and by framing email as something to ask for rather than guess. It stops short of describing the instructions parameter, which the schema already covers well.

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 concrete verb and artifact ('Build a 15-second video ad kit') plus the accepted input variety ('its homepage, a product page, a restaurant's site'), and names the follow-up sibling get_ad, so an agent can distinguish it from the read-only companion 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Spells out the two-call sequence, what triggers the second call (the emailed code), what to do with the user in between ('Ask them for the code'), and explicitly routes the agent to get_ad afterward. No inference about when to call or when not to is left open.

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