Skip to main content
Glama
snyk

Snyk API & Web MCP Server

Official
by snyk

probely_update_target

Update a target's labels, scanning agent, and authentication settings (Basic Auth or API headers/cookies) for scanning.

Instructions

Update a target. Use labels to assign label names (e.g. ["Agentic", "Production"]). Existing labels are reused; missing ones are created automatically. Use scanning_agent_id to assign or change the scanning agent. Pass "" to remove it.

IMPORTANT: The headers/cookies parameters are for general custom headers/cookies sent with every scan request (NOT for authentication). They use a simple structure: {"name": "...", "value": "..."}.

For HTTP Basic Auth authentication: Use basic_auth_username and basic_auth_password parameters. Both must be provided together. Example: probely_update_target( targetId, basic_auth_username="credentials://xxx", # or inline: "api-user" basic_auth_password="credentials://yyy" # or inline: "secret123" )

For API authentication with static headers/cookies: Use api_auth_headers and/or api_auth_cookies parameters with full structure including authentication flags. The tool automatically sets api_login_enabled=true and api_login_method='headers_or_cookies'. Example: probely_update_target( targetId, api_auth_headers=[{ "name": "X-API-Key", "value": "credentials://xxx", "value_is_sensitive": false, "allow_testing": false, "authentication": true, "authentication_secondary": false }], api_auth_cookies=[{ "name": "session", "value": "credentials://yyy", "value_is_sensitive": false, "allow_testing": false, "authentication": true, "authentication_secondary": false }] )

Reference saved credentials using URI format 'credentials://<credential_id>' (not {{cred-name}}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetIdYes
nameNo
urlNo
descNo
labelsNo
scanning_agent_idNo
headersNoCustom HTTP headers sent with every scan request (for general use, NOT for authentication). Each entry: {"name": "<header-name>", "value": "<header-value>"}. Replaces all existing custom headers. To reference saved credentials in header values, use URI format 'credentials://4DY4qGohso1r'. For API authentication using static headers, use api_auth_headers parameter instead.
cookiesNoCustom cookies sent with every scan request (for general use, NOT for authentication). Each entry: {"name": "<cookie-name>", "value": "<cookie-value>"}. Replaces all existing custom cookies. To reference saved credentials in cookie values, use URI format 'credentials://4DY4qGohso1r'. For API authentication using static cookies, use api_auth_cookies parameter instead.
basic_auth_usernameNoUsername for HTTP Basic Auth. Use credential URI format 'credentials://xxx' to reference saved credentials. When set, basic_auth_password must also be provided.
basic_auth_passwordNoPassword for HTTP Basic Auth. Use credential URI format 'credentials://xxx' to reference saved credentials. When set, basic_auth_username must also be provided.
api_auth_headersNoAuthentication headers for API targets. Full structure with authentication flags. Each entry: {"name": "X-API-Key", "value": "credentials://xxx", "value_is_sensitive": false, "allow_testing": false, "authentication": true, "authentication_secondary": false}. Automatically sets api_login_enabled=true and api_login_method='headers_or_cookies'.
api_auth_cookiesNoAuthentication cookies for API targets. Full structure with authentication flags. Each entry: {"name": "session", "value": "credentials://xxx", "value_is_sensitive": false, "allow_testing": false, "authentication": true, "authentication_secondary": false}. Automatically sets api_login_enabled=true and api_login_method='headers_or_cookies'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Without annotations, the description must carry the transparency burden. It discloses key behaviors: labels are reused/created automatically, scanning_agent_id can be removed with empty string, and auth parameters have specific structures. However, it does not mention idempotency, permission requirements, or whether the update is partial or full replacement. More behavioral context would be beneficial.

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 a clear purpose, bullet points, and examples for different authentication methods. It is somewhat verbose with repeated credential URI notes, but the organization helps readability. Could be more concise, but effective overall.

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 no annotations and a complex 12-parameter tool, the description covers major usage scenarios, including labels, scanning agents, and authentication types. It does not mention the return value (though an output schema exists), nor does it address idempotency or concurrency. For a mutation tool, some operational context is missing, but the description is still fairly complete.

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?

Schema description coverage is 50% (6/12 parameters have descriptions). The global description adds significant meaning for complex parameters like labels, scanning_agent_id, and authentication parameters, including examples and credential URI format. Simpler parameters like name, url, desc rely on schema alone, but overall the description compensates well for the gaps.

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 states 'Update a target' which is a clear verb+resource combination. It distinguishes the tool from siblings like probely_update_target_settings by focusing on target properties such as labels, scanning agent, and authentication configurations. However, it does not explicitly differentiate from all siblings, so score is 4.

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?

Provides extensive guidance on using labels, scanning_agent_id, and the distinction between general headers/cookies and authentication parameters. Includes examples for Basic Auth and API auth. However, does not explicitly state when to use this tool versus alternative tools like probely_update_target_settings, so score is 4.

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/snyk/saw-mcp'

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