Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TESTRAIL_URLYesYour TestRail instance URL, e.g. https://yourcompany.testrail.io
TESTRAIL_USERYesEmail you sign in to TestRail with
TESTRAIL_API_KEYYesTestRail API key (TestRail → My Settings → API Keys)
TESTRAIL_SUITE_IDNoDefault suite ID (multi-suite projects)
TESTRAIL_PROJECT_IDNoDefault project ID (recommended)
TESTRAIL_SECTION_IDNoDefault section for new cases
TESTRAIL_STEPS_FIELDNoField name for stepscustom_steps_separated
TESTRAIL_TEMPLATE_IDNoCase template ID2
TESTRAIL_DEFAULT_FIELDSNoJSON of custom field values applied to every new case, e.g. {"custom_automation_type": "Not Automated"}
TESTRAIL_PRECONDS_FIELDNoField name for preconditionscustom_preconds

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
testrail_check_connectionA

Check the TestRail credentials work and show the configured defaults (project, suite, section, fields).

testrail_list_projectsA

List active TestRail projects (id, name, suite_mode).

testrail_list_suitesA

List the test suites in a project. project_id defaults to TESTRAIL_PROJECT_ID.

testrail_list_sectionsA

List sections as a tree with full paths ("Parent > Child"). search filters by text in the path. project_id / suite_id default to TESTRAIL_PROJECT_ID / TESTRAIL_SUITE_ID.

testrail_list_casesA

List existing cases (id, title, refs) in a section, e.g. to avoid creating duplicates.

testrail_get_fieldsC

Custom case fields for the configured template: name, label, type, required, and dropdown options.

testrail_add_casesA

Create test cases in a TestRail section.

cases: [{"title": "Verify ...", "preconditions": "...", "refs": "optional per-case refs", "steps": [{"content": "one action", "expected": "one expected result"}]}] section_id: defaults to TESTRAIL_SECTION_ID. refs: references applied to every case (e.g. a story key), unless a case sets its own. fields: custom field values for every case, e.g. {"custom_automation_type": "Not Automated"}. Dropdowns accept the option id or its label. Merged over TESTRAIL_DEFAULT_FIELDS. dry_run: return the payloads that would be sent, without creating anything.

testrail_upload_case_fileB

Upload a saved testrail-case-pack .json file from this computer (full path). Embedded images in the file are attached to their steps. section_id overrides the file's section_id, which overrides TESTRAIL_SECTION_ID.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 8 tools

Disambiguation4/5

Tools mostly target distinct resources and actions (list sections, list cases, get fields, add cases, etc.). The only mild overlap is between testrail_add_cases and testrail_upload_case_file, both of which create cases, but their descriptions clearly differentiate structured input from file upload.

Naming Consistency5/5

All tools use the consistent testrail_ prefix followed by a verb_noun pattern (testrail_list_sections, testrail_add_cases, testrail_get_fields), written uniformly in snake_case.

Tool Count5/5

Eight tools are well-scoped for a TestRail case-authoring integration, covering listing hierarchy, checking connectivity, inspecting fields, and adding cases without unnecessary bloat.

Completeness3/5

The surface covers listing and creating test cases, but lacks update and delete operations and single-case retrieval, which are notable gaps for typical TestRail case management workflows.

Maintenance

ActivityMaintained
ResponsivenessNo issues