Skip to main content
Glama

jira_get_fields

Retrieve all available field information including custom fields, showing IDs, names, and types for Jira instance configuration and integration.

Instructions

Get all available fields including custom fields - shows field IDs, names, and types

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'jira_get_fields' that invokes jiraClient.getFields() and returns the fields as JSON string.
    case "jira_get_fields": {
      const fields = await jiraClient.getFields();
      return {
        content: [{ type: "text", text: JSON.stringify(fields, null, 2) }],
      };
    }
  • src/index.ts:520-528 (registration)
    Tool registration in ListTools handler, including name, description, and empty input schema (no parameters required).
    {
      name: "jira_get_fields",
      description:
        "Get all available fields including custom fields - shows field IDs, names, and types",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • Core implementation of getFields() in JiraClient class, which makes an API request to Jira's /field endpoint to fetch all available fields.
    // Get all fields (including custom fields)
    async getFields(): Promise<
      Array<{
        id: string;
        name: string;
        custom: boolean;
        schema?: { type: string };
      }>
    > {
      return this.request<
        Array<{
          id: string;
          name: string;
          custom: boolean;
          schema?: { type: string };
        }>
      >("/field");
    }

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/yogeshhrathod/JiraMCP'

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