Skip to main content
Glama
testrail-mcp
by tmurraypt

get_sections

List all sections in a TestRail project to organize test cases, with optional suite filtering for multi-suite projects.

Instructions

List sections in a project (optionally filtered by suite)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_id": "<project_id>"
    },
    "name": "get_sections"
  }
}

Input Schema

NameRequiredDescriptionDefault
suite_idNoSuite ID (required for multi-suite projects)
project_idYesProject ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load; "List" does signal a read-only, non-mutating operation. However, it says nothing about permissions, pagination, ordering, or what happens in multi-suite projects when suite_id is omitted — gaps the schema only partly hints at.

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?

A single front-loaded sentence with zero filler; the resource and the one meaningful modifier (suite filter) come first. Nothing in the sentence could be removed without losing 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?

For a simple two-parameter read-only listing tool with full schema coverage and no output schema, the definition supplies enough to call it correctly. The only shortfall is the absence of pagination or volume expectations, which is minor at this complexity.

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 both project_id and suite_id are already documented, including the note that suite_id is required for multi-suite projects. The description's "optionally filtered by suite" roughly mirrors that but adds no syntax, format, or edge-case detail beyond the schema, making the baseline 3 appropriate.

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?

"List sections in a project" gives a specific verb (list) and resource (sections) plus scope (in a project), so the agent knows exactly what comes back. It stops short of explicitly contrasting with the singular sibling get_section, relying on name similarity to carry that distinction.

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?

The parenthetical "(optionally filtered by suite)" implies when to pass suite_id, but there is no explicit statement of when to use this tool versus get_section or get_suite, and no mention of pagination or result-size limits. Usage is inferable rather than stated.

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