Skip to main content
Glama

update_csp

Idempotent

Update an existing security policy by sending only the fields you want to change. Note: rules are fully replaced, so include every rule you want to keep.

Instructions

Atualiza uma política de segurança existente. Envia apenas os campos que deseja alterar.

⚠️ rules é SUBSTITUÍDO, não mesclado: reenvie os campos que quer manter. Campo fora do contrato é aceito em silêncio e fica inerte — confira em zihin://schemas/csp_config.

Campos de behavior mais usados:

  • must_not_tools: blocklist de tools que o agente nunca executa (único controle de superfície de tools).

  • max_iterations / max_tool_calls / max_tokens_per_request: tetos de execução por turno.

  • require_approval_for + approval_policy_id: aprovação por escopo (OE-2a, só chat nativo — ver create_approval_policy).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoNovo nome
rulesNoNovas regras (substituem as anteriores por completo)
csp_idYesUUID da CSP a atualizar
priorityNoNova prioridade
exceptionsNoNovas exceções
descriptionNoNova descrição
Install Server

TDQS

A4.7/5.0
Behavior5/5

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

The description adds significant behavioral context beyond the annotations: it explicitly warns that 'rules é SUBSTITUÍDO, não mesclado' (rules are replaced, not merged), and that fields outside the contract are silently accepted and become inert. This is critical side-effect information that the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true) do not convey. The description also points to a schema URI for further details, exceeding the baseline.

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

Conciseness5/5

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

The description is well-structured: a clear opening sentence, a critical warning with an emoji for emphasis, and a bullet list of optional fields. Every sentence adds value—no fluff. The most important caveat (rules replacement) is front-loaded, and the list of common fields is concise and actionable.

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?

The description is quite complete for an update tool: it covers the main behavior, the rules replacement, and useful field hints. However, it does not mention expected response or errors, and it doesn't explicitly state success criteria. Given the complexity and absence of an output schema, a 4 is fair—there's a small gap but nothing that would mislead an agent.

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

Parameters5/5

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

Although the schema covers 100% of parameters, the description adds substantial semantics for the 'rules' parameter, explaining the replacement semantics and listing the most-used behavior fields (must_not_tools, max_iterations, etc.). It also clarifies that extra fields are inert. This goes well beyond the schema definitions and helps agents construct valid payloads.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: 'Atualiza uma política de segurança existente' (updates an existing security policy), specifying the verb, resource, and that it's for existing policies. This distinguishes it from create_csp, delete_csp, and toggle_csp. The purpose is unambiguous and context-specific.

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?

It provides explicit usage guidance: 'Envia apenas os campos que deseja alterar' (send only the fields you want to change) and warns about the rules replacement behavior. It also references create_approval_policy for approval fields, which is an alternative tool. However, it doesn't explicitly state when NOT to use this tool (e.g., for creation) or list all alternatives, so a 4 is appropriate.

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

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/zihin-ai/zihin-mcp'

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