Skip to main content
Glama
mcp-hr-sql-readonly

mcp-hr-sql-readonly

by Marcovo93

Stato della sessione

stato_sessione
Read-only

Checks whether a saved session for an environment is still valid without executing a query, so the next query can reauthenticate automatically if needed.

Instructions

Dice se la sessione salvata per un ambiente è ancora valida, senza eseguire query. Se non lo è, la prossima "query" rifà il login da sola.

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

Input Schema

NameRequiredDescriptionDefault
ambienteNoNome dell'ambiente (vuoto = default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the read-only, open-world safety profile, and the description adds real value on top: no query is executed and a stale session is repaired automatically by the next 'query'. It does not state the shape of the answer (boolean vs. status detail), which matters since there is no output schema.

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 short sentences: the effect first, then the downstream consequence. No filler, and the most decision-relevant information is front-loaded.

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 one-optional-parameter read-only check this covers purpose, side effects, and fallback behavior. The only gap is the return value, which is only hinted at ('dice se...') with no output schema to carry it.

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 100% and the single parameter 'ambiente' is documented there, including the empty-equals-default behavior. The description only restates that the session is per-environment, adding no syntax or semantics beyond the schema, so baseline 3 applies.

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: it tells whether the saved session for an environment is still valid, and explicitly notes it does so without executing queries. This directly differentiates it from the sibling 'query', which it names, so an agent can pick between them without opening the 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?

Gives clear context for when to call it (to check session validity without triggering a query) and adds the useful fact that a failed session self-heals on the next 'query'. It does not explicitly say when not to call it (e.g. that calling it is unnecessary since query auto-logins), so guidance is clear but not exhaustive.

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