Skip to main content
Glama

attach_project

Attach an Overleaf project to the current session by alias, URL, or id, so subsequent tools act only on that cloned project.

Instructions

Attach an Overleaf project to this session. All other tools then act on this project only.

Clones the project locally, which takes a few seconds. Attaching a different project detaches the current one first.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "attach_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoRegistered alias (from list_projects), or the project's Overleaf URL or id. Omit when the server is pinned to one project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare non-read-only, open-world, non-destructive, so the safety profile is known. The description adds genuinely useful behavior beyond that: it clones the project locally, costs a few seconds, and replaces any currently attached project. It does not cover failure modes (bad alias/URL) or what a partial clone looks like, so it is good but not rich.

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?

Two short sentences, both front-loaded: the core action and session-wide effect come first, then the operational cost and replacement behavior. Every sentence carries information an agent needs before calling.

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 one-optional-parameter, annotation-covered tool with no output schema, the description provides what matters: the session-scoping effect, the local clone, latency, and the detach-on-switch behavior. Only error handling for an invalid alias or URL is left unaddressed.

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%, and the single parameter's semantics (registered alias, URL, or id, or omit when pinned) are fully spelled out in the schema, not the description. The description adds no meaning beyond it, so a baseline 3 is correct.

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?

States a specific verb (attach) and resource (an Overleaf project) and immediately names the consequence for the rest of the session: "All other tools then act on this project only." That scoping statement distinguishes it from detach_project and from the file-level tools without needing to name them.

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

Usage Guidelines4/5

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

Tells the agent when to call it (to bring a project into the session) and what happens on repeat invocation: "Attaching a different project detaches the current one first." It also covers the pinned-server case in the parameter description. No explicit exclusions are given, but the context is clear.

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