Skip to main content
Glama

detect_container

Determine whether a memory address holds a std::vector, TArray, std::string, or another container type to identify data structures during live or dump-backed memory analysis.

Instructions

Decide whether an address holds a std::vector, TArray, std::string, or other.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "va": "<va>"
    },
    "name": "detect_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaYes
pidNo
sessionNodefault
element_sizeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations at all, the description carries the full disclosure burden, and it says nothing about whether a debug session or pid attachment is required, whether the address is read from the target process, or side effects. Because an output schema exists, explaining the exact return payload is less necessary, but the operational preconditions remain undisclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, but it is terse to the point of under-specification rather than efficient concision. One additional clause on prerequisites or inputs would have earned 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?

Output schema coverage means return values need not be described, but for a four-parameter process-inspection tool with zero schema descriptions and no annotations, the definition leaves the agent without enough to call it correctly. Nothing explains what element_size does or how pid/session affect the lookup.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across four parameters, and the description does not mention any of them. In particular, element_size and session are non-obvious and get no explanation; only va is weakly implied by the word "address", and pid receives no mention at all.

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?

The description gives a specific verb ("Decide whether") tied to a concrete resource (a memory address) and enumerates the container families it recognizes (std::vector, TArray, std::string, or other). This is enough to separate it from expand_container at a glance, though the wording "holds" is slightly imprecise about what is being inspected.

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 call detect_container rather than the sibling expand_container, nor on prerequisites such as needing an attached process or a live debug session. The reader must infer that detection is a precursor step to expansion.

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