Skip to main content
Glama

Read an object's XML

get_object
Read-only

Retrieve a Mount & Blade II: Bannerlord object's XML, revealing the winning module definition, other definitions, XSLT patches, and file path by reference or bare ID.

Instructions

Returns the XML of a game object, e.g. ref='Item.empire_sword_1_t2', 'NPCCharacter.imperial_recruit', 'Culture.empire' or a bare id. Shows which module's definition wins (load order), other definitions, XSLT patches that touch it and the absolute file path.

Input Schema

NameRequiredDescriptionDefault
refYesObject reference 'Prefix.id' (Item.x, NPCCharacter.x, Faction.x, …) or a bare id.
langNoShow the translated name in this language (e.g. CNs).
moduleNoOnly show the definition from this module.
all_definitionsNoShow the XML of every definition, not only the effective one (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, so the safety profile is covered; the description then adds real behavioral value by disclosing what the result contains: load-order winner, other definitions, XSLT patches, and the absolute file path. This goes beyond the 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?

A single front-loaded sentence that states the return value first, then illustrates with examples and enumerates result contents. Dense but every clause carries information.

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

Completeness4/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 compensates by explaining what the response shows (effective definition, other definitions, patches, file path). Combined with readOnly annotations, this is nearly complete for an inspection 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 description coverage is 100%, so all four parameters are already documented in the schema. The description reinforces the ref format with examples but adds little beyond what the schema already states.

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 ('Returns the XML') and resource ('a game object') with concrete ref examples, clearly distinguishing it as a read tool. It doesn't explicitly name a sibling like write_object, but the read-only nature is unambiguous.

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 by the purpose (inspect an object's definition), but the description gives no explicit when-to-use guidance, prerequisites, or alternatives such as search_objects when the ref is unknown.

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