Skip to main content
Glama

Create a saved test

create_target

Create a saved test (permission: edit)

Create ONE saved test in the project, as from the dashboard: it is monitored on the cadence of the plan (no schedule field) and its first scan starts right away. With an org key, projectId is required. type website or hbbtv takes url; android takes apk (the gcsPath from POST /uploads; no Play Store URL). A website always gets one web_compliance target; testType (website only, default compliance) only selects the plan gate: datalayer requires the plan that includes journeys. tvPlatform is hbbtv only. country is required and decides the proxy location, locale and timezone; locale and timezone are not accepted. A project holds one test per type: a second one answers 409 target_exists. access (website with an https url only, else 400 field_not_applicable) saves the login and/or secret headers of a protected test environment before the first scan, which already uses them; write-only: the Target answers only access.basicAuth and access.headerNames. A retry with the same Idempotency-Key replays the first result even when the access values (password, header values) differ: to change the access, use a new key or PATCH /targets/{id}. The 201 is the Target plus its first scan as a ScanRef (scan), or scan: null with scanError when the test was saved but its first scan could not be queued; Location is the target URL. idempotencyKey (sent as the Idempotency-Key header): retrying the same call with the same value replays the original answer; the same value with different arguments is 422 idempotency_conflict, and 409 idempotent_in_progress means wait error.meta.retryAfter seconds and retry.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "<type>",
      "country": "<country>"
    },
    "name": "create_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
apkNoThe uploaded app: `{ gcsPath }` as POST /uploads answered it (android).
urlNoAbsolute http(s) URL of the site or HbbTV app (website, hbbtv).
nameNoDisplay name of the test.
typeYesWhat the test checks; a project holds one test per type.
accessNoAccess to a protected test environment (website test with an https url only; any other test is 400 field_not_applicable): basicAuth { username, password } and/or up to 3 headers, sent only to the origin of the test's url, never to third parties, by every scan, journey recording and replay of the test. Write-only: the values are stored and never returned; the Target and the dashboard show only whether a login is set and the header names.
countryYesScan country (proxy geo, locale, timezone): CZ, DE, AT, IT, ES, NL, DK, FR, BE, PL, IE, SK
testTypeNoWebsite only: compliance (default) or datalayer; selects the plan gate only.
projectIdNoRequired with an organization key; must be the key's project with a project key. Missing (organization key) or not a UUID: 400 invalid_request on path projectId; a project outside the key's reach: 404.
tvPlatformNoThe TV platform to emulate; hbbtv only.
idempotencyKeyNoOptional Idempotency-Key: reuse the same value when retrying this exact call so it is applied once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / access
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Access to a protected test environment (website test with an https url only; any other test is 400 field_not_applicable): basicAuth { username, password } and/or up to 3 headers, sent only to the origin of the test's url, never to third parties, by every scan, journey recording and replay of the test. Write-only: the values are stored and never returned; the Target and the dashboard show only whether a login is set and the header names.",
      +  "properties": {
      +    "basicAuth": {
      +      "additionalProperties": false,
      +      "description": "HTTP Basic login of the protected environment (200 characters each at most).",
      +      "properties": {
      +        "password": {
      +          "maxLength": 200,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "username": {
      +          "maxLength": 200,
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "username",
      +        "password"
      +      ],
      +      "type": "object"
      +    },
      +    "headers": {
      +      "additionalProperties": {
      +        "maxLength": 1000,
      +        "pattern": "^[\\x21-\\x7e](?:[\\x20-\\x7e]*[\\x21-\\x7e])?$",
      +        "type": "string"
      +      },
      +      "description": "Up to 3 request headers sent to the origin of the URL only (e.g. x-vercel-protection-bypass).",
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed6 schema fields changed
    • addedInput schema / properties / apk / description
      Added value: +"The uploaded app: `{ gcsPath }` as POST /uploads answered it (android)."
    • addedInput schema / properties / name / description
      Added value: +"Display name of the test."
    • addedInput schema / properties / testType / description
      Added value: +"Website only: compliance (default) or datalayer; selects the plan gate only."
    • addedInput schema / properties / tvPlatform / description
      Added value: +"The TV platform to emulate; hbbtv only."
    • addedInput schema / properties / type / description
      Added value: +"What the test checks; a project holds one test per type."
    • addedInput schema / properties / url / description
      Added value: +"Absolute http(s) URL of the site or HbbTV app (website, hbbtv)."
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources