Skip to main content
Glama

Read Local State

srift_read_state
Read-onlyIdempotent

Reads raw .srift-state.json contents to return session and active transfer snapshots for one-shot polling without subscribing to SSE.

Instructions

Return the raw .srift-state.json contents (session + active transfers snapshot). Useful for one-shot polling without subscribing to SSE.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
sessionNoCurrent session state snapshot
lastUpdatedNoLast state write timestamp
activeTransfersNoLive transfers array

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new context: the return is the raw state file and it avoids an SSE subscription, which tells the agent about cost/latency tradeoffs. It doesn't mention staleness or behavior when the state file is absent, a minor gap.

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 with zero filler. The return value is front-loaded and the usage hint follows immediately, so an agent can act after one read.

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 zero-parameter read with rich annotations and an output schema, the description covers what is returned and why to pick it. It stops short of noting freshness guarantees or failure modes (e.g., missing state file), which would make it fully complete.

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 tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline applies. The description's mention of what the file contains partially substitutes for parameter meaning by framing the payload.

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?

States a specific verb (Return) and resource (raw .srift-state.json contents), and clarifies the payload as a 'session + active transfers snapshot'. It does not explicitly differentiate from plausible siblings like srift_session_status or srift_list_transfers, so the agent must infer that this is the raw-file variant.

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?

Provides a clear usage context — 'one-shot polling without subscribing to SSE' — which implies when to prefer it over a streaming subscription. However, it gives no exclusions or named alternatives for the overlapping status/transfer siblings, so sibling selection is left partly to inference.

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