Skip to main content
Glama

Create Test Layer Schema

create_test_layer_schema

Create a test layer schema in Allure TestOps by mapping a custom field key to a test layer, so test cases with matching custom field values are automatically assigned to the correct layer.

Instructions

Create a new test layer schema to map a custom field key to a test layer.

Test layer schemas define the mapping between custom field keys and test layers. This allows test cases with specific custom field values to be automatically assigned to the correct test layer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesThe schema key (e.g., custom field name like 'layer' or 'test_layer').
project_idYesAllure TestOps project ID to create the schema in.
output_formatNoOutput format: 'json' (default) or 'plain'.
test_layer_idYesID of the test layer to link to this schema.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
keyNo
test_layer_idNo
test_layer_nameNo
Behavior3/5

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

Annotations indicate the tool is not read-only, idempotent, or destructive. The description adds no further behavioral details (e.g., error handling, permissions, conflicts). With annotations present, the bar is lower, but description could still be more informative.

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 concise: two paragraphs sum up the purpose and function without redundancy. Every sentence contributes to understanding.

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?

Given the tool's complexity (4 parameters, no nested objects, existence of output schema), the description adequately explains the concept of test layer schemas and their role. It provides sufficient context for an agent to decide to use 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 description coverage is 100%, so the schema already documents all parameters. The description repeats the general concept (mapping key to layer) but does not add specific parameter-level semantics beyond what the schema provides.

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 clearly states the tool creates a new test layer schema that maps a custom field key to a test layer. It distinguishes from sibling tools like create_test_layer (which creates layers) and other schema tools (list, update, delete) by focusing on the creation of mappings.

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 explains that schemas allow automatic assignment of test cases to layers based on custom fields, giving context for when to use this tool. However, it lacks explicit statements about when not to use it or alternatives (e.g., if schema already exists).

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/ivanostanin/lucius-mcp'

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