Skip to main content
Glama

compose_lexical

Compile Koenig content blocks into a Lexical JSON string for preview or inspection without creating a post; validate block files before calling compose_post.

Instructions

Compile Koenig content blocks into a Lexical JSON string without creating a post (for preview/inspection). Same block shape as compose_post.

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

Input Schema

NameRequiredDescriptionDefault
blocksNoOrdered content blocks (same shape as compose_post), inline.
blockFileNoAbsolute path to a JSON file of blocks. Use to validate a file you are building before calling compose_post. Provide exactly one of `blocks` or `blockFile`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses that the operation is non-mutating ('without creating a post') and that the return value is a Lexical JSON string. It leaves out what happens on malformed blocks or invalid input, which matters for a compile/validate step.

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?

Two short sentences with zero filler, and the core purpose plus the key differentiator are front-loaded. Every clause earns its place.

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?

For a two-parameter, no-annotation tool with no output schema, the description supplies the essentials: input kind, output format, and non-mutating behavior. It could note that exactly one of blocks/blockFile is required despite zero required params, and what happens when compilation fails.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already fully documented, including the 'exactly one of blocks or blockFile' constraint. The description's note that the block shape matches compose_post is useful framing but largely duplicates the schema's own wording, so the baseline 3 applies.

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 specific verb and transformation: compile Koenig content blocks into a Lexical JSON string. It also explicitly scopes itself apart from compose_post with the phrase 'without creating a post', so an agent can distinguish the two siblings 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 Guidelines4/5

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

Gives clear context for use — preview/inspection rather than post creation — which implicitly routes creation work to compose_post. It stops short of an explicit 'use compose_post when you want to persist' statement or naming other alternatives like koenig_help for block-syntax questions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.