Skip to main content
Glama

linear_getProjectIssues

Retrieve all issues from a Linear project to track tasks, identify blockers, and monitor progress. Specify a project ID to get relevant issues with optional limit control.

Instructions

Get all issues associated with a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesID of the project to get issues for
limitNoMaximum number of issues to return (default: 25)

Implementation Reference

  • The handler function that implements the core logic of the linear_getProjectIssues tool. It validates the input arguments using a type guard and delegates to the LinearService.getProjectIssues method.
    /**
     * Handler for getting issues in a project
     */
    export function handleGetProjectIssues(linearService: LinearService) {
      return async (args: unknown) => {
        try {
          if (!isGetProjectIssuesArgs(args)) {
            throw new Error('Invalid arguments for getProjectIssues');
          }
    
          return await linearService.getProjectIssues(args.projectId, args.limit);
        } catch (error) {
          logError('Error getting project issues', error);
          throw error;
        }
      };
    }
  • The MCP tool definition (schema) for linear_getProjectIssues, specifying input parameters (projectId required, optional limit) and output structure (array of issue objects).
    export const getProjectIssuesToolDefinition: MCPToolDefinition = {
      name: 'linear_getProjectIssues',
      description: 'Get all issues associated with a project',
      input_schema: {
        type: 'object',
        properties: {
          projectId: {
            type: 'string',
            description: 'ID of the project to get issues for',
          },
          limit: {
            type: 'number',
            description: 'Maximum number of issues to return (default: 25)',
          },
        },
        required: ['projectId'],
      },
      output_schema: {
        type: 'array',
        items: {
          type: 'object',
          properties: {
            id: { type: 'string' },
            identifier: { type: 'string' },
            title: { type: 'string' },
            description: { type: 'string' },
            state: { type: 'string' },
            priority: { type: 'number' },
            team: { type: 'object' },
            assignee: { type: 'object' },
            url: { type: 'string' },
          },
        },
      },
    };
  • Registration of the linear_getProjectIssues handler within the registerToolHandlers function, mapping the tool name to the handleGetProjectIssues factory.
    linear_updateProject: handleUpdateProject(linearService),
    linear_addIssueToProject: handleAddIssueToProject(linearService),
    linear_getProjectIssues: handleGetProjectIssues(linearService),
  • Type guard function used by the handler to validate input arguments for the linear_getProjectIssues tool.
    export function isGetProjectIssuesArgs(args: unknown): args is {
      projectId: string;
      limit?: number;
    } {
      return (
        typeof args === 'object' &&
        args !== null &&
        'projectId' in args &&
        typeof (args as { projectId: string }).projectId === 'string' &&
        (!('limit' in args) || typeof (args as { limit: number }).limit === 'number')
      );
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states this is a read operation ('Get'), but doesn't mention authentication requirements, rate limits, pagination behavior (beyond the 'limit' parameter), error conditions, or what format/issues are returned. For a tool with zero annotation coverage, this is insufficient.

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?

The description is a single, efficient sentence that states the core functionality without unnecessary words. It's appropriately sized for a simple retrieval tool and front-loads the essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only tool with good schema coverage but no annotations and no output schema, the description is minimally adequate. It states what the tool does but lacks behavioral context and usage guidance. The agent would need to rely heavily on the schema and possibly trial-and-error to use this effectively.

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 the schema fully documents both parameters (projectId and limit). The description adds no additional parameter information beyond what's in the schema, but doesn't need to since the schema is comprehensive. Baseline 3 is appropriate when the schema does all the work.

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?

The description clearly states the action ('Get') and resource ('issues associated with a project'), making the purpose understandable. It distinguishes from siblings like 'linear_getIssues' (general issues) and 'linear_getIssueById' (specific issue), but doesn't explicitly mention this distinction in the description itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'linear_getIssues' or 'linear_searchIssues'. It doesn't mention prerequisites, constraints, or typical use cases, leaving the agent to infer usage from the tool name alone.

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

Install Server

Other Tools

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/tacticlaunch/mcp-linear'

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