Skip to main content
Glama
mjyoo2
by mjyoo2

get_script_source

Retrieve the source code of a named script in an open HWP document by providing the document ID and script name.

Instructions

Get the source code of a named script.

Args: doc_id: Document ID from open_document name: Script name to retrieve

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
doc_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must carry the behavioral transparency burden. While 'Get' implies a read operation, the description does not explicitly state that the script is not executed, does not mention error behavior for missing scripts, and gives no side-effect or safety context. This is a meaningful gap for an unannotated tool.

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?

The description is appropriately minimal: one clear purpose sentence plus a compact Args block. There is no filler or redundant restatement of the schema, and the key action is front-loaded.

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 simple two-parameter tool with an output schema present, the description covers the essential inputs and their provenance. The main missing piece is explicit side-effect or exclusion guidance, but an agent can successfully invoke the tool with the provided doc_id and name.

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 description coverage is 0% and the schema only provides generic titles ('Name', 'Doc Id'), so the description must compensate. It does by explaining doc_id as the ID from open_document and name as the script name to retrieve. This gives the agent enough semantic grounding, though format or source details for the name are not included.

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?

The description states a specific verb and resource: getting the source code of a named script. This distinguishes it from siblings like run_script or run_macro, which execute rather than retrieve. The scope is clear enough that an agent knows what the tool does immediately.

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 Args section gives useful context by tying doc_id to an open document, which implies a prerequisite of opening the document first. However, it does not explicitly say when to use this tool versus alternatives, nor when not to use it, so the usage guidance is present but incomplete.

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