Skip to main content
Glama

Import Cookie

import_cookie

Imports a Dianping login cookie as fallback authentication, validates it, and saves it locally for authenticated Maoyan MCP ticket-availability checks.

Instructions

导入登录 Cookie(后备登录方式):先在浏览器里登录大众点评(www.dianping.com)再取 .dianping.com 的 dper 值,如 dper=xxx——只登录猫眼演出拿不到它。验证通过后保存在本机 ~/.maoyan-mcp/auth.json(0600),不上传。

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": "import_cookie"
  }
}

Input Schema

NameRequiredDescriptionDefault
cookieYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses that the cookie is validated before use, persisted to ~/.maoyan-mcp/auth.json with 0600 permissions, and never uploaded. It omits what happens when validation fails or whether an existing cookie is overwritten.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense sentence with the fallback role front-loaded, followed by the acquisition instructions and then the storage guarantee. Every clause carries information, though the chained parentheses and em dash make it slightly run-on.

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?

An output schema exists, so return values need not be explained, and the description covers prerequisites, persistence location, permissions, and privacy. For a one-parameter auth tool with no annotations, the remaining gap is failure behavior and re-import semantics.

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 0% for the single cookie parameter, so the description must compensate and largely does, specifying the origin domain (.dianping.com), the value name (dper), and the expected form 'dper=xxx'. It does not clarify whether the raw value alone or the full name=value pair is accepted.

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 (import) and resource (login Cookie) and frames it as a fallback login path, so an agent can tell it apart from the SMS-login siblings without opening the schema. It also names the concrete credential needed (the dper value for .dianping.com).

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?

The '后备登录方式' framing plus the prerequisite '先在浏览器里登录大众点评...再取 dper 值' tells the agent when this applies and what must exist beforehand. The negative hint '只登录猫眼演出拿不到它' prevents a common failure mode, though it never names login_with_sms as the primary alternative.

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