Skip to main content
Glama

Samuelz® Policy

Get connected workspace and access context

get_context
Read-onlyIdempotent

Read workspace identity or discover capabilities before an unfamiliar action or access diagnosis. view=identity returns tenantId/scopes and the current profile without catalog reads; do not supply names/domain/detail. view=discovery includes a timestamped capabilityCatalog and accepts those filters. view=roles returns minimal paged roleDirectory keys/titles through native Work read authority, without profile or catalog.

Without view or filters, Business defaults to discovery; other toolsets retain tenantId/scopes only. Any legacy catalog filter still requests their combined snapshot. profile.id is a workspace-bound opaque ID, not a native user ID.

names and domain intersect; names=[] retains context/profile with no capabilities. Business spans catalog domains: get_policy uses domain=policy.

Catalog availability gives missingScopes and access.nextAction after current access checks. Filtered emptiness does not prove absence; full detail never expands callability. Invalid authentication fails without tenant fallback; actions recheck authority. FULL also retains get_profile for legacy callers.

Input Schema

NameRequiredDescriptionDefault
viewNoidentity reads this workspace's current profile without loading a capability catalog; omit all catalog filters. discovery returns profile and catalog with the supplied filters. roles lists existing role keys/titles with current work:read and Workspace read authority; it returns neither profile nor catalog. Omit for Business discovery or the other profiles' legacy default.
limitNoroles only: page size, 1–100; omitted means 50.
namesNoExact capability names to inspect. Unknown or out-of-profile names add no capabilities. Omit for all matching tools; an empty array selects none.
detailNosummary (default) omits descriptions and schemas; full includes them, without making undisclosed tools callable.
domainNoFilter by catalog domain within this connection's published toolset; never changes workspace or expands access. Omit to include matching tools from all domains in this surface.
afterRoleKeyNoroles only: copy roleDirectory.pagination.nextRoleKey. Seek strictly after that existing workspace position; pages are live, not a frozen snapshot.

Output Schema

NameRequiredDescriptionDefault
scopesYes
profileNo
tenantIdYes
roleDirectoryNoExisting Work positions only. Keys/titles grant no allocation or management authority; no holders or policy contents are returned.
capabilityCatalogNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the read-only, idempotent, non-destructive annotations, the description discloses authentication behavior (invalid auth fails without tenant fallback), authority rechecks, missingScopes and access.nextAction reporting, and that filtered emptiness does not prove absence. It also clarifies that full detail never expands callability, which is important behavioral context for an access-diagnosis tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose and organized around view modes, but it is very dense and packed with compressed clauses and legacy caveats. It is appropriately sized for a complex multi-mode tool, yet several sentences are hard to parse and could be tightened.

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?

Given the complexity of three view modes, six parameters, an output schema, and rich annotations, the description covers defaults, filter interactions, authentication behavior, access-check semantics, role pagination, and legacy compatibility. An agent has enough context to invoke the correct mode and interpret caveats without needing the output schema for return values.

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?

Schema description coverage is 100%, so the baseline is 3; the description adds meaning by explaining that names and domain intersect, that names=[] retains context/profile with no capabilities, and that profile.id is an opaque workspace-bound ID. Much of the view and filter behavior is already in the schema, but the intersection and empty-array semantics go beyond it.

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 states a specific verb and resource and distinguishes three view modes (identity, discovery, roles) by what each returns. It also explicitly contrasts legacy get_profile retention and get_policy's policy domain, so an agent can tell what this tool is for before 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 Guidelines4/5

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

It gives a clear usage context ('before an unfamiliar action or access diagnosis') and specifies mode selection constraints, including which filters each view accepts and default behavior. It does not explicitly compare against all sibling alternatives such as list_capabilities, but the main usage branches are covered.

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.

Resources