Skip to main content
Glama
l4b4r4b4b4

bim2sim-mcp

by l4b4r4b4b4

enable_test_context

Toggle test context mode to add mock user, session, and metadata to traces for Langfuse filtering and aggregation tests without real authentication.

Instructions

Enable or disable test context mode for Langfuse attribution demos.

When enabled, all traces will include user_id, session_id, and metadata from the MockContext. This allows testing Langfuse filtering and aggregation without a real FastMCP authentication setup.

Args: enabled: Whether to enable test context mode (default: True).

Returns: Status dict with current test mode state and context values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
enabledNo

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
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden and does tell the agent what happens: when enabled, all traces include user_id, session_id, and metadata from MockContext, and a status dict is returned. It does not state whether disabling restores normal trace behavior or whether state persists across calls, but the primary side effect is disclosed.

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?

The description is short and front-loaded with the core purpose, followed by the behavioral effect, a one-line parameter doc, and a return note. Every sentence earns its place; no filler or repetition.

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 simple one-boolean tool, the description covers purpose, effect, parameter, and return value, and an output schema exists. The main missing context is the relationship to set_test_context and reset_test_context, which could affect tool selection.

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 must explain the parameter. The Args section defines enabled as the toggle ('Whether to enable test context mode') and notes the default True, which is enough for this single boolean parameter.

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?

Description uses a specific verb ('Enable or disable'), names the resource ('test context mode for Langfuse attribution demos'), and explains the effect on traces. It is clear, but it does not differentiate this tool from sibling tools set_test_context and reset_test_context, which appear to cover similar functionality.

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 gives a clear use case: testing Langfuse filtering and aggregation without a real FastMCP authentication setup. It does not explicitly mention alternatives or when not to use the tool, so it stops short of a 5.

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