Skip to main content
Glama

inject_knowledge

Manually inject obfuscation patterns or custom strategies into the knowledge base to steer the evolutionary deobfuscation process and accelerate convergence.

Instructions

手动向知识库注入人工经验(混淆模式或自定义策略),干预进化方向,加速收敛。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fixYes修复逻辑(JavaScript 代码字符串,接收 code 参数,返回修复后代码)
nameYes模式或策略名称(唯一标识)
signatureYes正则特征签名(用于匹配目标代码)
injectTypeYespattern=注入混淆模式 | strategy=注入自定义策略
descriptionYes描述
Behavior2/5

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

With no annotations provided, the description must disclose behavior itself but only gives a high-level purpose ('intervene in evolution direction, accelerate convergence'). It does not mention side effects, whether existing knowledge is overwritten, reversal possibilities, or failure behavior if the signature doesn't match. For a mutation tool, this is a significant transparency gap.

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 description is a single concise sentence that communicates the action, input types, and purpose without redundant fluff. It is appropriately front-loaded with the core verb 'inject' and resource, earning its place.

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

Completeness2/5

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

This is a complex tool with 5 required parameters, no annotations, and no output schema. The description lacks operational details: how the injection integrates with evolution history, what happens on invalid input, and the exact role of the 'fix' JavaScript code. It is incomplete for an agent to confidently use it correctly.

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 coverage is 100%, so the baseline is 3. The description mentions 'obfuscation patterns or custom strategies' which maps to the injectType enum, but does not add detail about how signature and fix work together or affect behavior. It adds no parameter-specific value beyond the schema.

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 uses a specific verb ('inject') and resource ('knowledge base'), clearly indicating it adds human experience (obfuscation patterns or custom strategies) to influence evolution. It is clearly distinct from sibling tools: query_knowledge reads, get_evolution_history reads history, evolve_js runs evolution, while this tool modifies the knowledge base.

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 context: to intervene in evolution direction and accelerate convergence. However, it does not explicitly state when to use this over alternatives (e.g., query_knowledge or evolve_js) or when not to use it. No exclusions or alternative guidance is provided beyond the inferred purpose.

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/JiangtaoQu/js-reverse-evolver'

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