Skip to main content
Glama

Space

space

Query OfficeRnD coworking space data including resources, bookings, assignments, and amenities. List, retrieve, or check availability of meeting rooms, desks, floors, and related entities.

Instructions

Query space/resource data in OfficeRnD.

action=list: List entities with optional filters and pagination (max 50 per page). action=get: Get a single entity by ID. action=status: Check current availability of a resource (requires id).

Entity-specific filters when listing:

  • resources: type (meeting_room|team_room|desk|hotdesk|desk_tr|desk_na), name, location

  • bookings: resourceId, member, company, location, startAfter, startBefore (ISO dates)

  • booking_occurrences: seriesStart (REQUIRED), seriesEnd (REQUIRED), resourceId, member, location

  • floors: location, name

  • assignments: resourceId, membershipId (at least one recommended)

  • amenities: title

  • passes: member, company

  • credits: member, company

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform (status only for resources)
entityYesEntity type to query
idNoEntity ID (required for action=get and action=status)
typeNoResource type filter (resources only)
resourceIdNoFilter by resource ID (bookings, booking_occurrences, assignments)
membershipIdNoFilter by membership ID (assignments)
memberNoFilter by member ID (bookings, booking_occurrences, passes, credits)
companyNoFilter by company ID (bookings, passes, credits)
locationNoFilter by location ID (resources, bookings, booking_occurrences, floors)
nameNoFilter by exact name (resources, floors)
titleNoFilter by title (amenities)
startAfterNoBookings starting on/after this ISO date
startBeforeNoBookings starting before this ISO date
seriesStartNoStart of date range for booking occurrences (REQUIRED for booking_occurrences)
seriesEndNoEnd of date range for booking occurrences (REQUIRED for booking_occurrences)
cursorNextNoCursor token for next page of results
limitNoResults per page (max 50, default 50)

Implementation Reference

  • The handler function for the "space" tool, which routes actions (list, get, status) based on the entity type.
      async ({
        action,
        entity,
        id,
        type,
        resourceId,
        membershipId,
        member,
        company,
        location,
        name,
        title,
        startAfter,
        startBefore,
        seriesStart,
        seriesEnd,
        cursorNext,
        limit,
      }) => {
        try {
          // action=status: resource availability
          if (action === "status") {
            if (!id) {
              return {
                content: [{ type: "text" as const, text: "id is required for action=status." }],
                isError: true,
              };
            }
            const s = await apiGet<ResourceStatus>(`/resources/${id}/status`);
            return { content: [{ type: "text" as const, text: formatResourceStatus(s) }] };
          }
    
          const cfg = ENTITIES[entity];
    
          // action=get
          if (action === "get") {
            if (!cfg.getPath) {
              return {
                content: [{ type: "text" as const, text: `Entity "${entity}" does not support get by ID.` }],
                isError: true,
              };
            }
            if (!id) {
              return {
                content: [{ type: "text" as const, text: "id is required for action=get." }],
                isError: true,
              };
            }
            const item = await apiGet<Record<string, unknown>>(`${cfg.getPath}/${id}`);
            return { content: [{ type: "text" as const, text: cfg.formatter(item) }] };
          }
    
          // action=list
          const params: Record<string, string> = {};
          if (cursorNext) params["$cursorNext"] = cursorNext;
          if (limit) params["$limit"] = limit;
    
          switch (entity) {
            case "resources":
              if (type) params["type"] = type;
              if (name) params["name"] = name;
              if (location) params["location"] = location;
              break;
            case "bookings":
              if (resourceId) params["resource"] = resourceId;
              if (member) params["member"] = member;
              if (company) params["company"] = company;
              if (location) params["location"] = location;
              if (startAfter) params["start.dateTime[$gte]"] = startAfter;
              if (startBefore) params["start.dateTime[$lte]"] = startBefore;
              break;
            case "booking_occurrences":
              if (seriesStart) params["seriesStart"] = seriesStart;
              if (seriesEnd) params["seriesEnd"] = seriesEnd;
              if (resourceId) params["resource"] = resourceId;
              if (member) params["member"] = member;
              if (location) params["location"] = location;
              break;
            case "floors":
              if (location) params["location"] = location;
              if (name) params["name"] = name;
              break;
            case "assignments":
              if (resourceId) params["resource"] = resourceId;
              if (membershipId) params["membership"] = membershipId;
              break;
            case "amenities":
              if (title) params["title"] = title;
              break;
            case "passes":
            case "credits":
              if (member) params["member"] = member;
              if (company) params["company"] = company;
              break;
          }
    
          const data = await apiGet<PaginatedResponse<Record<string, unknown>>>(cfg.listPath, params);
    
          if (data.results.length === 0) {
            return { content: [{ type: "text" as const, text: `No ${cfg.label} found.` }] };
          }
    
          const text = data.results.map(cfg.formatter).join("\n---\n");
          let result = `Found ${data.results.length} ${cfg.label} (range ${data.rangeStart}-${data.rangeEnd}):\n\n${text}`;
          if (data.cursorNext) {
            result += `\n\n[More results available — use cursorNext: "${data.cursorNext}"]`;
          }
    
          return { content: [{ type: "text" as const, text: result }] };
        } catch (error) {
          return {
            content: [
              {
                type: "text" as const,
                text: `Error querying ${entity}: ${error instanceof Error ? error.message : String(error)}`,
              },
            ],
            isError: true,
          };
        }
      }
    );
  • Schema definition for the "space" tool input parameters.
        {
          title: "Space",
          description: `Query space/resource data in OfficeRnD.
    
    action=list: List entities with optional filters and pagination (max 50 per page).
    action=get: Get a single entity by ID.
    action=status: Check current availability of a resource (requires id).
    
    Entity-specific filters when listing:
    - resources: type (meeting_room|team_room|desk|hotdesk|desk_tr|desk_na), name, location
    - bookings: resourceId, member, company, location, startAfter, startBefore (ISO dates)
    - booking_occurrences: seriesStart (REQUIRED), seriesEnd (REQUIRED), resourceId, member, location
    - floors: location, name
    - assignments: resourceId, membershipId (at least one recommended)
    - amenities: title
    - passes: member, company
    - credits: member, company`,
          inputSchema: {
            action: z
              .enum(["list", "get", "status"])
              .describe("Action to perform (status only for resources)"),
            entity: z
              .enum([
                "resources",
                "bookings",
                "booking_occurrences",
                "floors",
                "assignments",
                "amenities",
                "passes",
                "credits",
              ])
              .describe("Entity type to query"),
            id: z
              .string()
              .optional()
              .describe("Entity ID (required for action=get and action=status)"),
            type: z
              .string()
              .optional()
              .describe("Resource type filter (resources only)"),
            resourceId: z
              .string()
              .optional()
              .describe("Filter by resource ID (bookings, booking_occurrences, assignments)"),
            membershipId: z
              .string()
              .optional()
              .describe("Filter by membership ID (assignments)"),
            member: z
              .string()
              .optional()
              .describe("Filter by member ID (bookings, booking_occurrences, passes, credits)"),
            company: z
              .string()
              .optional()
              .describe("Filter by company ID (bookings, passes, credits)"),
            location: z
              .string()
              .optional()
              .describe("Filter by location ID (resources, bookings, booking_occurrences, floors)"),
            name: z
              .string()
              .optional()
              .describe("Filter by exact name (resources, floors)"),
            title: z
              .string()
              .optional()
              .describe("Filter by title (amenities)"),
            startAfter: z
              .string()
              .optional()
              .describe("Bookings starting on/after this ISO date"),
            startBefore: z
              .string()
              .optional()
              .describe("Bookings starting before this ISO date"),
            seriesStart: z
              .string()
              .optional()
              .describe("Start of date range for booking occurrences (REQUIRED for booking_occurrences)"),
            seriesEnd: z
              .string()
              .optional()
              .describe("End of date range for booking occurrences (REQUIRED for booking_occurrences)"),
            cursorNext: z
              .string()
              .optional()
              .describe("Cursor token for next page of results"),
            limit: z
              .string()
              .optional()
              .describe("Results per page (max 50, default 50)"),
          },
        },
  • Tool registration function for "space".
    export function registerSpaceTool(server: McpServer): void {
      server.registerTool(
        "space",
        {
          title: "Space",
          description: `Query space/resource data in OfficeRnD.
    
    action=list: List entities with optional filters and pagination (max 50 per page).
    action=get: Get a single entity by ID.
    action=status: Check current availability of a resource (requires id).
    
    Entity-specific filters when listing:
    - resources: type (meeting_room|team_room|desk|hotdesk|desk_tr|desk_na), name, location
    - bookings: resourceId, member, company, location, startAfter, startBefore (ISO dates)
    - booking_occurrences: seriesStart (REQUIRED), seriesEnd (REQUIRED), resourceId, member, location
    - floors: location, name
    - assignments: resourceId, membershipId (at least one recommended)
    - amenities: title
    - passes: member, company
    - credits: member, company`,
          inputSchema: {
            action: z
              .enum(["list", "get", "status"])
              .describe("Action to perform (status only for resources)"),
            entity: z
              .enum([
                "resources",
                "bookings",
                "booking_occurrences",
                "floors",
                "assignments",
                "amenities",
                "passes",
                "credits",
              ])
              .describe("Entity type to query"),
            id: z
              .string()
              .optional()
              .describe("Entity ID (required for action=get and action=status)"),
            type: z
              .string()
              .optional()
              .describe("Resource type filter (resources only)"),
            resourceId: z
              .string()
              .optional()
              .describe("Filter by resource ID (bookings, booking_occurrences, assignments)"),
            membershipId: z
              .string()
              .optional()
              .describe("Filter by membership ID (assignments)"),
            member: z
              .string()
              .optional()
              .describe("Filter by member ID (bookings, booking_occurrences, passes, credits)"),
            company: z
              .string()
              .optional()
              .describe("Filter by company ID (bookings, passes, credits)"),
            location: z
              .string()
              .optional()
              .describe("Filter by location ID (resources, bookings, booking_occurrences, floors)"),
            name: z
              .string()
              .optional()
              .describe("Filter by exact name (resources, floors)"),
            title: z
              .string()
              .optional()
              .describe("Filter by title (amenities)"),
            startAfter: z
              .string()
              .optional()
              .describe("Bookings starting on/after this ISO date"),
            startBefore: z
              .string()
              .optional()
              .describe("Bookings starting before this ISO date"),
            seriesStart: z
              .string()
              .optional()
              .describe("Start of date range for booking occurrences (REQUIRED for booking_occurrences)"),
            seriesEnd: z
              .string()
              .optional()
              .describe("End of date range for booking occurrences (REQUIRED for booking_occurrences)"),
            cursorNext: z
              .string()
              .optional()
              .describe("Cursor token for next page of results"),
            limit: z
              .string()
              .optional()
              .describe("Results per page (max 50, default 50)"),
          },
        },
        async ({
          action,
          entity,
          id,
          type,
          resourceId,
          membershipId,
          member,
          company,
          location,
          name,
          title,
          startAfter,
          startBefore,
          seriesStart,
          seriesEnd,
          cursorNext,
          limit,
        }) => {
          try {
            // action=status: resource availability
            if (action === "status") {
              if (!id) {
                return {
                  content: [{ type: "text" as const, text: "id is required for action=status." }],
                  isError: true,
                };
              }
              const s = await apiGet<ResourceStatus>(`/resources/${id}/status`);
              return { content: [{ type: "text" as const, text: formatResourceStatus(s) }] };
            }
    
            const cfg = ENTITIES[entity];
    
            // action=get
            if (action === "get") {
              if (!cfg.getPath) {
                return {
                  content: [{ type: "text" as const, text: `Entity "${entity}" does not support get by ID.` }],
                  isError: true,
                };
              }
              if (!id) {
                return {
                  content: [{ type: "text" as const, text: "id is required for action=get." }],
                  isError: true,
                };
              }
              const item = await apiGet<Record<string, unknown>>(`${cfg.getPath}/${id}`);
              return { content: [{ type: "text" as const, text: cfg.formatter(item) }] };
            }
    
            // action=list
            const params: Record<string, string> = {};
            if (cursorNext) params["$cursorNext"] = cursorNext;
            if (limit) params["$limit"] = limit;
    
            switch (entity) {
              case "resources":
                if (type) params["type"] = type;
                if (name) params["name"] = name;
                if (location) params["location"] = location;
                break;
              case "bookings":
                if (resourceId) params["resource"] = resourceId;
                if (member) params["member"] = member;
                if (company) params["company"] = company;
                if (location) params["location"] = location;
                if (startAfter) params["start.dateTime[$gte]"] = startAfter;
                if (startBefore) params["start.dateTime[$lte]"] = startBefore;
                break;
              case "booking_occurrences":
                if (seriesStart) params["seriesStart"] = seriesStart;
                if (seriesEnd) params["seriesEnd"] = seriesEnd;
                if (resourceId) params["resource"] = resourceId;
                if (member) params["member"] = member;
                if (location) params["location"] = location;
                break;
              case "floors":
                if (location) params["location"] = location;
                if (name) params["name"] = name;
                break;
              case "assignments":
                if (resourceId) params["resource"] = resourceId;
                if (membershipId) params["membership"] = membershipId;
                break;
              case "amenities":
                if (title) params["title"] = title;
                break;
              case "passes":
              case "credits":
                if (member) params["member"] = member;
                if (company) params["company"] = company;
                break;
            }
    
            const data = await apiGet<PaginatedResponse<Record<string, unknown>>>(cfg.listPath, params);
    
            if (data.results.length === 0) {
              return { content: [{ type: "text" as const, text: `No ${cfg.label} found.` }] };
            }
    
            const text = data.results.map(cfg.formatter).join("\n---\n");
            let result = `Found ${data.results.length} ${cfg.label} (range ${data.rangeStart}-${data.rangeEnd}):\n\n${text}`;
            if (data.cursorNext) {
              result += `\n\n[More results available — use cursorNext: "${data.cursorNext}"]`;
            }
    
            return { content: [{ type: "text" as const, text: result }] };
          } catch (error) {
            return {
              content: [
                {
                  type: "text" as const,
                  text: `Error querying ${entity}: ${error instanceof Error ? error.message : String(error)}`,
                },
              ],
              isError: true,
            };
          }
        }
      );
    }
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses pagination limits (max 50 per page) and required fields for specific entities (seriesStart/End for booking_occurrences), but omits general behavioral traits like read-only safety, rate limits, or output format details.

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 well-structured with clear sections for actions and entity-specific filters. The entity filter list is lengthy but necessary given the 8 entity types supported; information is front-loaded with the primary purpose stated immediately.

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?

Given the high complexity (17 parameters, 8 entity types, 3 actions) and lack of output schema or annotations, the description comprehensively covers the input interface, action semantics, and entity-filter mappings. It adequately compensates for the missing output schema by detailing the query capabilities.

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?

While the schema has 100% description coverage, the description adds crucial enum values for the 'type' parameter (meeting_room|team_room|desk|etc.) that the schema lists only as a generic string. It also reorganizes parameters by entity type, making the polymorphic filtering logic clearer than the flat schema structure.

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 opens with 'Query space/resource data in OfficeRnD,' providing a specific verb (Query), resource (space/resource data), and domain (OfficeRnD). It clearly distinguishes from siblings (billing, collaboration, community, settings) by focusing on physical workspace entities like resources, bookings, and floors.

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 clearly delineates the three actions (list, get, status) and their specific use cases, including constraints like 'status only for resources' and 'requires id.' However, it lacks explicit 'when not to use' guidance relative to sibling tools, though the domain separation is implicit.

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/MrBoor/officernd-mcp'

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