Skip to main content
Glama

set_session_snapshot

Sets or retrieves the active snapshot ID for subsequent security analysis calls, controlling which scan results are used.

Instructions

    Set or retrieve the active snapshot id used for subsequent calls.

    Args:
        snapshot_id: Optional scan id/directory name. If omitted, returns current/ latest.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
snapshot_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

Without annotations, the description carries the full burden. It discloses that setting a snapshot affects subsequent calls, but it does not explain side effects, scope (e.g., session-level), or whether changes are persistent. More detail is needed.

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?

The description is relatively concise with a clear front-loaded purpose statement. The Args section adds some redundancy but is not overly verbose. Slight improvement could be made by integrating the parameter explanation into the main sentence.

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?

Given the tool's simplicity (one optional parameter, output schema exists), the description provides adequate context for basic use. However, it lacks explanation of how the snapshot ID impacts subsequent calls or the overall workflow, leaving some conceptual gaps.

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?

The description adds significant meaning beyond the schema, explaining that the parameter is optional and that omitting it retrieves the current/latest snapshot. It also hints at the format (scan ID/directory name), which compensates for the 0% schema coverage.

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?

The description clearly states the tool's function: setting or retrieving the active snapshot ID. It uses specific verbs and the resource is clear, though it could be more distinct from sibling tools like get_scan_summary. Overall, the purpose is well-defined.

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

Usage Guidelines3/5

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

The description implies usage for managing session state before subsequent calls, but it does not explicitly state when to use this tool versus alternatives or provide exclusions. The guidance is implied rather than direct.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyntrisec/cyntrisec-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server