Skip to main content
Glama

Check a draft against hook rules

check_draft
Read-onlyIdempotent

Check a draft caption against the rules learned for one account, before it is scheduled. Returns which rules the caption follows and which it breaks, with the measured effect of each, so you can rewrite the opening before posting. Call it after writing a caption and before schedule_post or update_post. With no rules learned yet for the account it says so rather than inventing advice; list_hook_rules shows what exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
captionYesThe full caption exactly as it would be posted. The opening line matters most, because that is what the rules are about.
accountIdYesId of the account the post will go to, from list_connections. Rules are learned per account, so this decides which rules apply.
mediaKindsNoWhat is attached: ["video"], ["image"], or both. Omit for a text-only post.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / accountId / description
      Previous value: -"Account id from list_connections."New value: +"Id of the account the post will go to, from list_connections. Rules are learned per account, so this decides which rules apply."
    • changedInput schema / properties / caption / description
      Previous value: -"The caption to check."New value: +"The full caption exactly as it would be posted. The opening line matters most, because that is what the rules are about."
    • changedInput schema / properties / mediaKinds / description
      Previous value: -"Kinds of media attached, e.g. [\"video\"] or [\"image\"]. Omit for a text post."New value: +"What is attached: [\"video\"], [\"image\"], or both. Omit for a text-only post."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, and closed-world, so the safety profile is covered. The description goes further by disclosing the return semantics (which rules are followed vs broken, with measured effect) and the graceful failure mode when no rules are learned yet — behavior an agent could not infer from structured fields.

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?

Four sentences, each earning its place: purpose, return shape and payoff, call-site ordering, and the no-data edge case. Front-loaded with the core action and free of 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?

No output schema exists, and the description compensates by describing what is returned and how to use it. Combined with full schema coverage of the three parameters and annotations covering the safety profile, nothing an agent needs to invoke this correctly is missing.

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 description coverage is 100%, so the schema already documents accountId, caption, and mediaKinds in detail. The description adds only the per-account rule scoping rationale, which the schema already implies, so the baseline 3 is appropriate.

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 resource — check a draft caption against rules learned for one account — and clarifies scope (per-account rules, opening-line focus). It is clearly distinguishable from list_hook_rules, which it explicitly names.

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?

Gives explicit timing and routing: call it after writing a caption and before schedule_post or update_post, and points to list_hook_rules to see what rules exist. When-to-use and the relevant alternative are both spelled out.

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.