Skip to main content
Glama

dastyar_admin_set_session

Manually set or update the KeystoneJS admin session cookie to restore or switch admin access when automatic authentication is unavailable.

Instructions

Manually set or update the KeystoneJS admin session cookie

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

Input Schema

NameRequiredDescriptionDefault
cookieYesSession cookie string (e.g. keystonejs-session=...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It discloses that the session cookie is set or overwritten but says nothing about whether an existing session is replaced, whether prior authentication is required, what happens with an invalid cookie, or how errors surface — all material for a session-mutating tool.

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?

A single tight sentence with no filler and the key noun ('session cookie') front-loaded. It is efficient, though its brevity is part of why usage and behavioral detail are absent.

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

Completeness2/5

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

For a session-mutation tool with no annotations, no output schema, and closely related siblings, the definition omits the auth model, overwrite semantics, and alternative routing. An agent could call it but would be guessing about the consequences.

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?

With a single parameter at 100% schema coverage, the schema already documents the cookie string and its example format. The description only adds the 'KeystoneJS admin' qualifier identifying which cookie type is expected, which is marginal but not redundant.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb ('set or update') and a specific resource ('KeystoneJS admin session cookie'), so the agent knows exactly what is being changed. It does not, however, distinguish this from the sibling dastyar_update_session or dastyar_admin_login, leaving the boundary ambiguous.

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

Usage Guidelines2/5

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

The word 'Manually' hints at a workaround path but no condition is given for when to use this instead of dastyar_admin_login or dastyar_update_session. There is no mention of prerequisites, when-not to use it, or what state the caller must already be in.

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

Deploy Server

Other Tools