Skip to main content
Glama

Crea un objetivo

create_goal

Crea un objetivo. Máximo 20 por web (409 goal_limit). Con clave env: test se valida la condición y se simula sin persistir.

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": {
      "id": "<id>",
      "name": "<name>",
      "type": "<type>",
      "match": "<match>"
    },
    "name": "create_goal"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId de la web (campo `id` de `/v1/sites`).
nameYesNombre visible del objetivo.
typeYes`event`: un evento personalizado; `path`: la visita a una ruta.
matchYesNombre de evento o ruta (admite un `*` al final).
idempotency_keyNoOpcional. Un reintento con el mismo valor devuelve la misma respuesta sin repetir la escritura.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare it as a non-read-only, non-destructive mutation; the description adds real value beyond that with a concrete quota (max 20 per site), the resulting error code (`409 goal_limit`), and the non-persisting behavior when `env: test` is set. What the call returns on success and any permission requirements are not covered.

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?

Three dense sentences with the core action first and the quota and test-mode caveats following in priority order; no filler. The phrase 'Con clave `env: test`' is slightly telegraphic about what 'clave' refers to, which costs a small amount of clarity.

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?

For a create tool with no output schema, the definition covers the essential risk information: the quota, the failure code, and the dry-run mode. The main remaining gap is that the success response shape is never hinted at, leaving the agent to infer what a created goal looks like.

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 description coverage is 100%, so all five parameters, including the enum for `type` and the idempotency key semantics, are already documented in the schema. The description adds nothing about parameters except the `env: test` key, which is not a declared input property and is left unexplained as to where it belongs.

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?

Starts with a specific verb and resource ('Crea un objetivo'), so the action is unambiguous. It does not name or distinguish itself from siblings such as delete_goal or list_goals, relying on the verb alone to differentiate.

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?

Usage context is implied through the 20-goals-per-site limit and the availability of a simulated test mode, which tells the agent when the call will fail and when it won't persist. However, there is no explicit guidance on when to use this versus updating or listing goals, and no stated prerequisites.

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.

Resources