Skip to main content
Glama

Get agent setup snippet

get_hook_snippet
Read-onlyIdempotent

Return a ready-to-paste snippet that hooks this rulebook into your agent: AGENTS.md instructions, Cursor rules, or a Claude Code skill. Use when: You are onboarding a repo and need the install text for that client. Avoid when: The snippet is already installed and you are checking a page. Do not claim: Installing the snippet does not scan the site. Verify: Call tools/list. A free snippet names only free tools; a keyed snippet names the lint chain.

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": {
      "client": "<client>"
    },
    "name": "get_hook_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientYesTarget client: agents_md, cursor, or claude.

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 (readOnlyHint, idempotentHint, closed-world, non-destructive), so the description's added value is what the snippet actually contains: a free snippet names only free tools while a keyed snippet names the lint chain. It also flags a real overclaiming hazard ('Installing the snippet does not scan the site') and points to tools/list for verification, which is behavior an agent would otherwise get wrong.

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?

Purpose is front-loaded in the first sentence, and the remaining clauses are labeled and scannable rather than buried in prose. The telegraphic fragments ('Do not claim:', 'Verify:') are compact but slightly awkward and cost a bit of readability.

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?

There is no output schema, so the description carries the return-value burden, and it does so by characterizing what the snippet contains (free vs. keyed variants). With only one fully documented parameter and full annotation coverage, little else is needed; the description is close to complete for this tool's complexity.

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 single enum parameter is fully documented, so the schema does the heavy lifting. The description's mention of AGENTS.md, Cursor, and Claude Code mirrors the enum values rather than adding format or selection guidance beyond them, so the baseline of 3 applies.

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 artifact: 'Return a ready-to-paste snippet that hooks this rulebook into your agent,' and enumerates the three concrete variants (AGENTS.md instructions, Cursor rules, Claude Code skill) that map exactly to the client enum. This distinguishes it from siblings like fetch_rules or scan_site without the agent needing to open the schema.

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?

Explicitly structured with 'Use when:' (onboarding a repo, needing install text for a client) and 'Avoid when:' (snippet already installed, checking a page), giving both the selecting condition and the exclusion. The only weakness is that 'checking a page' is slightly opaque, but the routing intent is unambiguous.

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.