Skip to main content
Glama

list_contam_bridge_entities

Retrieve names and IDs of available entities like zones, paths, and junctions from an active CONTAM bridge session for airflow and contaminant transport modeling.

Instructions

Use this when you want a concise list of the names and ids available inside an active ContamX bridge session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYes
categoryNo

Implementation Reference

  • Implementation of the 'list_contam_bridge_entities' MCP tool, which extracts and returns categorized entity lists (zones, paths, etc.) from an active ContamX bridge session metadata.
      "list_contam_bridge_entities",
      "Use this when you want a concise list of the names and ids available inside an active ContamX bridge session.",
      {
        sessionId: z.string(),
        category: z
          .enum([
            "zones",
            "paths",
            "junctions",
            "elements",
            "inputControlNodes",
            "outputControlNodes",
            "ahsSystems",
            "ambientTargets"
          ])
          .optional()
      },
      async ({ sessionId, category }) => {
        const session = bridgeSessions.get(sessionId);
        if (!session) {
          throw new Error(`Bridge session not found: ${sessionId}`);
        }
    
        const metadata = session.bridgeMetadata;
        const categories = {
          zones: metadata.zones ?? [],
          paths: metadata.paths ?? [],
          junctions: metadata.junctions ?? [],
          elements: metadata.elements ?? [],
          inputControlNodes: metadata.inputControlNodes ?? [],
          outputControlNodes: metadata.outputControlNodes ?? [],
          ahsSystems: metadata.ahsSystems ?? [],
          ambientTargets: metadata.ambientTargets ?? []
        };
    
        return toolResponse("Listed concise bridge entities.", {
          sessionId,
          category: category ?? "all",
          entities: category ? { [category]: categories[category] } : categories
        });
      }
    );
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It offers minimal behavioral context beyond 'concise list' and doesn't specify safety (read-only vs. destructive), error conditions for invalid sessionIds, or return format structure. The mention of 'active' session hints at state requirements but remains superficial.

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 single-sentence structure is appropriately concise and front-loaded with the usage intent. No words are wasted, though the density leaves room for parameter documentation that isn't present.

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?

Given the absence of an output schema, the description partially compensates by specifying the return contains 'names and ids.' However, with zero parameter descriptions in the schema and no annotations, the description leaves significant gaps in understanding the category filtering options and required session prerequisites.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fails to compensate adequately. While 'active ContamX bridge session' implicitly maps to the sessionId parameter, the category parameter (with 8 enum values) is completely undocumented in the description. The agent receives no guidance on what filtering by category entails or how to select valid values.

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?

The description clearly identifies the tool retrieves a 'concise list of names and ids' (specific resource) from 'an active ContamX bridge session' (scope). It effectively distinguishes this entity-listing function from sibling session management tools like get_contam_bridge_session by emphasizing the listing of available entities 'inside' a session.

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?

The description uses an explicit usage trigger ('Use this when you want...') which provides clear selection guidance. However, it lacks negative constraints (when not to use), prerequisites beyond the implied 'active' session status, or references to sibling alternatives for different use cases.

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/summer521521/contam_MCP'

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