Skip to main content
Glama

List Sites

tacit_list_sites
Read-onlyIdempotent

Discover available building sites to access building data, equipment, and sensor information through the Tacit MCP server.

Instructions

List all building sites the current API key has access to.

Each site represents a physical location (building, campus, warehouse) managed in Tacit. Sites are the top-level container. You need a site ID to query buildings, equipment, points, zones, and systems.

Returns: Array of sites with id, name, address, city, country, timezone.

Use this tool first to discover available sites before querying building data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that fetches sites from the API and formats the output for the "tacit_list_sites" tool.
    async () => {
      try {
        const sites = await restGet<Site[]>("/api/sites/");
        if (!sites.length) {
          return {
            content: [
              {
                type: "text" as const,
                text: "No sites found. Your API key may not have access to any sites.",
              },
            ],
          };
        }
        const lines = [`# Sites (${sites.length})`, ""];
        for (const s of sites) {
          lines.push(`## ${s.name}`);
          lines.push(`- **ID**: \`${s.id}\``);
          lines.push(`- **Address**: ${s.address || "N/A"}`);
          lines.push(
            `- **Location**: ${[s.city, s.country].filter(Boolean).join(", ") || "N/A"}`,
          );
          lines.push(`- **Timezone**: ${s.timezone}`);
          lines.push("");
        }
        return { content: [{ type: "text" as const, text: lines.join("\n") }] };
      } catch (error) {
        return {
          content: [
            {
              type: "text" as const,
              text: `Error: ${error instanceof Error ? error.message : String(error)}`,
            },
          ],
          isError: true,
        };
      }
    },
  • Registration of the "tacit_list_sites" tool within the MCP server.
      server.registerTool(
        "tacit_list_sites",
        {
          title: "List Sites",
          description: `List all building sites the current API key has access to.
    
    Each site represents a physical location (building, campus, warehouse) managed in Tacit.
    Sites are the top-level container. You need a site ID to query buildings, equipment, points, zones, and systems.
    
    Returns: Array of sites with id, name, address, city, country, timezone.
    
    Use this tool first to discover available sites before querying building data.`,
          inputSchema: {},
          annotations: {
            readOnlyHint: true,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: true,
          },
        },
        async () => {
          try {
            const sites = await restGet<Site[]>("/api/sites/");
            if (!sites.length) {
              return {
                content: [
                  {
                    type: "text" as const,
                    text: "No sites found. Your API key may not have access to any sites.",
                  },
                ],
              };
            }
            const lines = [`# Sites (${sites.length})`, ""];
            for (const s of sites) {
              lines.push(`## ${s.name}`);
              lines.push(`- **ID**: \`${s.id}\``);
              lines.push(`- **Address**: ${s.address || "N/A"}`);
              lines.push(
                `- **Location**: ${[s.city, s.country].filter(Boolean).join(", ") || "N/A"}`,
              );
              lines.push(`- **Timezone**: ${s.timezone}`);
              lines.push("");
            }
            return { content: [{ type: "text" as const, text: lines.join("\n") }] };
          } catch (error) {
            return {
              content: [
                {
                  type: "text" as const,
                  text: `Error: ${error instanceof Error ? error.message : String(error)}`,
                },
              ],
              isError: true,
            };
          }
        },
      );
Behavior4/5

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

Annotations already cover read-only, open-world, idempotent, and non-destructive traits, so the bar is lower. The description adds valuable context by explaining that sites are 'top-level containers' needed for querying other data (buildings, equipment, etc.), which aids in understanding dependencies and workflow, though it doesn't detail rate limits or auth specifics beyond API key access.

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 front-loaded with the core purpose, followed by explanatory context and usage guidance in four concise sentences. Each sentence adds value: defining sites, their role, return format, and when to use the tool, with no wasted words.

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

Completeness5/5

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

Given the tool's simplicity (0 parameters, no output schema) and rich annotations, the description is complete. It explains what the tool does, its importance in the workflow, and the return format, providing all necessary context for an agent to use it effectively without over-explaining.

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?

With 0 parameters and 100% schema description coverage, the baseline is high. The description adds no parameter-specific information (as there are none), but it clarifies the tool's scope ('all building sites the current API key has access to'), which implicitly defines the input context, earning a score above the minimum.

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 action ('List all building sites') and resource ('sites'), distinguishing it from siblings like tacit_list_files (files) and tacit_timeseries (timeseries data). It specifies that sites are 'top-level containers' for physical locations, making the purpose specific and well-defined.

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

Usage Guidelines5/5

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

The description explicitly provides usage guidance: 'Use this tool first to discover available sites before querying building data.' This indicates when to use it (as an initial discovery step) and implies alternatives (other tools for building data), offering clear context for selection.

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/ucl-sbde/tacit-mcp'

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