Skip to main content
Glama

set_post_hooks

Destructive

Provides hook options for a LinkedIn or X post, letting you choose one in the app to replace the post's first paragraph.

Instructions

Offer several hooks for the LinkedIn or X post: opening lines (LinkedIn: the part above '…more', about two lines; X: the first tweet's opening). Replaces earlier hooks for that platform. The app lists them above the post; picking one replaces the post's first paragraph. Write the post with your best hook as its own first paragraph.

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": {
      "session": "<session>",
      "hooks": "<hooks>"
    },
    "name": "set_post_hooks"
  }
}

Input Schema

NameRequiredDescriptionDefault
hooksYesThe hook options, best first: [{text, note}].
sessionYesSession: 'Project/folder', an absolute path or its id (from get_session). Old paths still work.
platformNoWhich post of the session: linkedin (default, posts/linkedin.md), x (posts/x.md), youtube (the long wide video: title + description, posts/youtube.md) or vertical (one vertical video and caption for TikTok, Instagram Reels and YouTube Shorts, posts/vertical.md).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.11.11
    • changedInput schema / properties / session / description
      Previous value: -"Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move."New value: +"Session: 'Project/folder', an absolute path or its id (from get_session). Old paths still work."
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations flag destructiveHint=true, and the description substantiates it by disclosing the two destructive consequences: earlier hooks for that platform are replaced, and selecting a hook overwrites the post's first paragraph. That is real added context about downstream effects beyond the annotation flag, though nothing is said about permissions or limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with what the tool does, then replacement semantics, then app behavior, then authoring advice. The parenthetical platform glosses are dense but each carries information an agent needs; nothing is redundant filler.

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 destructive mutation with full schema coverage and no output schema, the description covers the mutation's effect on both the hook list and the post body. Its one real gap is coverage mismatch: the prose addresses only LinkedIn and X while the schema's platform enum also includes youtube and vertical.

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 100%, so the baseline is 3; the description still adds meaning by defining what a hook is in terms of post rendering per platform and reinforcing that the list should be ordered best-first. The 'note' field's purpose is only illustrated by the schema example, not expanded in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (offer several hooks for a post) and defines what a hook is per platform (LinkedIn: above '…more'; X: first tweet's opening). It is clear what the tool sets, but it never distinguishes itself from the sibling set_hooks, so an agent has no stated basis for choosing between them.

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 implied rather than declared: 'Write the post with your best hook as its own first paragraph' tells the agent how to prepare input, and 'Replaces earlier hooks' implies re-invocation is safe. There is no explicit when-to-use/when-not statement and no named alternative, which matters given a sibling literally called set_hooks.

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