Skip to main content
Glama
wkoutre

Linear MCP Server

by wkoutre

linear_getOrganization

Retrieve details about your Linear organization to manage projects and teams effectively through the Linear MCP Server.

Instructions

Get information about the current Linear organization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that creates and returns the async executor for the linear_getOrganization tool, delegating to LinearService.getOrganizationInfo()
    export function handleGetOrganization(linearService: LinearService) {
      return async (args: unknown) => {
        try {
          return await linearService.getOrganizationInfo();
        } catch (error) {
          logError("Error getting organization information", error);
          throw error;
        }
      };
    }
  • Tool schema definition for linear_getOrganization, specifying input (empty) and output schema matching organization fields
    export const getOrganizationToolDefinition: MCPToolDefinition = {
      name: "linear_getOrganization",
      description: "Get information about the current Linear organization",
      input_schema: {
        type: "object",
        properties: {},
      },
      output_schema: {
        type: "object",
        properties: {
          id: { type: "string" },
          name: { type: "string" },
          urlKey: { type: "string" },
          logoUrl: { type: "string" }
        }
      }
    };
  • Registration of the linear_getOrganization handler within the registerToolHandlers function that returns the tools map
    linear_getViewer: handleGetViewer(linearService),
    linear_getOrganization: handleGetOrganization(linearService),
    linear_getUsers: handleGetUsers(linearService),
    linear_getLabels: handleGetLabels(linearService),
  • LinearService method that fetches the organization data using LinearClient.organization and returns formatted object with id, name, urlKey, logoUrl, createdAt, and subscription
    async getOrganizationInfo() {
      const organization = await this.client.organization;
      return {
        id: organization.id,
        name: organization.name,
        urlKey: organization.urlKey,
        logoUrl: organization.logoUrl,
        createdAt: organization.createdAt,
        // Include subscription details if available
        subscription: organization.subscription || null,
      };
    }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are provided, so the description should disclose behavioral traits. It does not explicitly state that the tool is read-only or requires specific authentication. The name implies a read operation, but this is implicit.

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 sentence that conveys the tool's purpose without any fluff. It is front-loaded and every word earns its place.

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 tool with no parameters and no output schema, the description is adequate but minimal. It tells the agent it retrieves organization information, but does not specify what fields or the return structure. This leaves some ambiguity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero parameters and 100% coverage. The description adds no parameter information because none exists. Baseline for 0 params is 4, as the description adds no further meaning beyond the schema.

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?

The description uses a specific verb ('Get') and resource ('current Linear organization'). It clearly distinguishes from sibling tools like linear_getServerStatus or linear_getViewer, as no other tool targets the organization.

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?

No guidance on when to use this tool vs alternatives. The description is adequate for a simple getter, but does not provide any context about prerequisites or exclusions.

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