Skip to main content
Glama

create_goal

Create a goal for a brand. Two levels only: a top-level goal, or a sub-goal under one (pass parent_id). THE BASELINE IS MEASURED SERVER-SIDE at creation — you do not pass a starting number, and you should not invent one. WORKED EXAMPLE, a measured goal: title='Get cited by AI answer engines', category='aeo', stage='grow', metric_key='ai_citation_rate', target_value=30 — the citation rate is scored 0-100, so 30 means 30% of buying prompts citing the brand. WORKED EXAMPLE, a goal no metric covers: title='Publish 5 route pages', category='content', stage='build', manual_total=5 and no metric_key — progress then tracks manual_done/5. If you omit BOTH metric_key and manual_total, progress falls back to the fix-queue issues you link with link_goal_issues. Pick whichever of the three actually reflects the work; a goal with none of them reads as unmeasurable forever.

Input Schema

NameRequiredDescriptionDefault
tagsNoJSON array of freeform labels, e.g. ["q3","client-ask"]
stageNodiscover | fix | build | grow | defend
titleYesWhat the brand is trying to achieve, in plain language
due_atNoISO 8601 date/time this goal is due, e.g. 2026-12-15
site_idYesThe brand/site ID
categoryNoseo | aeo | geo | technical | content | authority — same vocabulary as the fix queue, so goals and issues line up
priorityNolow | medium | high
parent_idNoMake this a sub-goal of an existing top-level goal
starts_atNoISO 8601 date/time this goal starts, e.g. 2026-10-01
metric_keyNoA key from goal_metrics. Omit for a manual or issue-backed goal.
descriptionNoWhy it matters, or how it will be done
owner_emailNoWho owns it; defaults to the calling user
manual_totalNoFor a goal no metric covers: how many things need doing
target_valueNoThe number to reach. For a 'down' metric this is lower than today, e.g. orphan_pages target 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=false) by disclosing that the baseline is measured server-side at creation and must not be passed or invented. It also explains the downstream progress-tracking behavior of each of the three measurement modes, which is critical context an agent cannot infer from schema or annotations.

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?

Front-loaded with the core rule and hierarchy, then examples. It is longer than average but nearly every sentence carries a decision the agent must make. The parenthetical about citation rate scoring is slightly verbose relative to its value.

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 14-parameter mutation tool with no output schema and open-world behavior, the description covers the novel, non-obvious mechanics thoroughly (server-side baseline, three measurement modes). Some ancillary parameters and any post-creation behavior beyond progress tracking are left to the schema.

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 100%, so the baseline is 3. The description still adds substantial meaning: it explains the interaction between metric_key, manual_total, and the fallback to link_goal_issues, and the ai_citation_rate example clarifies target_value semantics. It does not, however, clarify several of the 14 parameters (tags, stage, priority, due_at).

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?

States the specific verb+resource (create a goal for a brand) and immediately constrains the hierarchy to exactly two levels (top-level or sub-goal via parent_id). It clearly distinguishes itself from siblings like update_goal, delete_goal, list_goals, and content_for_goal.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The three worked examples function as explicit when-to-use guidance: use metric_key when a metric covers it, manual_total when no metric covers it, and neither when progress should track linked issues. It ends by telling the agent to pick whichever reflects the work, with the failure mode spelled out.

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