Skip to main content
Glama

get_submodel_elements

Fetches all elements of a given submodel, providing complete access to its components.

Instructions

Retrieves all Submodel elements from a specific Submodel.

Corresponds to: GET /submodels/{submodel_id}/submodel-elements

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostNoBase URL of the AAS server. Defaults to configured host.http://localhost:8081
encodeNoWhether to Base64-encode the Submodel ID. Defaults to True.
submodel_idYesThe unique identifier of the Submodel.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the HTTP method (GET) via the endpoint, implying a read-only, idempotent operation. However, it does not mention authentication requirements, pagination, or potential performance implications of retrieving all elements, so transparency is minimal but present.

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

Conciseness5/5

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

The description is two concise sentences: the first states the purpose, the second maps it to the exact REST endpoint. It is front-loaded with the action and resource, contains no filler, and every sentence earns its place.

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?

Given the tool's simplicity, a single-purpose retrieval operation with 3 parameters and an output schema, the description is largely complete. It provides the purpose and API mapping. However, it lacks any usage guidance or cautionary notes, so it is not fully comprehensive, but sufficient 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?

Schema description coverage is 100%, so the baseline is 3. The description does not add any parameter-specific meaning beyond the schema; it only includes submodel_id in the endpoint path, which is already described in the schema. The tool description adds no extra semantic value for parameters.

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 uses the specific verb 'Retrieves' and clearly identifies the resource as 'all Submodel elements from a specific Submodel'. It distinguishes from siblings like get_submodel (the Submodel itself) and get_submodel_element (a single element) by explicitly stating 'all'. The corresponding REST endpoint adds further precision.

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?

The description clearly implies when to use the tool: when you need to retrieve all elements of a specific Submodel. It does not explicitly mention alternatives or exclusions, but the scope is unambiguous and the sibling context (get_submodel_element for a single element) makes the usage context clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SmartFactory-KL/aas-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server