Skip to main content
Glama

Read your saved presets

get_presets
Read-onlyIdempotent

Free, read-only, needs a key. action list (default) returns only YOUR saved presets, not the 34 built-in ones: to browse built-in, community and your presets together use get_catalog kind presets (an empty list here just means you saved none). type custom (full caption styles from manage_preset, ids custom:cp_...) or brand (font, color, position and logo overlays); paginated with limit and cursor, response_format concise (default) or detailed. action get: any one preset with its full style by id, built-in (e.g. builtin:number-punch or number-punch), community or custom:cp_..., the same style JSON the web editor loads (use it as basePreset or copy and tweak it with manage_preset). action validate: check a style document (style, or basePreset + overrides) against the renderer schema before saving; returns valid, the normalized style or errors [{path, message}]. Built-in and community presets are listed by get_catalog kind presets.

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

Input Schema

NameRequiredDescriptionDefault
idNoPreset id: cp_... or custom:cp_... as returned by manage_preset {action:'create', type:'custom'} / get_presets {type:'custom'}.
typeNoFor list: custom (default) or brand presets.
limitNoPage size for the returned list, 1-100. Default 50.
styleNoFull caption style document to validate.
actionNolist (default), get (needs id) or validate (style, or basePreset + overrides).
cursorNonextCursor from the previous page. Omit for the first page.
overridesNoFields deep-merged on top of basePreset before validating.
basePresetNoValidate basePreset + overrides instead of a full style (custom:cp_... bases need a key).
response_formatNoconcise (default): short list items without nested style/example objects, to save tokens. detailed: full objects.

Output Schema

NameRequiredDescriptionDefault
totalNoTotal number of items (paginated lists).
resultNoThe value, when the tool returns something other than an object.
hasMoreNotrue when more items are available (paginated lists).
nextCursorNoPass as cursor for the next page (paginated lists).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds value beyond them: an API key requirement, pagination via limit and cursor, the concise-vs-detailed payload tradeoff, and the fact that validate returns valid plus either a normalized style or errors with {path, message}. It also discloses that the returned style is 'the same style JSON the web editor loads', which tells the agent the payload is directly reusable.

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?

It is front-loaded with the key facts ('Free, read-only, needs a key') and then walks list, get, validate in the same order as the action enum. The sentences are long and semicolon-dense, so it reads as a wall of text, but nearly every clause carries operative information rather than filler.

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?

For a nine-parameter, three-action tool with nested objects and no required arguments, the description covers what each action does, valid id shapes, pagination, response verbosity, and the validation return shape. With an output schema present, it does not need to restate raw return structures and correctly stops at the behavioral level.

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, but the description adds real meaning: it explains that 'type custom' means full caption styles from manage_preset while 'brand' covers font, color, position and logo overlays, and it elaborates the id formats accepted by get (builtin:number-punch or bare number-punch, community, custom:cp_...). The basePreset + overrides validate mode is also restated in operational terms rather than just field-level.

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?

The description names the resource (saved presets) and enumerates the three distinct operations - list, get, validate - with concrete outcomes for each. It also explicitly contrasts itself with get_catalog kind presets and manage_preset, so an agent can differentiate it from siblings without opening any 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?

It gives explicit routing rules: 'to browse built-in, community and your presets together use get_catalog kind presets', and 'use it as basePreset or copy and tweak it with manage_preset'. It also heads off a common misread with 'an empty list here just means you saved none', and states validate should be run 'before saving'.

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