Skip to main content
Glama

configure_auth

Saves and verifies your CSTCloud LaTeX session cookie in the local config so CSTCloud tools and bidirectional sync work without editing mcp_config.json.

Instructions

Save and verify your CSTCloud LaTeX session cookie (overleaf.sid) to ~/.cstcloud-sync/config.json so all CSTCloud tools and bidirectional sync work without editing mcp_config.json.

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": {
      "cookie": "<cookie>"
    },
    "name": "configure_auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
cookieYesYour overleaf.sid cookie value (or full Cookie header) from latex.cstcloud.cn
base_urlNoOptional CSTCloud server URL (defaults to https://latex.cstcloud.cn)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description does real work: it discloses the persistent side effect (writing to ~/.cstcloud-sync/config.json) and that the cookie is verified rather than merely stored. It does not cover overwrite semantics for an existing config, what a failed verification returns, or that the cookie is persisted in plaintext.

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?

A single sentence with the action, artifact, and payoff ordered front to back. There is no filler and no repetition of the title or schema.

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 configuration tool with a fully described schema and no output schema, the description covers purpose, persistence location, and the reason to call it. Only edge-case behavior (failed verification, overwriting existing credentials) 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 coverage is 100% and both parameters are documented in the input schema, so the baseline applies. The description reinforces the cookie's origin (overleaf.sid from latex.cstcloud.cn) but says nothing about the optional base_url parameter beyond what the schema already states.

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 pair ("Save and verify") tied to a concrete resource (your CSTCloud LaTeX session cookie / overleaf.sid) and names the exact destination file. It also states downstream effect ("all CSTCloud tools and bidirectional sync work"), which cleanly separates it from the project/file/compile siblings.

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?

It clearly frames this as the auth setup step that unblocks the other tools and removes the need to edit mcp_config.json, which implicitly answers "when to use." It stops short of explicit guidance on re-running it, when a cookie is stale, or what to do if verification fails.

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