Skip to main content
Glama

get_ai_perceived_actors

Read-onlyIdempotent

Retrieve actors currently perceived by an AI pawn's or AIController's AIPerceptionComponent in the Unreal Editor world. Provides actor names and count without modifying anything.

Instructions

List the actors that the AIPerceptionComponent of an AI-possessed pawn, or of an AIController, currently perceives by any sense, without changing anything. The actor is looked up in the editor world, not PIE, so an unpossessed pawn is an error. Returns count and perceived [{actor_name}]; no last-sensed time is included.

Returns: { actor_name, perceived: [{actor_name}], count }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actor_nameYesObject name or editor label of the pawn or AIController in the editor world; the first match is used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • changedInput schema / properties / actor_name / description
      Previous value: -"Required."New value: +"Object name or editor label of the pawn or AIController in the editor world; the first match is used."
  2. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, covering the safety profile. The description adds meaningful behavioral context beyond that: editor-world-only lookup, PIE exclusion, error on unpossessed pawn, and the absence of last-sensed time in results.

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 front-loaded with the core action and keeps behavioral caveats in the first sentence. It is appropriately sized, though the explicit 'Returns:' block slightly duplicates the earlier return summary, adding a minor redundancy.

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

Completeness5/5

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

With no output schema, the description supplies the return structure and field names, while annotations cover the safety profile. It also discloses the editor-versus-PIE constraint and the error condition for unpossessed pawns, leaving no critical gap for correct invocation.

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?

The single parameter has 100% schema description coverage, and the schema itself documents that actor_name is an object name or editor label with first-match behavior. The description adds no additional parameter syntax or format details, so the baseline 3 is appropriate when the schema already carries the semantic load.

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 states a specific verb (List), resource (actors perceived by AIPerceptionComponent), and scope (AI-possessed pawn or AIController), making the tool's function unmistakable. It does not name or contrast with a sibling such as get_ai_perception_senses, so sibling differentiation is implicit rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It specifies the operational context clearly: the actor is looked up in the editor world, not PIE, and an unpossessed pawn is an error. This gives useful when-to-use and when-not-to-use conditions, though it does not name alternative tools for related queries.

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