Skip to main content
Glama

pathrule_get_context

Read-onlyIdempotent

Read the memories, rules and skills saved for a workspace-relative path and its parent folders (full text, at most 20 per kind and 1 MiB), with a title index of the rest of the workspace. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo/
workspace_idNoOptional; defaults to the OAuth grant workspace. Cannot change its binding.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, non-openWorld, and the description correctly echoes 'Read-only'. It adds genuinely useful behavior beyond annotations: the caps (at most 20 per kind and 1 MiB), that parent folders are included, and that the remainder of the workspace comes back only as a title index.

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?

One dense sentence, front-loaded with the verb and resources, then scope, then limits, then a safety tag. No filler, though the parenthetical limits make it slightly crowded.

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 usefully characterizes the return payload (full text plus a title index of the rest). Truncation/pagination behavior beyond the stated caps and what the title index allows are not elaborated, but nothing critical for correct invocation is missing.

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 coverage is 50%: workspace_id is documented in-schema, but path has no schema description. The description supplies the key missing semantics for path ('workspace-relative path and its parent folders'), which is real added value, but the default '/' behavior and the 2048 max length are left to the schema alone.

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 concrete verb (read) plus the three resource kinds (memories, rules, skills) and the scoping rule (workspace-relative path and its parent folders). It is clear what the tool returns, though it does not name a sibling to distinguish against — the differentiation from pathrule_read_* and pathrule_list_* is left implicit.

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 by describing the aggregate, path-hierarchical scope, but never states when to choose this over pathrule_list_memories or pathrule_read_rule. The agent must infer that this is the 'get everything relevant to a path' entry point.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.