Skip to main content
Glama
l4b4r4b4b4

bim2sim-mcp

by l4b4r4b4b4

set_test_context

Set user, session, and agent identifiers to test Langfuse trace filtering by different contexts in the dashboard.

Instructions

Set test context values for Langfuse attribution demos.

Changes here affect what user_id, session_id, and metadata are sent to Langfuse traces. Use this to test filtering by different users or sessions in the Langfuse dashboard.

Args: user_id: User identity (e.g., "alice", "bob"). org_id: Organization identity (e.g., "acme", "globex"). session_id: Session identifier for grouping traces. agent_id: Agent identity (e.g., "claude", "gpt4").

Returns: Updated context state and example of Langfuse attributes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
org_idNo
user_idNo
agent_idNo
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. It discloses that it affects user_id, session_id, and metadata sent to traces, and states the return includes updated context state. It does not detail side effects like persistence or system impact, but for a test utility this is acceptable. The description adds some context beyond the schema but is not exhaustive.

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?

The description is efficiently structured with a purpose statement, effect/use case, parameter list, and return note. It is front-loaded with the core purpose and avoids fluff. The Args/Returns sections are formatted clearly, though the Returns section could be redundant if the output schema already covers it, but it is acceptable.

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 test utility with 4 optional parameters and an output schema, the description covers the key aspects: what it does, when to use it, what parameters mean, and what it returns. It does not explicitly mention that all parameters default to null, but the schema conveys that. Overall, it provides enough for an agent to invoke it correctly.

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 description coverage is 0%, so the description compensates by clearly explaining each parameter. It provides examples for each (e.g., 'alice', 'bob') and their roles. This goes beyond the schema's name/type pairs and gives meaningful context for correct usage.

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 verb 'Set' and resource 'test context values', and immediately links it to Langfuse attribution demos. It explains the effect on traces and the use case for testing dashboard filters, distinguishing it from sibling tools like enable_test_context and reset_test_context.

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?

The description provides a clear context for use: 'Use this to test filtering by different users or sessions in the Langfuse dashboard.' It implies when to use (when needing to change context) but does not explicitly mention when not to use or compare with alternatives. It gives adequate guidance without exclusions.

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