Skip to main content
Glama

prompt_injection

Sends built-in or custom prompt injection payloads to an LLM API endpoint for authorized security testing. Use it to probe direct, indirect, multi-stage and tool-poisoning attack templates.

Instructions

Send the existing injection templates. This interface does not modify a real retriever, browser, or persistent target memory.

Input Schema

NameRequiredDescriptionDefault
targetNoSaved profile name or inline HTTP target definition
target_urlNoURL of the LLM API endpoint
injection_typeNoType of prompt injection to execute
payload_overrideNoCustom injection payload (overrides built-in payloads)
target_variablesNoOverrides for target definition variables

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose one meaningful trait: that it does not modify a real retriever, browser, or persistent target memory, clarifying the simulation boundary. However, it says nothing about network egress to the supplied URL, what happens when payload_override is used, whether operations are reversible, or what a result looks like. The single disclaimer is valuable but leaves most mutation/execution behavior undisclosed.

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?

Two short sentences with no filler, and the caveat about non-persistence follows immediately after the purpose statement. The wording is efficient, though the opening phrase "Send the existing injection templates" is slightly awkward and could be more precise without adding length.

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?

The tool has 5 parameters, nested objects, a oneOf/dependentRequired structure, one enum, no output schema, and no annotations, which demands a richer description than two sentences. The oneOf requirement (target_url OR target) and dependentRequired (target_variables requires target) are real usage hazards the description never mentions. Relative to this complexity, the definition is materially incomplete.

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 target, target_url, injection_type, payload_override, and target_variables are already documented in the schema, including the enum values for injection_type. The description adds no semantics beyond the structured fields, so the baseline of 3 applies. It does not, for example, explain how payload_override interacts with injection_type.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb and resource ("Send the existing injection templates"), but "send" is ambiguous for what appears to be an attack-execution tool, and it is stated in the passive framing of templates rather than naming the injection action. It offers no differentiation from siblings such as execute_attack_template or jailbreak_attack, which plausibly overlap. An agent could guess the domain but not confidently pick this over a sibling.

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 guidance on when to choose this tool versus the many sibling attack tools, no prerequisites, and no exclusions. The schema's oneOf (target_url vs target) implies two calling modes but the description never explains when to prefer a saved profile name over an inline target definition. The only context given is a safety disclaimer, which is not usage routing.

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