Skip to main content
Glama

FixMyEPUB

Generate fixed-layout EPUB code

generate_fixed_layout_code
Read-onlyIdempotent

Generates EPUB 3 fixed-layout (pre-paginated) package metadata, the XHTML viewport tag and page CSS for a page size in pixels.

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": {
      "width": "<width>",
      "height": "<height>"
    },
    "name": "generate_fixed_layout_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthYesPage width in CSS pixels, e.g. 1200
heightYesPage height in CSS pixels, e.g. 1600
spreadNoauto
orientationNoauto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds useful output content disclosure (which three artifacts are produced), which matters because no output schema exists. However, it does not say how results are returned (raw string, code blocks, multiple files) or how the artifacts are keyed, leaving a gap for a generator tool.

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?

A single front-loaded sentence with no filler; every clause identifies a concrete output artifact, and nothing is repeated from the title or annotations.

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

Completeness3/5

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

For a 4-parameter, non-destructive generator with no output schema, the description conveys the purpose and the artifact types but omits how the generated code is returned and leaves two optional parameters (spread, orientation) entirely unexplained. Adequate as a minimum, but not complete for an agent that must decide on optional values and consume the output.

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 only 50%: width and height are documented in the schema, while spread and orientation appear only as enums with defaults and get no explanation in either place. The description reinforces that width/height are a page size in pixels, which adds modest context, but it does not explain the semantics or effects of spread and orientation, so it only partially compensates for the coverage gap.

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 a specific verb (Generates) and a precise resource/artifact set: EPUB 3 fixed-layout package metadata, the XHTML viewport tag, and page CSS, scoped by a page size in pixels. That level of specificity makes it unmistakable against siblings like explain_epub_error or kindle_epub_limits, which concern diagnostics and limits rather than code generation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: an agent can infer it should call this when it needs pre-paginated layout code for a given pixel page size. There is no explicit when-to-use statement, no when-not-to-use, and no routing to alternatives for related tasks such as diagnosing an existing EPUB.

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