Skip to main content
Glama

List contexts

list_contexts
Read-only

List all contexts you can access, with their root Page references.

Returns ids, roles and root links. Open the chosen root with read before company work unless a fresh plugin briefing already supplies it. Pass that context_id on company tools. Writes require it; reads may omit it when you belong to one context. Listing neither selects nor loads a company.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_contexts"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds non-obvious behavior the annotations cannot convey: what the payload contains (ids, roles, root links) and the critical caveat that listing has no side effect of selecting or loading a context. The read/write asymmetry around context_id is also disclosed, which materially changes how an agent plans subsequent calls.

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?

Front-loaded with the outcome, then guidance, then the caveat. Every sentence carries either scope, a next action, or a constraint; nothing restates the title or the annotation hints.

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?

An output schema exists, yet the description still briefly characterizes the return (ids, roles, root links) in one clause, and it covers the operational question an agent really has — what to do with a context once listed. For a zero-param discovery tool, nothing needed to call it correctly is missing.

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?

The tool takes zero parameters, so the baseline is 4. The description still adds value by explaining the downstream meaning of the field this tool surfaces (context_id must be passed to company tools, mandatory for writes), which is the semantic an agent actually needs after calling it.

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?

"List all contexts you can access, with their root Page references" states a specific verb (list) and resource (contexts) plus the scope filter (accessible to the caller) and what comes back. It does not name a sibling like list_trees to contrast against, so an agent must infer the boundary, but the resource noun is distinctive enough that misselection is unlikely.

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?

It gives explicit sequencing (open the chosen root with `read` before company work, unless a plugin briefing already supplies it), an explicit conditional (reads may omit context_id only when you belong to one context; writes always require it), and an explicit exclusion ("Listing neither selects nor loads a company"). That is when-to-use, when-not-to-assume, and the follow-up action all in one place.

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