Skip to main content
Glama

Campaign contexts

onelence_list_campaign_contexts
Read-onlyIdempotent

Campaigns the team described on a site: objective, promise, audience, landing page and entered spend. Needs a plan with campaign context.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "onelence_list_campaign_contexts"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite domain (e.g. example.com) or site id. Defaults to the workspace's newest active site.
limitNoItems to return (default 25).
cursorNonext_cursor from the previous call, for more.
source_keyNo

Output Schema

NameRequiredDescriptionDefault
dataYes
moreNoHow to fetch the next page, when has_more.
noteYes
objectYes
has_moreYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "data": {
      +      "items": {
      +        "properties": {
      +          "audience": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "context_url": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "demand_job": {
      +            "enum": [
      +              "unknown",
      +              "create_demand",
      +              "reframe_demand",
      +              "capture_demand",
      +              "convert_demand",
      +              "retain_demand"
      +            ],
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "landing_page_url": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "note": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "object": {
      +            "const": "campaign_context",
      +            "type": "string"
      +          },
      +          "objective": {
      +            "enum": [
      +              "unknown",
      +              "awareness",
      +              "traffic",
      +              "engagement",
      +              "leads",
      +              "conversions",
      +              "sales",
      +              "retargeting",
      +              "trust"
      +            ],
      +            "type": "string"
      +          },
      +          "primary_cta": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "promise": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "reported_spend": {
      +            "anyOf": [
      +              {
      +                "properties": {
      +                  "amount": {
      +                    "type": "number"
      +                  },
      +                  "currency": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "period_end": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "period_start": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "amount",
      +                  "currency",
      +                  "period_start",
      +                  "period_end"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "source_key": {
      +            "type": "string"
      +          },
      +          "source_name": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "status": {
      +            "enum": [
      +              "unknown",
      +              "running",
      +              "paused",
      +              "ended",
      +              "draft"
      +            ],
      +            "type": "string"
      +          },
      +          "type": {
      +            "enum": [
      +              "unknown",
      +              "ad_campaign",
      +              "organic_post",
      +              "referral_placement",
      +              "email_send",
      +              "community_post",
      +              "partner_placement",
      +              "other"
      +            ],
      +            "type": "string"
      +          },
      +          "updated_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "object",
      +          "id",
      +          "source_key",
      +          "source_name",
      +          "name",
      +          "type",
      +          "objective",
      +          "demand_job",
      +          "status",
      +          "promise",
      +          "audience",
      +          "primary_cta",
      +          "landing_page_url",
      +          "context_url",
      +          "reported_spend",
      +          "note",
      +          "updated_at"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "has_more": {
      +      "type": "boolean"
      +    },
      +    "more": {
      +      "description": "How to fetch the next page, when has_more.",
      +      "type": "string"
      +    },
      +    "next_cursor": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "object": {
      +      "const": "list",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "object",
      +    "data",
      +    "has_more",
      +    "next_cursor",
      +    "note"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the description carries a lighter burden. It adds the faint prerequisite signal about a plan, but says nothing about defaulting to the newest active site, pagination via cursor, or result ordering — all behaviors an agent would want disclosed.

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?

Two compact sentences with the resource and its fields front-loaded; nothing is redundant. The trailing prerequisite sentence is terse to the point of being cryptic, which costs a little clarity but not length.

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?

An output schema exists, so return values need not be explained, and the annotations fully characterize the safety profile of this read-only, idempotent, closed-world call. What is missing is mostly usage context and the meaning of source_key, which is moderate rather than fatal for a four-parameter lister.

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

Parameters3/5

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

Schema coverage is 75%: site, limit and cursor are documented in the schema, and the description only loosely echoes 'on a site'. source_key has no description anywhere, so it remains unexplained by both schema and prose.

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 names a specific resource (campaigns the team described on a site) and enumerates the fields each record carries: objective, promise, audience, landing page, entered spend. That is enough to distinguish it from generic getters, but the listing verb itself is only implied by the tool name, and it never names onelence_save_campaign_context as the write-side counterpart.

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?

'Needs a plan with campaign context' hints at a prerequisite state but is elliptical and never states when to call this versus save_campaign_context or any other context tool. An agent can infer it is the read side of campaign context, but must infer it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.