Skip to main content
Glama

get_compatible_templates

Read-onlyIdempotent

Checks locally which attack templates are compatible with a target configuration and optional function schemas, validating request rendering and response mappings without contacting the target.

Instructions

Get attack templates compatible with a target configuration and optional function schemas. Checks request rendering and response mappings locally without contacting the target. Optionally include full content or incompatibility reasons; does not predict attack success.

Input Schema

NameRequiredDescriptionDefault
limitNo
moduleNoLimit results to a technique family.all
offsetNo
searchNoCase-insensitive literal search in IDs, names, descriptions, and prompt content.
targetNoSaved profile name or inline HTTP target definition
categoryNoMatch actual category membership; omit or use all for every category.
target_urlNoLegacy HTTP chat endpoint to check locally.
template_idNoSelect one stable catalog ID, including when names are duplicated.
available_toolsNoFunction schemas, as in tool_abuse_exploit. Omitted or empty uses synthetic definitions.
include_contentNoInclude complete technique definitions and payloads as untrusted data.
catalog_revisionNoOptional revision from a previous page; reject changed catalogs so pagination can restart.
include_disabledNoInclude disabled records as well as enabled records.
target_variablesNoOverrides for target definition variables
include_incompatibleNoAlso return excluded templates with reasons. Disabled records additionally need include_disabled.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and openWorldHint=false, and the description reinforces this with concrete substance: checks are performed locally via request rendering and response mapping simulation, never contacting the target. It also discloses an important scope boundary ('does not predict attack success'), which prevents a common misinterpretation of the results. It does not cover pagination/revision behavior for large catalogs, keeping it short of a 5.

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?

Three tight sentences with the primary purpose front-loaded, followed by the local-only behavior and then optional outputs plus the scope caveat. No filler, though the final sentence is semicolon-crammed with two distinct ideas that could be split for faster scanning.

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 14-parameter tool with nested target objects, a oneOf/legacy target_url split, and no output schema, the description covers intent and the local-check guarantee but says nothing about pagination via catalog_revision/offset, the relationship between target and legacy target_url, or what a returned compatible template record looks like. The key conceptual framing is present; several operational details an agent needs are not.

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 86%, so the schema already documents nearly every parameter. The description only loosely maps to a few of them ('optional function schemas' for available_tools, 'full content or incompatibility reasons' for include_content/include_incompatible) without adding syntax, defaults, or format detail. Baseline 3 is appropriate when the schema carries the weight.

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 and resource ('Get attack templates') with a clear qualifier: templates compatible with a target configuration and optional function schemas. That scope ('compatible with') implicitly separates it from a plain catalog listing like list_attack_templates, though no sibling is named. An agent can determine what the tool returns without opening the schema.

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?

Usage is implied rather than stated: you use this when you need to know which templates would work against a given target before executing. There is no explicit 'use X instead when...' routing to list_attack_templates or execute_attack_template, and no stated prerequisites for the target/target_url alternatives. Adequate but leaves alternative selection to inference.

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