Skip to main content
Glama

Get Issue Schema

get_issue_schema
Read-onlyIdempotent

Returns valid MantisBT issue fields and enum values for severity, status, priority, resolution, and reproducibility. Use it before building select strings or setting enum fields.

Instructions

Return what is valid for issues on this MantisBT server, in one response:

  • fields: all field names valid for the "select" parameter of get_issue, list_issues and search_issues. Discovered from a sample issue (reflects the server's active configuration) plus fields MantisBT omits when empty (notes, attachments, relationships, …); cached with the metadata TTL. fields_source tells where they came from: "cache", "live" or "static".

  • enums: ID, name and (if available) localized label for severity, status, priority, resolution and reproducibility. "name" or "id" is what create_issue / update_issue accept; "canonical_name" appears on localized installations.

Call it before building a "select" string or before setting enum fields.

Input Schema

NameRequiredDescriptionDefault
project_idNoOptional project ID to scope the sample issue used for field discovery

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.15.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses provenance (discovered from a sample issue, reflecting active server configuration), freshness behavior (cached with the metadata TTL), the fields_source values "cache"/"live"/"static", and the quirk that MantisBT omits empty notes/attachments/relationships fields. This is exactly the behavioral context annotations cannot carry.

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?

Front-loaded summary sentence followed by two clearly labeled bullets, each sentence carrying distinct information (valid fields, provenance, enum shapes, canonical_name caveat, and the usage trigger). No filler.

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 correctly takes on the burden of describing the return shape: field lists plus per-enum id/name/label/canonical_name. Combined with freshness and provenance details, an agent has everything needed to call it and interpret the result.

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?

Only one parameter (project_id) and schema description coverage is 100%, so the schema already explains its purpose. The description mentions sample-issue discovery but never states that project_id scopes which sample issue is used, adding little beyond the schema.

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?

A specific verb ('Return') and resource (valid fields/enums for issues on this MantisBT server) are stated, with the two payloads (fields, enums) enumerated. It falls short of a 5 because near-duplicate siblings get_issue_enums and get_issue_fields exist and the description never explains how this tool differs from them, even though 'in one response' hints at the combined scope.

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?

'Call it before building a "select" string or before setting enum fields' gives an explicit trigger condition tied to concrete downstream tools (get_issue, list_issues, search_issues, create_issue, update_issue). There are no exclusions or named alternatives, so an agent must infer that get_issue_enums/get_issue_fields are partial substitutes.

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