Skip to main content
Glama
Anwani MCP

Anwani MCP

Official

check_session

Read-onlyIdempotent

Returns connection status for the signed-in Anwani user so you can verify OAuth sign-in before calling address tools.

Instructions

Returns connection status for the signed-in Anwani user as {ok, connected, scopes, expiresAt}. Identity comes from the saved OAuth token (no parameters) and never includes Firebase UIDs or internal IDs. Use it when unsure the user is signed in before calling address tools; do not use it to list or change addresses (use list_addresses, get_address, create_address, patch_address instead). Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_session"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
okNoTrue when the request succeeded.
scopesNoGranted scopes, e.g. address:read.
connectedNoTrue when a valid OAuth token is saved.
expiresAtNoToken expiry (epoch ms or ISO string), or null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.6

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), but the description adds real context beyond them: identity derives from a saved OAuth token, no parameters are required, and results never include Firebase UIDs or internal IDs. The only wasted clause is the trailing "Read-only", which merely restates readOnlyHint=true.

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?

Front-loaded with the return shape, then usage, then exclusions — a sensible ordering with no filler sentences. The four-name sibling enumeration and the redundant "Read-only" tail keep it just short of maximally tight.

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

Completeness5/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 fully specified, yet the description still summarizes the payload keys. For a zero-parameter read tool, everything an agent needs to decide and invoke correctly is present.

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?

With zero parameters the baseline is 4, and the description reinforces this by stating identity comes from the saved OAuth token rather than caller-supplied input. That clarifies why the schema is empty, which is a small but genuine addition over the empty properties object.

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 and resource ("Returns connection status for the signed-in Anwani user") and even names the exact return shape {ok, connected, scopes, expiresAt}. It is immediately distinguishable from the address CRUD siblings, which it names explicitly.

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

Usage Guidelines5/5

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

Gives an explicit trigger ("when unsure the user is signed in before calling address tools") and an explicit exclusion with the correct alternatives ("do not use it to list or change addresses (use list_addresses, get_address, create_address, patch_address instead)"). Nothing is left to inference about routing.

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