Skip to main content
Glama

mem_scope_guard

Retrieve project-specific scope guardrails to keep AI agents focused, optionally limiting to a persisted session.

Instructions

Return compact scope guardrails for one project, optionally scoped to one persisted session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_keyYes
session_idNo
Behavior2/5

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

With no annotations provided, the description carries the full burden. It implies a read operation ('return') but does not disclose side effects, authentication needs, error behavior, or what happens if the project does not exist. Minimal behavioral context.

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?

Single sentence of 13 words, front-loaded action. No redundancy. However, slight under-specification given the lack of parameter details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Simple tool with 2 params, no output schema, no annotations. Description fails to define 'compact scope guardrails' or what the return value looks like. Lacks prerequisites or usage context, leaving the agent with significant ambiguity.

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. It mentions 'optionally scoped to one persisted session' for session_id but does not explain project_key at all. No format, rules, or constraints beyond what the schema provides (type, required).

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?

The description clearly states the action ('return'), the resource ('compact scope guardrails'), and the scope ('for one project, optionally scoped to one persisted session'). It distinguishes from siblings like mem_scope_resolve by using 'guardrails' implying a different output, but does not explicitly differentiate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives (e.g., mem_scope_resolve). No mention of prerequisites, context, or scenarios where this is preferred. The description only states what it does, not when to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MarceloCaporale/codex-agent-mem'

If you have feedback or need assistance with the MCP directory API, please join our Discord server