Skip to main content
Glama

Session Register

session_register
Read-only

Registers an authenticated session (cookies/headers) to one host for later test phases. Two roles enable authorization checks; credentials are masked and stored in the workspace.

Instructions

Register an authenticated session for later phases to use.

cookies takes sid=abc; csrf=def. headers takes Authorization: Bearer xyz (semicolon or newline separated).

host is mandatory and is enforced: a session is only ever attached to that host or its subdomains. Sending an operator's cookie to a host it was not issued for is a credential leak, and guessing is how that happens.

role is free text — "admin", "user-a", "user-b". Register two accounts of differing privilege and authz_compare can test authorization properly; one account only tests that the application works.

Nothing here creates an account. Self-registration is a policy question: some programs invite it, others are silent, and silence is not permission. Read the program's rules, register by hand, then bring the session here.

Values are masked in every result, log and audit entry. The store lives in the engagement workspace, which is gitignored, mode 0600.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
nameYes
noteNo
roleNouser
cookiesNo
headersNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv2.1.0

TDQS

C2.7/5.0
Behavior1/5

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

The description directly contradicts the annotation 'readOnlyHint: true' by stating 'Register an authenticated session,' which implies a state-changing (write) operation. Registering a session involves creating or modifying session state, not a read-only operation. This is a clear annotation contradiction.

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

Conciseness2/5

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

The description is verbose and repetitive. It includes lengthy security warnings and redundant statements (e.g., 'host is mandatory' is stated twice in different ways). The main purpose is buried under extra prose, making it less concise and harder to scan quickly.

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?

The description does not mention the output schema or any return value. It does not specify success/failure behavior, side effects beyond registration, or how the session might be used later. Given that an output schema exists, the description is incomplete for an agent to fully understand the tool's behavior and expected results.

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?

The description provides some parameter explanations: it describes the format for cookies and headers, notes that host is mandatory and enforced, and clarifies that role is free text. However, it does not explain the purpose of 'name' or 'note,' and the schema itself has no property descriptions (coverage 0%). The description partially compensates but is not comprehensive.

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 clearly states the tool's purpose: 'Register an authenticated session for later phases to use.' The verb 'register' and resource 'session' are specific, and the phrasing distinguishes it from other session-related tools like session_list (which lists sessions).

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?

The description provides no explicit guidance on when to use this tool versus alternatives. It implies usage for later phases ('for later phases to use') but does not mention sibling tools like session_list or any conditions that would favor this tool over another. No when-not or alternative comparisons are included.

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/iamsecure1920/Cordon-AI'

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