Skip to main content
Glama

List templates and fields

get_fields
Read-only

List a project's templates and their fields (id, label, type incl. STEPS, options) — exactly what you see authoring a case in the UI. Use the field ids with create_test_case/update_test_case fieldValues to set priority, steps, etc.

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": "<project>"
    },
    "name": "get_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYesProject id to read templates/fields from. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted.
templateIdNoOptional: only this template's fields (else all templates in the project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project / description
      Previous value: -"Project id to read templates/fields from. Numeric id from get_projects (same as in the app URL); not the project name."New value: +"Project id to read templates/fields from. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds that the output mirrors what an author sees in the UI and that its ids are the keys expected by mutation tools. No pagination or size/rate notes, but for a non-destructive read that is a minor omission.

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?

Two sentences, front-loaded with what is listed, followed by the actionable follow-up use. The parenthetical field list is dense but earns its place since no output schema exists.

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?

With no output schema, the description compensates by naming the returned attributes and flagging the STEPS field type, plus the intended consumption path into create/update. Nothing an agent needs to call this correctly is missing.

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 coverage is 100% and the schema already explains that project is a numeric id from get_projects (not a name) and that templateId narrows to one template. The description adds no format or constraint detail beyond that, so the baseline of 3 applies.

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?

States a specific verb and resource ('List a project's templates and their fields') and enumerates the returned attributes (id, label, type incl. STEPS, options), which separates it cleanly from siblings like get_projects or get_test_cases. The UI-authoring comparison makes the scope concrete.

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?

Gives an explicit downstream use: feed the returned field ids into create_test_case/update_test_case fieldValues to set priority, steps, etc. It does not state when not to use it or how templateId narrowing should be chosen, so it stops short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.