Server definition
- Hash
- sha256:e7babeaf940e929a4bbdb0e570e948aaed25bf8b98dc50d1fc459ef9e260bba3
- What it is
- What a remote MCP server returned when asked what it offers: 16 tools
The blob, as servednamed by its sha256
{
"instructions": "Galley Render turns a template plus a JSON payload into a PDF, PNG or JPG behind a signed URL.\n\nThe short path: `render` with a template name and data. No API key is needed for the first 10 PDF pages or 10 images —\na trial is minted on the first call and its token comes back in the response. Carry that token in the\n`X-Galley-Key` header to stay on the same trial, and call `create_account` with an email to lift the\nlimit. It returns a four-character request code: tell the person, because the email's page shows the\nsame code and asks them to confirm the request before any key is handed over.\n\n**If the person you are working for already has a Galley key, use it rather than the trial.** Send it on\nthe connection — `Authorization: Bearer <key>`, or `X-Galley-Key: <key>` — and every call acts on their\naccount. A client that cannot set headers (Claude.ai connectors, ChatGPT apps) is added with a personal\nURL, https://mcp.galleyrender.com/mcp/c/<random id>, and calls `link_account` once, with the key or with a\none-time code `create_account` mails to the account's own address. Added with the shared URL and no id,\nit is recognised only by network address and User-Agent, which its other users share: it gets the keyless\ntrial and can't be linked.\n`whoami` says which of the three you are on; check it before a batch, and check it the moment a quota\nerror quotes a limit nobody recognises.\n\nBefore rendering an unfamiliar template, call `get_template` and read its JSON Schema, or `validate_data`\nto dry-run a payload for free. Pin a version (`invoice@3`) in anything you ship.\n\nRenders are deterministic and cached: identical template version, data and options return the stored\nobject with `cached: true`, at no cost. Errors carry a stable `type`, a `docs_url` and, for validation,\nthe field path, the expected type and an accepted example — fix the payload from the error and retry.\n\nWhen an account runs out (`quota_exceeded`) or asks for a paid feature on Free (`plan_required`),\n`upgrade` returns a Stripe Checkout link and `billing_portal` returns a link to change or cancel a plan.\nBoth hand back a URL for a human to open: nothing here can enter a card, change a plan, cancel a\nsubscription or issue a refund, so pass the link on and say what it costs rather than promising either.",
"tools": [
{
"description": "Get a link to the Stripe customer portal, for a human to open: change plan, update the card, download invoices, or cancel.\n\nThis is the only way any of those happen. Galley's API cannot change or cancel a subscription and cannot issue a refund — deliberately — so if you are asked to downgrade or cancel, the answer is this link and a human on the other end of it. The link is single-use and short-lived, so fetch a fresh one rather than storing it.\n\nOnly works once the account has subscribed at least once; before that, use `upgrade`. Free.\n\n**If billing is not enabled on the deployment this is pointed at, the call is refused with `billing_unavailable` (503) rather than answered with a link.** Say so and point the human at [email protected]. Do not construct a portal URL yourself and do not retry.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
},
"name": "billing_portal",
"outputSchema": null
},
{
"description": "Turn the keyless trial into a real account and get a permanent API key.\n\nCall it once with an email. A link is mailed to that address and the tool returns `status: \"pending_verification\"` with a four-character `request_code`. **Tell the person the code.** The link opens a page that names who asked, when, and the code, and nothing happens until the person answers it: they confirm the request only if it shows the code you gave them. After they confirm, call this again with the same email, from this same client, and it returns the API key, once. The key goes only to the client whose request was confirmed, and that client is then bound to the account, so a connector that cannot send headers is connected from then on.\n\n**A client with no identity of its own can't be handed the key** (`can_receive_key: false`). That is any client that sent no key and no client id — every hosted connector added with the shared URL, because they all call from their vendor's servers. Its person verifies the address on the page and sees the key there, once. To use the account from such a connector afterwards, add it with a personal URL (`https://mcp.galleyrender.com/mcp/c/<id>`).\n\nIf the person says the request wasn't theirs, it is cancelled, this returns `status: \"declined\"`, and the address can't be asked about again from this client for a day.\n\n**If that address already has an account, no second one is made, and no key comes back.** You get `status: \"existing_account\"`, `verified: false`, `existing_account: true`, and a one-time code in the post — hand that code to `link_account` and this client is connected to the account that already exists. Use this rather than inventing a second address: two accounts means two free tiers and two sets of templates, and the renders anyone is waiting for are on the first one. A key on the connection changes this only if it is a live key for that same account.\n\nWhen the person confirms this client's request, this client's trial is upgraded in place, so templates and renders made during the trial are kept. The free tier is 5 PDF pages or 5 images a month; Solo is $5 a month for 200 PDF pages or 500 images. Pricing: https://galleyrender.com/pricing. Store the key as a secret — it is shown only on that one call.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"email": {
"description": "Where to send the verification link. Use the address of the person who owns this project — not a made-up one; the key is only released after the link is clicked. If this address already has a Galley account, no second one is made: a one-time link code is mailed to it instead, and `link_account` takes that code.",
"examples": [
"[email protected]"
],
"type": "string"
},
"name": {
"description": "Account name. Defaults to the local part of the email.",
"type": "string"
}
},
"required": [
"email"
],
"type": "object"
},
"name": "create_account",
"outputSchema": null
},
{
"description": "Create a new template at version 1 from an HTML document with Liquid expressions, plus a JSON Schema for its data. Use this when nothing in list_templates fits. The name must be free on this account — publishing a change to an existing template is `update_template`, not this. Free, but each plan keeps a limited number of templates of your own (the starter library never counts): at the limit this returns `plan_required` with how many the account has, and `update_template` still works.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"description": {
"description": "One line on what this template is for. Shown in list_templates.",
"type": "string"
},
"engine": {
"description": "Rendering engine. `chromium` (default) is full HTML and CSS and is required for PDF. `satori` is a fast PNG path for simple flexbox card layouts — no page breaks, no floats, no external CSS — and costs us less, so prefer it for OG images and social cards.",
"enum": [
"chromium",
"satori"
],
"type": "string"
},
"example": {
"description": "A payload that renders correctly. It is echoed back in validation errors, so include one."
},
"expected_pages": {
"description": "How many PDF pages a typical payload renders. Default 1. This is the estimate the free tier and the spend cap are checked against before the render starts, so a template that runs to several pages must say so or a render that cannot fit the allowance will be started and then go over. It is not a limit: the render is billed on the pages it actually produced.",
"maximum": 2000,
"minimum": 1,
"type": "integer"
},
"message": {
"description": "Change note for this version, like a commit message.",
"type": "string"
},
"name": {
"description": "Template name: lowercase letters, digits, dot, dash or underscore, 1-63 characters. Unique per account. Versions are separate — do not put `@1` here.",
"examples": [
"invoice",
"delivery-note"
],
"pattern": "^[a-z0-9][a-z0-9._-]{0,62}$",
"type": "string"
},
"options": {
"description": "Render options, merged over the template's own defaults. Options are part of the cache key, so two calls that differ only here are two different renders.",
"properties": {
"background": {
"description": "CSS colour painted under the document, e.g. `#ffffff`.",
"type": "string"
},
"css": {
"description": "Extra CSS appended after the template's own styles.",
"type": "string"
},
"full_page": {
"description": "png/jpg: capture the whole document instead of the viewport.",
"type": "boolean"
},
"height": {
"description": "Viewport height in px for png/jpg. Default 630.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"landscape": {
"description": "PDF only. Default false.",
"type": "boolean"
},
"margin": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"properties": {
"bottom": {
"type": [
"string",
"number"
]
},
"left": {
"type": [
"string",
"number"
]
},
"right": {
"type": [
"string",
"number"
]
},
"top": {
"type": [
"string",
"number"
]
}
},
"type": "object"
}
],
"description": "PDF margins, CSS lengths in `in`, `px`, `cm` or `mm`: `18mm`, or per side. A bare number is px."
},
"on_blocked_asset": {
"description": "What to do when an image or font the template asks for is refused by the egress policy or fails to fetch. `fail` (the default) fails the render with `asset_blocked` naming the URL; `skip` drops the asset and renders without it. Use `skip` only for decorative assets.",
"enum": [
"fail",
"skip"
],
"type": "string"
},
"page_size": {
"description": "PDF page size: `Letter`, `A4`, `Legal`, or `210mm x 297mm`.",
"type": "string"
},
"print_background": {
"description": "PDF: print background colours and images. Default true.",
"type": "boolean"
},
"quality": {
"description": "jpg only, 1-100. Default 90.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"scale": {
"description": "Device pixel ratio for png/jpg, 0.1-3. Use 2 for retina.",
"maximum": 3,
"minimum": 0.1,
"type": "number"
},
"width": {
"description": "Viewport width in px for png/jpg. Default 1200.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"type": "object"
},
"schema": {
"additionalProperties": {},
"description": "JSON Schema (2020-12) for the `data` payload this template accepts. Strongly recommended: it is what turns a bad payload into a field-level error with a path, an expected type and a working example instead of a blank page. Use `required` and give each property a `description`.",
"examples": [
{
"properties": {
"title": {
"description": "Headline, one line",
"type": "string"
}
},
"required": [
"title"
],
"type": "object"
}
],
"propertyNames": {
"type": "string"
},
"type": "object"
},
"source": {
"description": "One self-contained HTML document with inline CSS and Liquid expressions (`{{ customer.name }}`, `{% for line in line_items %}`). No file includes: everything the render needs must be in this string, or at a public https URL. Two extra filters ship by default: `money` and `date_medium`. For a PDF, use `@page { size: Letter; margin: 18mm }` to control pagination.",
"examples": [
"<html><body><h1>{{ title }}</h1></body></html>"
],
"minLength": 1,
"type": "string"
}
},
"required": [
"name",
"source"
],
"type": "object"
},
"name": "create_template",
"outputSchema": null
},
{
"description": "Fetch a render by id: its status, and a freshly signed URL once it has succeeded. Use it to poll a queued render, or to re-sign a URL that has expired — signed URLs last an hour, the stored file lasts until the render's `expires_at` (the plan's retention). Past `expires_at` the file is deleted and this returns `retention_expired` (410) with the render and the template version to render again. Free, and never re-renders.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"render_id": {
"description": "Render id from a previous render call, e.g. `rnd_…`. Returns the status and a fresh signed URL.",
"examples": [
"rnd_7hq2m4x8k1bv"
],
"type": "string"
}
},
"required": [
"render_id"
],
"type": "object"
},
"name": "get_render",
"outputSchema": null
},
{
"description": "Fetch one template version: its JSON Schema, its default render options, an example payload and its HTML source. Read the schema before rendering — it is the contract for the `data` argument. Free.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"include_source": {
"description": "Include the HTML source in the response. Default true. Set false when you only need the schema.",
"type": "boolean"
},
"template": {
"description": "Template to use: `invoice` for the latest version, or `invoice@3` to pin version 3. Pin the version in anything you ship — a new version changes the output and the cache key. Call list_templates to see what this account has.",
"examples": [
"invoice",
"invoice@3"
],
"minLength": 1,
"type": "string"
}
},
"required": [
"template"
],
"type": "object"
},
"name": "get_template",
"outputSchema": null
},
{
"description": "Point this MCP client at an account you already have, so header-less calls from it stop spending the keyless trial.\n\n**This is for clients that cannot set HTTP headers** — Claude.ai custom connectors and ChatGPT apps. If your client *can* set a header, prefer that: it is per-connection, it is not tied to a network address, and it needs no tool call at all.\n\n**Only a client with an identity of its own can be linked.** A connector added with the shared URL and no client id is recognised by its IP address and User-Agent, and every user of a hosted connector shares those: they call from their vendor's servers. Linking that would link all of them, so it is refused. Add this server with a personal URL instead — `https://mcp.galleyrender.com/mcp/c/<id>`, with a random `<id>` of your own (https://galleyrender.com/docs/connect makes one) — or send `X-Galley-Client-Id` with at least 128 random bits, then link.\n\nTwo ways to prove the account is yours. `api_key`, if you have the key to hand. Or `link_code`, the one-time code mailed to the account's own address — call `create_account` with that address to have one sent, and nobody has to paste a key into a chat window.\n\nEither way the credential is used once, checked, and dropped: what is stored is the account id and a key minted for this client, which `unlink_account` revokes.\n\n**Whoever has the client id acts as the account.** A personal connector URL or a client id header is a credential once linked: keep it like a key, and `unlink_account` when you are done on a machine that is not yours. Free.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"api_key": {
"description": "A Galley API key, starting `glr_sk_`. It is checked against the API and then discarded — the binding that is stored is by account id, and this server keeps no copy of the key. Give either this or `link_code`.",
"examples": [
"glr_sk_…"
],
"type": "string"
},
"link_code": {
"description": "The one-time code mailed to the account's address, like `GLR-4F7K-9QX2`. Ten minutes, one use. Ask for one by calling `create_account` with the address: if it already has an account, a code is what comes back. Use this when the person would rather not paste a key into a chat. Case, spaces and dashes do not matter.",
"examples": [
"GLR-4F7K-9QX2"
],
"type": "string"
}
},
"type": "object"
},
"name": "link_account",
"outputSchema": null
},
{
"description": "Recent renders on this account, newest first, with status, template version and a signed URL for each that succeeded. Useful for finding a render whose id you lost, or checking what a batch did. Free.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"description": "How many to return, newest first. 1-100, default 25.",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"type": "object"
},
"name": "list_renders",
"outputSchema": null
},
{
"description": "List the templates on this account, with their latest version number. Start here: rendering needs a template, and this says which ones exist. A brand-new trial account starts with the starter library (invoice, quote, receipt, og-card, certificate and more) already loaded. Free.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
},
"name": "list_templates",
"outputSchema": null
},
{
"description": "Render a template plus a JSON payload into a PDF, PNG or JPG and return a signed URL. This is the one tool most calls need.\n\nSmall jobs finish inside the call and come back `status: \"succeeded\"` with a `url` you can hand straight to a user. Anything with a `webhook_url`, `async: true` or a large payload comes back `status: \"queued\"` with an id for get_render.\n\nRenders are deterministic and cached: the same template version, data and options return the stored object with `cached: true`, free and instant. Billing is per PNG or JPG and per PDF page; cache hits are never billed.\n\nNo API key needed to start — the first call mints a trial of 10 PDF pages or 10 images and returns its token.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"async": {
"description": "Force the queued path even for a small job. Default false: small jobs finish inside the call and come back with a URL already.",
"type": "boolean"
},
"data": {
"description": "The JSON payload for the template, matching its schema. Call get_template for the schema, or validate_data to dry-run a payload for free."
},
"format": {
"description": "Output format. Defaults to `pdf` for chromium templates and `png` for satori ones. `webp` is not supported in v1.",
"enum": [
"pdf",
"png",
"jpg",
"jpeg"
],
"type": "string"
},
"options": {
"description": "Render options, merged over the template's own defaults. Options are part of the cache key, so two calls that differ only here are two different renders.",
"properties": {
"background": {
"description": "CSS colour painted under the document, e.g. `#ffffff`.",
"type": "string"
},
"css": {
"description": "Extra CSS appended after the template's own styles.",
"type": "string"
},
"full_page": {
"description": "png/jpg: capture the whole document instead of the viewport.",
"type": "boolean"
},
"height": {
"description": "Viewport height in px for png/jpg. Default 630.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"landscape": {
"description": "PDF only. Default false.",
"type": "boolean"
},
"margin": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"properties": {
"bottom": {
"type": [
"string",
"number"
]
},
"left": {
"type": [
"string",
"number"
]
},
"right": {
"type": [
"string",
"number"
]
},
"top": {
"type": [
"string",
"number"
]
}
},
"type": "object"
}
],
"description": "PDF margins, CSS lengths in `in`, `px`, `cm` or `mm`: `18mm`, or per side. A bare number is px."
},
"on_blocked_asset": {
"description": "What to do when an image or font the template asks for is refused by the egress policy or fails to fetch. `fail` (the default) fails the render with `asset_blocked` naming the URL; `skip` drops the asset and renders without it. Use `skip` only for decorative assets.",
"enum": [
"fail",
"skip"
],
"type": "string"
},
"page_size": {
"description": "PDF page size: `Letter`, `A4`, `Legal`, or `210mm x 297mm`.",
"type": "string"
},
"print_background": {
"description": "PDF: print background colours and images. Default true.",
"type": "boolean"
},
"quality": {
"description": "jpg only, 1-100. Default 90.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"scale": {
"description": "Device pixel ratio for png/jpg, 0.1-3. Use 2 for retina.",
"maximum": 3,
"minimum": 0.1,
"type": "number"
},
"width": {
"description": "Viewport width in px for png/jpg. Default 1200.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"type": "object"
},
"template": {
"description": "Template to use: `invoice` for the latest version, or `invoice@3` to pin version 3. Pin the version in anything you ship — a new version changes the output and the cache key. Call list_templates to see what this account has.",
"examples": [
"invoice",
"invoice@3"
],
"minLength": 1,
"type": "string"
},
"webhook_url": {
"description": "Absolute https URL to POST the finished render to. Supplying one forces the queued path: the call returns immediately with status `queued`.",
"examples": [
"https://example.com/hooks/galley"
],
"type": "string"
}
},
"required": [
"template",
"data"
],
"type": "object"
},
"name": "render",
"outputSchema": null
},
{
"description": "Get a fresh API key for the account this connection is already acting on — the answer to a key that has been lost, leaked, pasted into a chat window, or left on a machine that is not yours.\n\n**Two calls, on purpose.** `rotate_key({})` mints the new key and shows it **once**; it revokes nothing, so whatever is running on the old key keeps running. Give the new key to the person, wait until they tell you it is saved, then call `rotate_key({ confirm_saved: true, revoke_key_id: \"…\" })` with the id from `other_live_keys` to kill the old one. Revoking first would take their integration down between the two calls, and revoking without asking would do it without them knowing why.\n\n**The key is shown once and cannot be recovered.** Hand it over immediately and do not repeat it in any later message, summary, log or file.\n\nNeeds a key on the connection or a linked client — it cannot help somebody holding nothing. That case starts at `create_account` with the account's verified address, which mails a one-time code for `link_account`. Free, and it renders nothing.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"confirm_saved": {
"description": "Leave this off for the first call: it mints the new key and shows it once, and revokes nothing. Set it to `true` — together with `revoke_key_id` — only after the human has told you they have saved the new key somewhere they can read it again. That second call is what kills the old key.",
"type": "boolean"
},
"revoke_key_id": {
"description": "The id of the key to revoke, taken from `other_live_keys` in the first call's answer. Required with `confirm_saved`. Never guess one: revoking the wrong key takes down whatever was using it.",
"examples": [
"3f1c1b8e-6a2d-4e77-9f0a-2b7c9d5e4a10"
],
"type": "string"
}
},
"type": "object"
},
"name": "rotate_key",
"outputSchema": null
},
{
"description": "Undo `link_account`. The binding is deleted and the key that was minted for this client is revoked, so the client can no longer reach the account. Your own API key is untouched — this disconnects a client, it does not close an account.\n\nDo this on any machine that is not yours, and whenever a personal connector URL or a client id may have been seen by somebody else. Calls afterwards fall back to the keyless trial. Safe to call when nothing is linked. Free.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
},
"name": "unlink_account",
"outputSchema": null
},
{
"description": "Publish a new immutable version of an existing template. Versions are never edited in place: `invoice@2` keeps rendering exactly as it did, and anything pinned to it is unaffected. Renders cached against the old version stay valid, and the new version starts with a cold cache. `engine`, `schema`, `options` and `example` are inherited from the previous version unless you send them, so a source-only change needs only `template` and `source`. Free.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"description": {
"description": "Replaces the template description.",
"type": "string"
},
"engine": {
"description": "Engine for the new version. Inherited from the previous version when omitted.",
"enum": [
"chromium",
"satori"
],
"type": "string"
},
"example": {
"description": "A payload that renders correctly under the new version. Inherited when omitted."
},
"expected_pages": {
"description": "How many PDF pages a typical payload renders. Inherited from the previous version when omitted. This is the estimate the free tier and the spend cap are checked against before the render starts, so a template that runs to several pages must say so or a render that cannot fit the allowance will be started and then go over. It is not a limit: the render is billed on the pages it actually produced.",
"maximum": 2000,
"minimum": 1,
"type": "integer"
},
"message": {
"description": "Change note for this version, like a commit message.",
"type": "string"
},
"options": {
"description": "Default render options. Inherited from the previous version when omitted.",
"properties": {
"background": {
"description": "CSS colour painted under the document, e.g. `#ffffff`.",
"type": "string"
},
"css": {
"description": "Extra CSS appended after the template's own styles.",
"type": "string"
},
"full_page": {
"description": "png/jpg: capture the whole document instead of the viewport.",
"type": "boolean"
},
"height": {
"description": "Viewport height in px for png/jpg. Default 630.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"landscape": {
"description": "PDF only. Default false.",
"type": "boolean"
},
"margin": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"properties": {
"bottom": {
"type": [
"string",
"number"
]
},
"left": {
"type": [
"string",
"number"
]
},
"right": {
"type": [
"string",
"number"
]
},
"top": {
"type": [
"string",
"number"
]
}
},
"type": "object"
}
],
"description": "PDF margins, CSS lengths in `in`, `px`, `cm` or `mm`: `18mm`, or per side. A bare number is px."
},
"on_blocked_asset": {
"description": "What to do when an image or font the template asks for is refused by the egress policy or fails to fetch. `fail` (the default) fails the render with `asset_blocked` naming the URL; `skip` drops the asset and renders without it. Use `skip` only for decorative assets.",
"enum": [
"fail",
"skip"
],
"type": "string"
},
"page_size": {
"description": "PDF page size: `Letter`, `A4`, `Legal`, or `210mm x 297mm`.",
"type": "string"
},
"print_background": {
"description": "PDF: print background colours and images. Default true.",
"type": "boolean"
},
"quality": {
"description": "jpg only, 1-100. Default 90.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"scale": {
"description": "Device pixel ratio for png/jpg, 0.1-3. Use 2 for retina.",
"maximum": 3,
"minimum": 0.1,
"type": "number"
},
"width": {
"description": "Viewport width in px for png/jpg. Default 1200.",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"type": "object"
},
"schema": {
"additionalProperties": {},
"description": "JSON Schema for the `data` payload. Inherited from the previous version when omitted — send `{}` only if you really want a version that validates nothing.",
"examples": [
{
"properties": {
"title": {
"description": "Headline, one line",
"type": "string"
}
},
"required": [
"title"
],
"type": "object"
}
],
"propertyNames": {
"type": "string"
},
"type": "object"
},
"source": {
"description": "One self-contained HTML document with inline CSS and Liquid expressions (`{{ customer.name }}`, `{% for line in line_items %}`). No file includes: everything the render needs must be in this string, or at a public https URL. Two extra filters ship by default: `money` and `date_medium`. For a PDF, use `@page { size: Letter; margin: 18mm }` to control pagination.",
"examples": [
"<html><body><h1>{{ title }}</h1></body></html>"
],
"minLength": 1,
"type": "string"
},
"template": {
"description": "Name of an existing template. A new immutable version is published; earlier versions keep rendering, so anything pinned to `name@2` is unaffected.",
"examples": [
"invoice",
"delivery-note"
],
"pattern": "^[a-z0-9][a-z0-9._-]{0,62}$",
"type": "string"
}
},
"required": [
"template",
"source"
],
"type": "object"
},
"name": "update_template",
"outputSchema": null
},
{
"description": "Get a Stripe Checkout link for a paid plan, for a human to open.\n\n**This tool cannot subscribe anybody.** It returns a `url`; a person has to open it and enter a card on Stripe's own page. Hand the URL to the human you are working for and say what it costs. Nothing is charged, and no plan changes, until they finish on that page — at which point Stripe tells Galley and the new plan is live within a second or two. Confirm with `usage`.\n\nUse it when a render was refused with `quota_exceeded`, or with `plan_required` because the account is on Free and asked for webhooks or cloud delivery. The error body names the plan that would have worked.\n\nThe account needs a verified email address first — invoices and receipts go to it — so call `create_account` before this if you are on the keyless trial. Changing or cancelling an existing plan is `billing_portal`, never this. Free.\n\n**If billing is not enabled on the deployment this is pointed at, the call is refused with `billing_unavailable` (503) rather than answered with a link.** That is deliberate: the alternative is a URL on a domain that does not resolve, which you cannot tell apart from a real one. On that error, say so and point the human at https://galleyrender.com/pricing. Do not construct a checkout URL yourself and do not retry.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"interval": {
"description": "Billing interval. Default `month`. `year` is ten months for twelve on every plan.",
"enum": [
"month",
"year"
],
"type": "string"
},
"plan": {
"description": "Which paid plan to subscribe to. Solo $5/mo (200 PDF pages or 500 images, webhooks, cloud delivery), Starter $19/mo (2,000 PDF pages or 5,000 images), Growth $79/mo (12,000 PDF pages or 30,000 images, priority queue, 90-day retention), Scale $249/mo (60,000 PDF pages or 150,000 images, dedicated pool, SLA). Call `usage` first if you are not sure which one the current volume needs. There is no `free`: moving down a plan is a cancellation in the billing portal, which is `billing_portal`.",
"enum": [
"solo",
"starter",
"growth",
"scale"
],
"examples": [
"solo"
],
"type": "string"
}
},
"required": [
"plan"
],
"type": "object"
},
"name": "upgrade",
"outputSchema": null
},
{
"description": "What this account has spent this period and what is left: renders, billable units by format, cost, the free-tier allowance, the monthly spend cap and — on a keyless trial — how much of the trial's 10 PDF pages or 10 images remains. Check it before a large batch. Free.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
},
"name": "usage",
"outputSchema": null
},
{
"description": "Dry-run a `data` payload against a template's JSON Schema and get back exactly the errors a render would raise — field path, expected type, what was received and a value that would be accepted. Costs nothing and renders nothing. Use it before a batch, or whenever you are assembling a payload from somewhere you do not control.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"data": {
"description": "The payload you intend to render. Checked against the template's JSON Schema and nothing else."
},
"template": {
"description": "Template to use: `invoice` for the latest version, or `invoice@3` to pin version 3. Pin the version in anything you ship — a new version changes the output and the cache key. Call list_templates to see what this account has.",
"examples": [
"invoice",
"invoice@3"
],
"minLength": 1,
"type": "string"
}
},
"required": [
"template",
"data"
],
"type": "object"
},
"name": "validate_data",
"outputSchema": null
},
{
"description": "The account this connection is acting on: its id, its plan, how many PDF pages or images its trial or free tier has left (`renders_remaining`, one per page or image), and — the part no other tool answers — **how this request authenticated**: `header` (a key on the HTTP connection), `binding` (this client was linked with `link_account`), or `trial` (the keyless trial).\n\nCall it before a batch, and call it the moment anything about quota surprises you. A `quota_exceeded` that quotes a limit you do not recognise almost always means `trial`: the key never reached this server, and the renders are coming out of a throwaway account rather than yours. Free, and it renders nothing.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
},
"name": "whoami",
"outputSchema": null
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:e7babeaf940e929a4bbdb0e570e948aaed25bf8b98dc50d1fc459ef9e260bba3 | sha256sum