Skip to main content
Glama

Analyze

analyze

Run read-only Cypher queries against persistent memory in an isolated sandbox to answer analytical questions such as counts, grouping, or relationship traversal that recall cannot handle.

Instructions

Run a read-only Cypher query against persistent memory inside an isolated sandbox. Use only for analytical questions that recall and timeline cannot answer, such as counting, grouping, or traversing relationships they do not expose. Writes are refused.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cypher": "<cypher>"
    },
    "name": "analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
cypherYes
paramsNo

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?

With no annotations provided, the description carries the full burden and does meaningful work: it declares read-only semantics, states writes are refused, and notes execution happens in an isolated sandbox. It leaves gaps around query timeouts, result-size limits, and what the response looks like — notable for an arbitrary-query tool where expensive queries are a real risk.

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?

Three tight sentences, front-loaded with the core action, then the usage constraint, then the safety note. No filler or restated name/title content; each sentence adds distinct information.

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?

The tool executes arbitrary Cypher, yet the description reveals nothing about the memory graph's shape — node labels, relationship types, or available properties — which an agent needs to write a valid query. It also omits the return shape, and with no output schema there is nothing else to supply it. Adequate for routing but incomplete for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it largely does not. It implies the cypher parameter via 'Cypher query' but says nothing about the params object, which accepts arbitrary nested properties — an agent gets no hint that this is for passing query parameter values or placeholders.

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 — run a read-only Cypher query against persistent memory in an isolated sandbox — and explicitly distinguishes itself from the sibling tools recall and timeline. An agent can identify the operation and its scope 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 Guidelines5/5

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

Gives an explicit routing rule: use only for analytical questions that recall and timeline cannot answer, with concrete examples (counting, grouping, relationship traversal). The 'only for... that they cannot answer' phrasing also functions as a when-not clause for the sibling tools.

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