This record as markdown: /tools/linear/linear-getcomments.md
What linear_getComments does on Linear
AI agents call linear_getComments to retrieve information from Linear without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | — | Maximum number of comments to return (default: 25) |
issueId | string | — | ID or identifier of the issue to get comments from (e.g., ABC-123) |
Parameters from the server's own tool schema.
Why linear_getComments is rated Low
This tool queries and retrieves comments associated with an issue without modifying, deleting, or executing any operations. It is a straightforward data retrieval function, making it a Read category tool with low severity since accessing issue comments poses minimal risk even if misused by an AI agent.
From the tool's definition Tool name 'getComments' and description 'Get all comments for an issue' indicate a retrieval operation with no side effects.
Attacks that exploit this kind of access
The rule that runs linear_getComments safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Linear, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For linear_getComments, this is the rule to start with:
linear_getComments is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Linear, apply this rule, and every linear_getComments call is checked against it from then on.
Questions about linear_getComments
Get all comments for an issue. It is categorised as a Read tool in the Linear MCP Server, which means it retrieves data without modifying state.
linear_getComments accepts 2 parameters: limit, issueId. The full parameter table on this page comes from the server's own tool schema.
Register the Linear MCP server in PolicyLayer and add a rule for linear_getComments: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Linear. Nothing to install.
linear_getComments is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the linear_getComments rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for linear_getComments. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
linear_getComments is provided by the Linear MCP server (@linear-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Linear, and thousands of servers like it.
This server
Across the catalogue