Skip to main content
Glama

Import tokens

zoodex_set_tokens

Set access and refresh tokens from the zoodex.ir browser localStorage key token to reuse an existing web session instead of SMS login; tokens are validated by fetching the identity.

Instructions

Use an existing web session instead of SMS login: paste the accessToken/refreshToken from the zoodex.ir browser localStorage key token. The token is validated by fetching the identity.

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": {
      "access_token": "<access_token>"
    },
    "name": "zoodex_set_tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
access_tokenYes
refresh_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so the network-touching, state-changing nature is partly covered. The description adds genuinely useful context — the tokens are validated by fetching the identity, meaning a network round-trip and possible failure. It does not say whether imported tokens persist beyond the session, whether they overwrite a current session, or what an agent should do when validation rejects the token.

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 tight sentences: the action and its alternative come first, the credential source second. No filler, no restating of the tool name, and the most decision-relevant detail is front-loaded.

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

Completeness3/5

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

For a two-parameter authentication tool with no output schema, the essentials (source of tokens, validation step) are present, but post-call behavior is thin — no success/failure signal, no note on session replacement, no guidance on falling back to SMS login. An agent could invoke it correctly but would be guessing about the outcome and error path.

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 0%, so the description has to carry the load; it does clarify where the values come from (localStorage `token` key) and that two tokens are involved. It never distinguishes the required access_token from the optional refresh_token, nor explains the minLength 10 constraint or what refresh capability buys, so the mapping to the schema is incomplete.

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 names a specific action (import an existing web session's accessToken/refreshToken) and pins the exact source: the zoodex.ir browser localStorage key `token`. It explicitly contrasts with the SMS-login path, so an agent can distinguish it from zoodex_login_start / zoodex_login_verify without opening any schema.

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 states the condition for using it (when the user already has a web session, instead of SMS login) and where the credentials come from, which is the practical prerequisite. It stops short of explicit when-not guidance, e.g. what to do if the user has no browser session or if validation fails — presumably falling back to the SMS login tools, but that is left implicit.

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