# Meta tag generator

Generate ready-to-paste HTML meta tags: title, description, canonical, Open Graph and Twitter card.

- Endpoint: `POST https://setget.net/v1/tools/meta-tags-generate` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `meta-tags-generate`
- Page: https://setget.net/tools/meta-tags-generate

## Inputs

- `title` (required, string): The page title.
- `description` (optional, string): A one or two sentence summary of the page.
- `url` (optional, string): The canonical address of the page.
- `image` (optional, string): The address of the preview image (1200 x 630 pixels works well).
- `site_name` (optional, string): The name of the site.
- `type` (optional, string, one of `website`, `article`, `product`, `profile`, `book`, `video.other`, `music.song`, default `"website"`): The Open Graph type.
- `twitter_card` (optional, string, one of `auto`, `summary`, `summary_large_image`, default `"auto"`): The Twitter card style. "auto" picks the large image card when there is an image.
- `twitter_site` (optional, string): The @name of the site on X (Twitter).

## Example

```json
{"input":{"title":"Tools & more","description":"Small web utilities.","url":"https://example.com/tools"}}
```

Result:

```json
{"text":"<title>Tools &amp; more</title>\n<meta name=\"description\" content=\"Small web utilities.\">\n<link rel=\"canonical\" href=\"https://example.com/tools\">\n<meta property=\"og:type\" content=\"website\">\n<meta property=\"og:title\" content=\"Tools &amp; more\">\n<meta property=\"og:description\" content=\"Small web utilities.\">\n<meta property=\"og:url\" content=\"https://example.com/tools\">\n<meta name=\"twitter:card\" content=\"summary\">\n<meta name=\"twitter:title\" content=\"Tools &amp; more\">\n<meta name=\"twitter:description\" content=\"Small web utilities.\">","warnings":["There is no image. Link previews look much better with one."]}
```

**Where do the tags go?** Inside the head element of the page.

**Why the limits of 60 and 160 characters?** Search results usually cut titles at about 60 characters and descriptions at about 160. Longer text still works but may be shortened.

**Must the image address be absolute?** Yes. Preview generators do not resolve relative addresses, so start it with https://.
