Skip to main content
Glama

polarity_declare

Declare your future presence at a waypoint by specifying location, start/end times, and a time-window chip (e.g., next_30, tonight).

Instructions

Declare future presence at a waypoint. chip is the time-window enum: next_30, next_hour, tonight, tomorrow_night.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waypoint_idYes
nameYes
latNo
lonNo
starts_atYes
ends_atYes
chipYes

Implementation Reference

  • Registration of the 'polarity_declare' tool in the TOOLS array, defining its name, description, input schema, and handler.
    {
      name: "polarity_declare",
      description:
        "Declare future presence at a waypoint. `chip` is the time-window enum: next_30, next_hour, tonight, tomorrow_night.",
      inputSchema: z
        .object({
          waypoint_id: z.string().min(1).max(128),
          name: z.string().min(1).max(128),
          lat: z.number().optional(),
          lon: z.number().optional(),
          starts_at: z.string().datetime(),
          ends_at: z.string().datetime(),
          chip: ChipEnum,
        })
        .strict(),
      handler: async (input, client) =>
        client.declare(input as Parameters<CosmosClient["declare"]>[0]),
    },
  • Zod input schema for polarity_declare: waypoint_id, name, lat, lon, starts_at, ends_at, and chip enum.
    inputSchema: z
      .object({
        waypoint_id: z.string().min(1).max(128),
        name: z.string().min(1).max(128),
        lat: z.number().optional(),
        lon: z.number().optional(),
        starts_at: z.string().datetime(),
        ends_at: z.string().datetime(),
        chip: ChipEnum,
      })
      .strict(),
  • ChipEnum definition used by polarity_declare's schema (next_30, next_hour, tonight, tomorrow_night).
    const ChipEnum = z.enum(["next_30", "next_hour", "tonight", "tomorrow_night"]);
  • Handler function that delegates to client.declare(), passing parsed input as parameters to CosmosClient's declare method.
    handler: async (input, client) =>
      client.declare(input as Parameters<CosmosClient["declare"]>[0]),
  • CosmosClient.declare() method — makes the actual POST request to /api/polarity/declare with polarity_user_id and input body.
    declare(input: {
      waypoint_id: string;
      name: string;
      lat?: number;
      lon?: number;
      starts_at: string;
      ends_at: string;
      chip: "next_30" | "next_hour" | "tonight" | "tomorrow_night";
    }) {
      return this.request<unknown>({
        method: "POST",
        path: "/api/polarity/declare",
        body: { polarity_user_id: this.config.polarityUserId, ...input },
      });
    }
Behavior2/5

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

With no annotations provided, the description must cover behavior but only explains the chip enum. No mention of idempotency, side effects, permissions, or error conditions. This is insufficient for a tool with 7 parameters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise (two sentences) but at the cost of missing critical information. It is front-loaded with purpose, but the structure is acceptable given the brevity.

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

Completeness1/5

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

For a tool with 7 parameters, 5 required, no output schema, and no annotations, the description is severely incomplete. It does not cover return values, error cases, or what happens upon declaration, making it inadequate for an AI agent.

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?

Only the 'chip' parameter is explained (its enum values), despite that being already defined in the schema. The other 6 parameters (waypoint_id, name, lat, lon, starts_at, ends_at) lack any description, leaving their semantics unclear.

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 states the tool declares future presence at a waypoint, which is distinct from sibling tools like polarity_checkin or polarity_observe. However, the verb 'Declare' is somewhat vague.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives, nor are there any usage constraints or prerequisites. The description is a single sentence with no contextual cues.

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/teampolarity/cosmos-mcp'

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