Skip to main content
Glama

Criar rotina do Nock Agent

create_routine

Schedule something the Nock Agent does on its own, every week or every day ("toda segunda, ache 50 decisores novos e coloque na campanha X"), Brasília time. Actions: campaign_add_people (find count new people for a campaign from its search or signal), campaign_refill_from_signal (run the campaign's signal and add count people), campaign_status (pause or resume a campaign), sheet_enrichment (run an enrichment column on the rows that do not have it yet). Each run spends at most creditCap credits, doing fewer people or rows to fit; an empty creditCap means the full price of one run. What a run does depends on the workspace's autonomy level for that action: 1 only tells, 2 (default) suggests with a one-tap approval, 3 does it and tells after. Creating spends nothing. The campaign or sheet is the one passed; none is picked automatically. The result says what will run, when, and the cap.

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": {
      "actionType": "<actionType>",
      "weekday": "<weekday>",
      "hour": "<hour>"
    },
    "name": "create_routine"
  }
}

Input Schema

NameRequiredDescriptionDefault
hourYesHour of the day, Brasília time (0 to 23).
nameNoShort name in the user's language. Empty: one is written from the schedule.
countNoPeople per run (1 to 50), for campaign_add_people and campaign_refill_from_signal.
statusNoFor campaign_status: paused to pause, active to resume.
sheetIdNoExact sheet UUID, for sheet_enrichment.
weekdayYesThe day it runs, or every_day.
columnIdNoEnrichment column id (as the sheet's rows list it), for sheet_enrichment.
creditCapNoMost credits one run may spend. Empty: the full price of one run.
actionTypeYes
campaignIdNoExact campaign UUID, for the campaign actions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / campaignId / description
      Previous value: -"Exact campaign UUID from list_outreach_campaigns, for the campaign actions."New value: +"Exact campaign UUID, for the campaign actions."
    • changedInput schema / properties / columnId / description
      Previous value: -"Enrichment column id from get_sheet_rows, for sheet_enrichment."New value: +"Enrichment column id (as the sheet's rows list it), for sheet_enrichment."
    • changedInput schema / properties / sheetId / description
      Previous value: -"Exact sheet UUID from list_sheets, for sheet_enrichment."New value: +"Exact sheet UUID, for sheet_enrichment."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=true, so the description's obligation is to add context — and it does: per-run credit spend bounded by creditCap with graceful degradation ("doing fewer people or rows to fit"), the guarantee that creating spends nothing, the autonomy-level behavior (1 tells, 2 suggests, 3 acts), and that no campaign or sheet is auto-selected. It also previews the return value ("what will run, when, and the cap"). The only gap is no mention of failure modes or what happens to existing routines with similar schedules.

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 front-loaded with the core purpose and a concrete example before the action enumeration and cost/autonomy rules. Every sentence carries information (action semantics, spend cap, autonomy levels, no auto-pick, result shape). It is dense but not padded; the action list compresses four vocabularies into one compact run.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 parameters, no output schema, and only 3 required fields, the definition supplies the missing pieces: what each actionType implies, how creditCap degrades a run, what autonomy level governs execution, and what the response will report. An agent has enough to construct a valid call and to warn the user about spending without opening 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 coverage is 90%, so the baseline is 3; the description earns an increment. It explains creditCap's meaning operationally (a ceiling that causes fewer people/rows to be processed, empty = full price of one run), ties count to the two campaign-adding actions, and states that campaignId/sheetId must be supplied explicitly because nothing is picked automatically — a semantic constraint the schema does not express. It does not clarify columnId or the weekday/hour time basis beyond what the schema already says.

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 gives a specific verb and resource — schedule recurring autonomous work for the Nock Agent, weekly or daily — and even supplies a natural-language example utterance. It enumerates the four supported action types, so an agent knows exactly what can be scheduled. It does not name or contrast with sibling routine tools (delete_routine, set_routine_status), leaving that differentiation to the name alone.

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 is implied by the phrasing ("schedule something the agent does on its own, every week or every day") and the example, and the action list clarifies what each recurring job can be. However there is no explicit when-not guidance, no statement of prerequisites (e.g. campaign/sheet must already exist), and no routing to alternatives such as set_routine_status for changing an existing routine. An agent can infer usage but must reason about it.

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.