Skip to main content
Glama

get_input_mapping_context

Read-onlyIdempotent

Read one Enhanced Input mapping context asset to list every action-to-key mapping. Use it instead of the deprecated mappings property, which returns an empty list.

Instructions

Read ONE Enhanced Input mapping context asset (IMC): every action-to-key mapping it declares. An IMC asset stores no priority -- that is given when the context is added to a player (AddMappingContext), so it is not reported here. The per-asset reader, and the reliable one -- the Python property InputMappingContext.mappings is deprecated and hands back an EMPTY list without failing, so a scan built on it reports a fully-bound context as empty. Use list_all_input_mappings for the project-wide "which keys are taken / which conflict" question.

Returns: { context_path, context_name, mappings: [{ action_name, key (display name), key_name (the FKey name map_input_action takes) }], mapping_count }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_pathYesFull path to the InputMappingContext asset (e.g., /Game/Input/IMC_Default).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), but the description adds real behavioral context beyond them: the deprecation trap where InputMappingContext.mappings silently returns an EMPTY list, and the fact that IMC assets store no priority because it is supplied at AddMappingContext. Those are the kind of failure modes an agent cannot infer from annotations.

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?

Purpose and scope are front-loaded, then the sibling routing, then the pitfall warning, then returns. Every sentence carries information, though the heavy parentheticals and em-dash asides make it denser than it needs to be.

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?

There is no output schema, so the description compensates by spelling out the return payload (context_path, context_name, mappings with action_name/key/key_name, mapping_count). Combined with the trap warning and sibling routing, an agent has everything needed to call and interpret this tool.

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% and there is only one parameter, so the schema already documents context_path fully. The description adds return-shape detail (the FKey name used by map_input_action) but nothing about the parameter itself. Baseline 3 is correct when the schema does the work.

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 states a specific verb and resource ('Read ONE Enhanced Input mapping context asset (IMC)') and bounds the scope to 'every action-to-key mapping it declares'. It also names the sibling it is not, list_all_input_mappings, so an agent can distinguish single-asset reads from project-wide scans without opening either schema.

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

Usage Guidelines5/5

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

It gives an explicit alternative and the condition that selects it: 'Use list_all_input_mappings for the project-wide which keys are taken / which conflict question.' The one-asset scope is also front-loaded, so the when-to-use boundary is unambiguous.

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