Skip to main content
Glama

Pin projects for AI work

pin_projects
Idempotent

Pin or unpin Overleaf projects to set the default search scope and let other tools omit the project name when exactly one is pinned. Pins stay local and are shared with the VS Code panel.

Instructions

Pins or unpins projects; other pins stay as they are. Pinned projects are the default scope for grep and search, and while exactly one project is pinned, other tools can leave out "project". Pins are saved on this computer and shared with the VS Code panel; nothing changes on Overleaf. Pin the paper you are working on at the start, so later calls need no project.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projects": "<projects>"
    },
    "name": "pin_projects"
  }
}

Input Schema

NameRequiredDescriptionDefault
unpinNoRemove these pins instead of adding them (default false)
projectsYesNames or ids of the projects to pin or unpin, as shown by list_projects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.1.4
    • changedInput schema / properties / projects / description
      Previous value: -"Project names or ids"New value: +"Names or ids of the projects to pin or unpin, as shown by list_projects"
    • changedInput schema / properties / unpin / description
      Previous value: -"Remove the pins instead of adding them"New value: +"Remove these pins instead of adding them (default false)"
  2. First observedv2.1.1

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the supplied idempotentHint/openWorldHint annotations, the description discloses that pins are additive ('other pins stay as they are'), that state is local and shared with the VS Code panel, and that nothing changes on Overleaf. That last point is especially valuable because it prevents an agent from assuming server-side mutation, which the openWorldHint=false annotation alone would not clarify.

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 with the core action and the non-destructive update rule, then consequences, then persistence scope, then the recommendation. Every sentence carries distinct information and none restates the schema verbatim.

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

Completeness4/5

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

For a two-parameter state tool with no output schema, the description covers the effect on other tools, persistence, and side-effect boundaries. It stops short of saying what a call returns (e.g., confirmation of pinned set), which would fully close the loop in the absence of an output schema.

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?

Schema coverage is 100%, so both parameters are already documented; the description still adds meaning by framing the operation as per-project add/remove rather than a bulk reset, which clarifies how 'unpin' behaves with the projects array. It does not add format details for names vs ids beyond what the schema already says.

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 opening clause 'Pins or unpins projects; other pins stay as they are' gives a specific verb (pin/unpin) and resource (projects), plus the additive-vs-replace semantics. No sibling tool covers pinning, so the agent can immediately distinguish it from list_projects or search.

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

Usage Guidelines5/5

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

The description says explicitly when to use it ('Pin the paper you are working on at the start, so later calls need no project') and what downstream behavior it enables (default scope for grep and search, omitting the 'project' parameter when exactly one pin exists). These conditions give the agent a clear decision rule rather than an implied one.

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