Skip to main content
Glama

MySaaS Blog

Preflight post

post_preflight
Read-onlyIdempotent

For creation, validate the complete post payload. For updates, supply postId, expectedUpdatedAt and the same partial fields as post_update (flattened, without the post wrapper). Checks ownership, required scopes, concurrency, slug/category conflicts and content against the resulting access and publication state. Use operation:update_draft to check the legacy draft-only restriction. This is read-only; saving rechecks everything.

Input Schema

NameRequiredDescriptionDefault
tagsNo
accessNoArticle access. PAID requires a public excerpt when published. Omit to preserve the current access.
postIdNoFor an update, supply the existing post ID. Every omitted field, including publication, is preserved. Validates the same patch as post_update.
sourcesNoStructured references rendered automatically after the article. Do not duplicate them as a Sources/References section in contentHtml; use data-post-source-id only for contextual citations.
operationNoWith postId, validates the selected update operation and its required scopes.
categoryIdNo
publicationNo
translationsNo
primaryLocaleNo
relatedSaasIdsNoSaaS products associated with the post. Mention or link them naturally only when editorially relevant; do not create a product directory in contentHtml.
expectedUpdatedAtNoThe updatedAt value returned by post_get, used to detect concurrent edits.

Output Schema

NameRequiredDescriptionDefault
warningIssuesYes
blockingIssuesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already cover read-only, idempotent and non-destructive, so the description is free to add the genuinely useful behavior: an explicit enumeration of what is checked (ownership, scopes, concurrency, slug/category conflicts, content against access/publication state) and the important caveat that saving rechecks everything, so a pass is advisory rather than a lock.

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?

Roughly four sentences, front-loaded with the creation case and immediately pivoting to the update case and the operation override. No restatement of the tool name, no filler; every clause carries a routing or behavior fact.

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 an 11-parameter, nested, mutation-adjacent validation tool with an output schema (so return values need no explanation), the description covers mode selection, concurrency, and the advisory nature of the check. 'Complete post payload' for the creation path leaves an agent to discover required structure from the schema, but that is a minor gap given the schema's required constraints.

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?

With only 55% schema description coverage and 11 parameters including nested translation objects, the description earns credit by explaining the update contract: postId plus expectedUpdatedAt plus the same partial fields as post_update, flattened without the post wrapper. That structural clarification is not obvious from the anyOf alone. It does not add meaning for fields such as primaryLocale or relatedSaasIds, which the schema documents itself.

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?

A specific verb (validate) plus resource (post payload) plus the two modes it serves: full payload for creation, partial patch for updates. The role of the tool is unmistakable versus siblings like post_update or post_create_draft: it does not write, it checks.

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?

It gives concrete when-to-use routing for both paths ('For creation...', 'For updates, supply postId, expectedUpdatedAt...') and points to operation:update_draft for the legacy draft-only restriction. It stops short of explicitly naming the write siblings to call afterwards, relying on 'saving rechecks everything' to imply ordering.

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