Skip to main content
Glama

Check a draft against hook rules

check_draft
Read-onlyIdempotent

Check a draft caption against the rules learned for a specific account, before publishing. Returns which rules it follows and which it breaks, with the measured effect of each. This is the tool to call after writing a caption and before scheduling it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
captionYesThe caption to check.
accountIdYesAccount id from list_connections.
mediaKindsNoKinds of media attached, e.g. ["video"] or ["image"]. Omit for a text post.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), and the description adds real value by stating what the call returns: which rules are followed/broken with the measured effect of each. It stops short of documenting auth requirements or rate limits, but for a read-only check the added disclosure is solid.

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?

Three tight sentences, front-loaded with the action, then the return value, then the workflow position. Every sentence earns its place with no 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?

With no output schema, the description carries the burden of explaining results and does so (rules followed/broken plus measured effect). Combined with the workflow guidance, an agent has everything needed to call and interpret it.

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 the parameters are already documented. The description reinforces that the rules are account-specific (tying meaning to accountId) but says nothing about mediaKinds or caption format, so it only marginally exceeds the schema baseline.

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+resource+scope: it checks a draft caption against account-specific learned rules. This distinguishes it cleanly from siblings like create_hook_test and list_hook_rules, so an agent can pick it without opening a 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?

Explicitly places the tool in a workflow: 'call after writing a caption and before scheduling it,' which contrasts it against schedule_post. It gives clear when-to-use context but no explicit when-not-to-use or named alternative, so it falls just short of a 5.

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.