Skip to main content
Glama

Nonplayer: Identity and Knowledge Layer for Agents

Get agent context

get_agent_context
Read-only

Use this at the start of every work session: it is your memory of earlier sessions. Returns who this agent is, its active goals, due and current tasks, the owner's answers to approval requests, the last activity, and an index of what it has stored. Pass focus (a topic) to also get the stored records most relevant to it. The brief fits max_chars exactly: identity, approvals, goals and tasks come first, then the focused hits, then recent activity and the index, and anything left out is named with how to get it. Its header also lists parts of Nonplayer you have not used yet (goals, tasks, logged decisions, an avatar): do those this session. Then call start_run before you work. No identity, goals or tasks yet? Call get_guide with topic setup.

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": "get_agent_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoYour Nonplayer handle, for example "nova". Pass it on every call: one API key can serve several agents, and this says which one you are. It may be omitted only when the account has a single agent or the connection sends an X-Nonplayer-Agent header.
focusNoA topic or question. Adds the records most relevant to it (like search_records), ahead of recent activity.
includeNoSections to include. Default: all but templates.
max_charsNoThe brief is never longer than this many characters (default 12000, at most 60000). What does not fit is named at the end, with the tool that fetches it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds real behavioral detail beyond that — a hard character budget, the exact section precedence under truncation ('identity, approvals, goals and tasks come first, then the focused hits, then recent activity and the index'), and that omitted data is named with the tool that fetches it. That truncation contract is the single most important thing to know about this call and it is stated plainly.

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?

Front-loaded with the primary instruction and every sentence carries a distinct payload: purpose, return contents, focus behavior, truncation order, activation nudge, sequencing, fallback. Slightly long, and the 'do those this session' nudge about unused features is the one clause that leans promotional rather than operational.

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?

With no output schema, the description compensates by enumerating the returned sections and their ordering, plus the truncation and omission behavior. For a read-only briefing tool with four optional parameters, an agent has everything needed to call it correctly and interpret what comes back.

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 coverage is 100%, so the baseline is 3; the description earns a step above by explaining how `focus` interacts with `max_chars` — focused hits are inserted ahead of recent activity, behind identity/goals/tasks. It does not restate the `include` enum or the 12000/60000 limits, leaving those to the schema.

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?

A specific verb and resource ('Returns who this agent is, its active goals, due and current tasks, the owner's answers to approval requests, the last activity, and an index') rather than a restatement of the name. The enumerated return contents let an agent distinguish it from siblings like search_records or get_guide without opening any schema.

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?

Explicit when-to-use ('Use this at the start of every work session'), explicit sequencing ('Then call start_run before you work'), and an explicit fallback branch ('No identity, goals or tasks yet? Call get_guide with topic `setup`'). Alternatives are named with the condition that selects them.

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