Skip to main content
Glama

agentanalytics.sh: Analytics Your Agent Can Use

Set project context

set_project_context
DestructiveIdempotent

Use when replacing stored project context. Returns the saved context. The body cap is 512KB. Read existing context first and save only durable product truth: goals, activation events, glossary, and annotations. Inspect event names with properties first. Do not store PII or secrets.

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": {
      "project": "<project>"
    },
    "name": "set_project_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalsNoShort business goals, max 5
projectYesProject name or ID
glossaryNoEvent-name glossary entries, max 10
annotationsNoMajor date annotations, max 100
activation_eventsNoEvent names that define activation, max 8

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description reinforces this with replacement semantics, a 512KB body cap, the return value, and a PII/secrets prohibition. The remaining gap is whether omitted fields are cleared or preserved under replacement.

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 trigger, then the return value and cap, then content guidance — five short sentences with no filler. Every clause carries actionable information.

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

Completeness4/5

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

For a destructive, idempotent mutation with a 100%-documented schema and no output schema, the description covers trigger, constraints, safety, and return value. It would be complete if it clarified whether the call fully replaces context or merges into existing context.

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 100%, so per-parameter detail is already supplied by the schema. The description restates the four content categories (goals, activation events, glossary, annotations) and adds a little meaning about what belongs in them, but not enough to exceed the baseline.

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 — "replacing stored project context" — and notes it returns the saved context. The word "replacing" implicitly separates it from an append-style sibling, though no sibling is named explicitly.

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?

Gives a clear trigger ("Use when replacing stored project context") plus concrete preconditions: read existing context first, inspect event names with properties first, and store only durable product truth. It stops short of explicitly naming the alternative tool for incremental additions.

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