Skip to main content
Glama

force_hook

Run any Garry's Mod hook with tagged arguments to test gamemode logic without reproducing the exact in-game situation. Requires confirmation for safety.

Instructions

GUARDED. Runs hook.Run(name, ...) to exercise a gamemode path without reproducing the situation. JSON cannot carry an Entity, so arguments may be tagged: {"__ent": 3}, {"__ply": "STEAM_0:1:2"}, {"__vec": [x,y,z]}, {"__ang": [p,y,r]}. Requires confirm:true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoPositional arguments, tagged where they are game objects.
nameYesHook name, e.g. PlayerSpawn.
confirmNoMust be true: this changes the running game and is audited. Otherwise the call is refused.
Behavior4/5

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

Annotations lack destructiveHint, but the description explicitly calls it 'GUARDED', requires confirm:true, and states it changes the running game and is audited. It also explains the tagging mechanism for game objects.

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 efficiently cover purpose, JSON limitations, tagging, and requirement. No fluff, front-loaded with key action and guarded status.

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 tool with 3 params and no output schema, the description covers purpose, parameter format, confirm requirement, and side effects. Missing potential error behavior, but sufficient for intended use.

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?

With 100% schema coverage, baseline is 3. The description adds value by explaining that args can be tagged with __ent, __ply, __vec, __ang formats, providing concrete examples 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 clearly states it runs hook.Run(name, ...) to exercise a gamemode path, which is specific. It distinguishes from siblings like read_hooks (read-only) and run_lua (generic code execution), though not explicitly.

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?

The description implies usage for testing without reproducing the situation, and requires confirm:true. However, it does not provide explicit when-to-use or when-not-to-use compared to alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheRolists/gmod-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server