Skip to main content
Glama
mercadona-mcp
by Syuf1514

Import session

mercadona_import_session

Imports a Mercadona browser session JSON as a fallback login, letting agents authenticate when normal sign-in is unavailable and continue accessing account features.

Instructions

Fallback login: store a session copied from the user's own browser. In DevTools console on tienda.mercadona.es run localStorage.getItem('MO-user') and pass the resulting JSON string here.

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": {
      "session_json": "<session_json>"
    },
    "name": "mercadona_import_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_jsonYesThe JSON from localStorage "MO-user": {"uuid", "token", "refreshToken"}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

The annotations already establish that this is not read-only, touches an open world, and is non-destructive; the description adds that what gets persisted is a credential copied from the user's browser. It does not say how long the session is stored, whether it replaces an existing session, or that the token is later used to authenticate requests, which matters for a credential-handling write.

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 sentences, front-loaded with the role of the tool and the actionable retrieval recipe, with no filler. Every clause contributes either identification or a required input detail.

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 single-parameter tool with no output schema, the description covers what the tool does, where the value comes from, and how to fetch it. What is missing is the post-import consequence (whether the session persists across calls or expires), which would complete the picture.

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 100%, so the shape (uuid, token, refreshToken) is already documented. The description still earns credit by specifying the exact reproduction step — `localStorage.getItem('MO-user')` on tienda.mercadona.es — which tells the agent how to produce a valid value rather than just its type.

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 verb and resource ("store a session") and frames it as a "Fallback login", which immediately separates it from the primary login sibling. The added instruction on where the session comes from makes the purpose unambiguous.

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?

"Fallback login" signals the condition under which to reach for this tool instead of the normal login path, and the description tells the agent exactly where the input must come from (user's own browser, tienda.mercadona.es console). It stops short of stating an explicit when-not or naming the primary login tool as the alternative.

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