Composway Docs
Tool reference

Get site performance trend

Daily, weekly, or monthly Google + Bing performance trend for a site.

Tool name: get_performance_trend

Cost: Free - not billed, and does not draw on a plan quota.

Read-only

This tool only reads. It never creates or changes anything, so an assistant may call it without asking you first.

Daily, weekly, or monthly Google + Bing performance trend for a site. Weekly/monthly points roll up the daily series (impression-weighted position, summed clicks/impressions). Site-level only in this version - filtering by a specific page or query is not yet supported. Omit from/to to get the full available history.

Parameters

ParameterTypeRequiredNotes
sitestringYesThe site to look up, as a bare domain ("example.com") or a URL - scheme, www., path and trailing slash are all stripped. Must resolve to a workspace the caller owns; call list_sites first if unsure of the exact domain.
granularity"daily" | "weekly" | "monthly"NoDefaults to "daily".
fromstringNoStart date (YYYY-MM-DD), inclusive. Omit for full history.
tostringNoEnd date (YYYY-MM-DD), inclusive. Omit for full history.
searchVertical"web" | "image" | "video"NoWhich Google search vertical to read: web (default), image, or video. Google-only - Bing Webmaster Tools does not split verticals on any traffic endpoint, so anything other than 'web' returns Google alone, with Bing excluded and declared in unsupportedInputs. A null or absent Bing figure then means 'not measurable', never 'zero'. Defaults to "web".
Full input JSON Schema
{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"type": "object",
	"properties": {
		"site": {
			"type": "string",
			"minLength": 1,
			"description": "The site to look up, as a bare domain (\"example.com\") or a URL - scheme, www., path and trailing slash are all stripped. Must resolve to a workspace the caller owns; call list_sites first if unsure of the exact domain."
		},
		"granularity": {
			"default": "daily",
			"type": "string",
			"enum": ["daily", "weekly", "monthly"]
		},
		"from": {
			"description": "Start date (YYYY-MM-DD), inclusive. Omit for full history.",
			"type": "string"
		},
		"to": {
			"description": "End date (YYYY-MM-DD), inclusive. Omit for full history.",
			"type": "string"
		},
		"searchVertical": {
			"default": "web",
			"description": "Which Google search vertical to read: web (default), image, or video. Google-only - Bing Webmaster Tools does not split verticals on any traffic endpoint, so anything other than 'web' returns Google alone, with Bing excluded and declared in `unsupportedInputs`. A null or absent Bing figure then means 'not measurable', never 'zero'.",
			"type": "string",
			"enum": ["web", "image", "video"]
		}
	},
	"required": ["site"]
}

Response

Full output JSON Schema
{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"type": "object",
	"properties": {
		"site": {
			"type": "string"
		},
		"workspaceId": {
			"type": "string",
			"format": "uuid",
			"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
		},
		"searchVertical": {
			"type": "string",
			"enum": ["web", "image", "video"]
		},
		"granularity": {
			"type": "string"
		},
		"points": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"date": {
						"type": "string"
					},
					"google": {
						"type": "object",
						"properties": {
							"impressions": {
								"anyOf": [
									{
										"type": "integer",
										"minimum": -9007199254740991,
										"maximum": 9007199254740991
									},
									{
										"type": "null"
									}
								]
							},
							"clicks": {
								"anyOf": [
									{
										"type": "integer",
										"minimum": -9007199254740991,
										"maximum": 9007199254740991
									},
									{
										"type": "null"
									}
								]
							},
							"avgPosition": {
								"anyOf": [
									{
										"type": "number"
									},
									{
										"type": "null"
									}
								]
							}
						},
						"additionalProperties": {}
					},
					"bing": {
						"type": "object",
						"properties": {
							"impressions": {
								"anyOf": [
									{
										"type": "integer",
										"minimum": -9007199254740991,
										"maximum": 9007199254740991
									},
									{
										"type": "null"
									}
								]
							},
							"clicks": {
								"anyOf": [
									{
										"type": "integer",
										"minimum": -9007199254740991,
										"maximum": 9007199254740991
									},
									{
										"type": "null"
									}
								]
							},
							"avgPosition": {
								"anyOf": [
									{
										"type": "number"
									},
									{
										"type": "null"
									}
								]
							}
						},
						"additionalProperties": {}
					}
				},
				"required": ["date", "google", "bing"],
				"additionalProperties": {}
			}
		},
		"unsupportedInputs": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"field": {
						"type": "string"
					},
					"engine": {
						"anyOf": [
							{
								"type": "string"
							},
							{
								"type": "null"
							}
						]
					},
					"reason": {
						"type": "string"
					}
				},
				"required": ["field", "reason"],
				"additionalProperties": {}
			}
		},
		"lastSyncedAt": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"type": "null"
				}
			]
		}
	},
	"required": [
		"site",
		"workspaceId",
		"searchVertical",
		"granularity",
		"points",
		"unsupportedInputs"
	],
	"additionalProperties": false
}

On this page