Skip to main content
Glama

RSYM Context (Progressive Disclosure)

rsym_context

Retrieve compact, hash-verified symbolic context relevant to a question to avoid stuffing full history or documents into prompts; returns symbol references for on-demand expansion.

Instructions

Retrieve compact, hash-verified symbolic context relevant to a question instead of stuffing full history/documents into the prompt. Returns symbol_refs for on-demand expansion via rsym_expand.

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": {
      "query": "<query>"
    },
    "name": "rsym_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesCurrent user question or reasoning task.
max_tokensNoMaximum symbolic token budget to return.
include_constraintsNoPreserve explicit epistemic/scientific/safety CONSTRAINT lines verbatim.
auto_expand_if_under_tokensNoOptional two-hop mitigation: if exactly 1 record matches and its canonical text fits under this token count, return canonical evidence in 1 hop.

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 at all, the description carries the full disclosure burden and does a decent job: it reveals the return shape (symbol_refs for later expansion), that results are hash-verified, that a token budget bounds the payload, and that constraint lines can be preserved verbatim. It does not describe empty/no-match behavior, failure modes, or whether results are cached/stale, which keeps it from a 5.

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 tight sentences with no filler: the first states what is returned and why it beats the naive alternative, the second states the follow-on path. The value proposition 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?

With no output schema, the description does enough by naming symbol_refs and the expansion path, and it flags the constraint-preservation behaviour that matters for safety-critical use. It is slightly thin on what happens when nothing matches or how the auto-expand heuristic behaves, which prevents a 5.

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%, so all four parameters are already documented in the schema, and the description adds no syntax, format, or interaction detail beyond them. Baseline 3 applies since the schema is doing the heavy lifting.

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?

The description gives a specific verb ('Retrieve') and a well-defined resource ('compact, hash-verified symbolic context'), and it states its distinctive value proposition versus the obvious alternative of stuffing full history into the prompt. It also names the sibling rsym_expand as the follow-on for expansion, so an agent can distinguish the two tools without opening either 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?

Usage context is clear: use this when you need relevant context for a question without loading full history/documents, and use rsym_expand for on-demand expansion of returned symbol_refs. It stops short of explicit exclusions (e.g., when this returns nothing useful, or when rsym_store is the right call), so it falls just short of a 5.

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