Skip to main content
Glama

validate_patch_target

Verify a Harmony patch target method exists with the expected signature before patching a game assembly, preventing failed mod injections.

Instructions

Validate that a Harmony patch target method exists with expected signature.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assemblyYesAssembly key
type_nameYesTarget type name
method_nameYesTarget method name
expected_paramsNoExpected parameter types (comma-separated)
expected_returnNoExpected return type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. 'Validate' strongly implies a non-destructive read, but the description does not state what happens on a mismatch (error vs. false), whether it requires the assembly to be loaded first, or anything about how the result is conveyed.

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?

A single efficient sentence with the core purpose front-loaded and zero filler. It is appropriately sized, though it stops short of exploiting the room for useful detail.

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?

For a 5-parameter tool with no annotations and no output schema, the description is incomplete: it never explains the return value (boolean, diagnostic message, or error) or how expected_params/expected_return are matched. The schema covers inputs, but the result contract is left unaddressed.

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%, so every parameter (including expected_params and expected_return) is already documented in the schema. The description mentions 'expected signature' but adds no format or matching-semantics detail beyond what the schema provides, so the baseline of 3 applies.

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?

States a specific verb+resource: validate that a Harmony patch target method exists with an expected signature. An agent grasps the operation immediately. However, it does not name or distinguish itself from closely related siblings like list_patchable_methods, verify_patches, or validate_assembly.

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?

There is no explicit when-to-use, when-not-to-use, or alternative guidance. The domain (Harmony patching) implies a pre-flight check, but nothing tells the agent whether this belongs before generate_harmony_patch, or how it differs from verify_patches/compare_signatures.

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

Deploy Server

Other Tools