Skip to main content
Glama

get_cache_ttl

Read-only

Read the cache TTL currently in effect for the running process, returning a single ttl_seconds value that represents all synchronized cache namespaces.

Instructions

Read the cache TTL currently in effect for this running process.

Returns: {"ttl_seconds": }. All five cache namespaces are always kept in sync by set_cache_ttl, so a single value represents all of them.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.3/5.0
Behavior4/5

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

Beyond readOnlyHint=true, it discloses the meaningful behavior that the TTL is process-wide and that all five cache namespaces share one synchronised value maintained by set_cache_ttl. That is real context an agent cannot get from annotations. It does not mention whether the TTL is a default or previously-set value, 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 blocks: the action first, then the return shape and the one caveat that matters. Nothing is wasted and the key constraint (one value covers all namespaces) is front-loaded in the return note.

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 the description need not re-explain return types at length, yet its one-line return note plus the shared-namespace caveat make the tool fully callable without further inference. Nothing an agent needs is missing for a parameterless read.

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 no parameters, so there is nothing to disambiguate and the baseline applies. The description correctly declines to invent parameter detail and instead spends its words on the process-wide value semantics.

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: 'Read the cache TTL currently in effect for this running process.' The scope word 'currently in effect for this running process' distinguishes it from the sibling setter, so an agent knows this is the read side of the TTL pair.

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?

Usage is only implied by the read/set symmetry with set_cache_ttl; the description never explicitly says 'call this before/after setting' or when to prefer it over any other tool. For a zero-parameter getter this is adequate, but there is no explicit when-to-use statement.

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

Deploy Server

Other Tools