Skip to main content
Glama
mjyoo2
by mjyoo2

run_macro

Execute inline scripts, run named macros, or retrieve macro source in HWP documents to automate tasks and inspect code.

Instructions

Execute or inspect HWP macros.

Args: doc_id: Document ID from open_document action: "run" (inline), "run_named" (by name), "get_source" script: Inline script text (for "run") name: Macro name (for "run_named"/"get_source") module: Module name (for "run_named")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
actionYes
doc_idYes
moduleNo
scriptNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations, the description carries the behavioral disclosure burden, but it only says 'execute' and 'inspect' without mentioning side effects, document mutation, or the potential risk of running macro code. It is not misleading, but it under-discloses for a tool that executes code.

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?

The definition is short and front-loaded, and the Args list is easy to scan. It loses one point because the action-dependent requirements could be expressed more explicitly without adding meaningful length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and five parameters, the description covers core invocation details and the output schema can handle return values. It is incomplete in differentiating from similar tools and in disclosing side effects, but it provides enough for a straightforward macro call.

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?

The Args section adds value beyond the bare schema by listing all five parameters and mapping script, name, and module to specific actions. However, it does not state which parameters become required for each action (e.g., script for 'run', name for 'run_named'/'get_source'), which is critical for correct invocation; with 0% schema coverage, the description should be more explicit.

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 opening line states a specific verb and resource: 'Execute or inspect HWP macros,' and the action list clarifies the three modes. It does not, however, distinguish macros from the closely named siblings run_script and get_script_source, so it stops short of a full 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides action-to-parameter mappings but no guidance on when to prefer run_macro over run_script or get_script_source, and no exclusions or prerequisites. The agent must infer usage context from the tool name and sibling list.

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/mjyoo2/hwp-mcp'

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