Skip to main content
Glama

add-page-context

Attach a context note to a browser tab so list-pages can return it, helping you identify and track tabs across automation sessions.

Instructions

Set a context note for a tab. It is returned by list-pages.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pageId": "<pageId>",
      "context": "<context>"
    },
    "name": "add-page-context"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYes
contextYes
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose one useful behavior beyond the schema, namely that the stored value is read back by list-pages, which tells the agent the write is persistent and observable. However, it never states whether this overwrites or appends, what permissions or session state are needed, or any limits on note size, which matters for a mutation tool with no annotations.

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?

Two short sentences with zero filler, and the core action is front-loaded. The brevity edges toward under-specification rather than verbosity, so it is efficient but not maximally informative.

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

Completeness3/5

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

For a three-parameter mutation tool with no annotations and no output schema, the definition covers the basics of what is set and where it appears. It omits side-effect semantics, such as overwrite versus append, session behavior beyond the schema's default note, and any validation rules for the context string, leaving gaps an agent would want closed.

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?

Schema description coverage is only 33%, effectively just sessionId, so the description should compensate more than it does. It does clarify that pageId identifies a tab and that context is a note attached to that tab and later returned by list-pages, which is real added meaning. It still adds nothing about the context string's format, allowed length, or whether empty values clear the note.

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?

States a specific verb and resource: "Set a context note for a tab." The second sentence clarifies the resource further by tying it to what list-pages returns. It is clear enough to distinguish from siblings like get-page-info or list-pages, though the wording 'tab' versus the schema's 'pageId' introduces minor terminology drift.

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

Usage Guidelines3/5

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

Usage is only implied: you annotate a page so that list-pages surfaces the note. There is no explicit when-to-use versus when-not-to-use, no mention of prerequisites (such as whether a session or open page is required), and no statement about overwriting an existing note.

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