Skip to main content
Glama

add_hook

Idempotent

Save one opening line to the hooks library (3 to 300 characters, up to 300 hooks). Saving the same line twice returns the existing hook. CAPABILITY: draft: creates content that cannot reach an audience on its own. Safe for a draft-only agent token.

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": {
      "text": "<text>"
    },
    "name": "add_hook"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoOptional note on why it works.
textYesThe opening line, as said or written.
networkNoOptional network it was seen on, e.g. instagram.
inspiration_idNoOptional saved post (list_inspiration) it came from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, the description discloses concrete behavior: enforced length bounds, a hard library cap of 300 hooks, and dedup semantics ('Saving the same line twice returns the existing hook'), which corroborates idempotentHint=true. It also discloses the approval/draft posture of created content. It does not say what the successful response contains beyond the dedup case.

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?

Three short sentences, front-loaded with the action and its limits, with the dedup rule and capability tag after. The CAPABILITY clause reads as templated boilerplate but is still decision-relevant for a draft-only token.

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 four-parameter write tool, the definition covers creation limits, library capacity, duplicate handling, and the safety posture of the output, with no output schema to require return-value explanation. The main gap is the shape of the returned hook object on a fresh save.

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%, and the schema already explains note, network, and inspiration_id (including the list_inspiration reference). The description adds only the 3-300 character constraint on text, so it neither needs to nor does add much beyond the schema.

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?

The description opens with a specific verb+resource ('Save one opening line to the hooks library') and states hard scope limits (3-300 characters, 300-hook cap). It does not explicitly contrast with adjacent content-saving siblings such as add_inspiration or add_creator, so the boundary is inferred from the resource name rather than spelled out.

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 through the constraints and the 'draft' capability tag, which tells an agent this content is not audience-facing. However, there is no explicit when-to-use versus when-not, and no pointer to an alternative tool for longer or non-hook content.

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.