Skip to main content
Glama

Submit an asynchronous planning calculation

create_planning_calculation
Idempotent

Start a migration planning calculation for a saved dossier. The calculation runs asynchronously: an accepted request returns a calculation_id immediately and the result is saved to the account. Only mode=ordinary is available; saved results from other modes stay readable. expected_revision must equal the dossier’s current revision. calculation_scope selects a fixed configuration: existing_189 covers current 189 routes without automatic preparation strategies; future covers wider planning. A full plan usually runs existing_189 first and continues with future when no 189 route has a conditional PR date or the user asks for more options. To continue, submit future with continuation_of set to the first calculation_id, the same revision and mode, and a new request_id; the service checks ownership, versions and a one-continuation limit and returns an error on mismatch. request_id is the idempotency key: retrying with the same value returns the same calculation, and list_planning_calculations finds it by request_id after a timeout. If required facts are missing it returns 422 needs_information with the missing items and schema references, and no calculation is created. Undecided preferences limit only the directions that depend on them; results report these as scope_gaps. parent_calculation_id and comparison must refer to this account’s calculations. Accepted calculations are subject to the account’s calculation quota. Use get_planning_calculation to check progress and read results. Requires the authenticated One U Education account and declared planning scope; credentials and user identity are never tool arguments.

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": {
      "dossier_id": "<dossier_id>",
      "expected_revision": "<expected_revision>",
      "request_id": "<request_id>"
    },
    "name": "create_planning_calculation"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoordinary
comparisonNo
dossier_idYes
request_idYes
continuation_ofNo
calculation_scopeNofuture
expected_revisionYes

Output Schema

NameRequiredDescriptionDefault
msgYes
codeYes
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $defs / __schema0 / properties / visa_expiry
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / mode / const
      Added value: +"ordinary"
    • removedInput schema / properties / mode / enum
      Removed value: -[
      -  "ordinary",
      -  "heuristic"
      -]
  3. Changed2 schema fields changed
    • addedInput schema / properties / calculation_scope
      Added value: +{
      +  "default": "future",
      +  "enum": [
      +    "existing_189",
      +    "future"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / continuation_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 128,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  4. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses asynchronous execution, immediate calculation_id return, saved results, quota enforcement, ownership/version checks, 422 needs_information behavior, and scope_gaps. These details materially expand on the readOnlyHint=false and idempotentHint=true annotations without contradicting them.

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 purpose and process, and most sentences carry operational value. It is dense and lengthy, but the length is largely justified by the tool’s async, continuation, error, and idempotency behavior.

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 complex asynchronous mutation with 7 parameters, an output schema, and no schema descriptions, the definition covers most operational concerns: auth context, quota, errors, continuation, and result retrieval. The main remaining gap is insufficient explanation of the comparison parameter and its nested overrides.

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?

With 0% schema description coverage, the description carries the burden and explains expected_revision, request_id idempotency, calculation_scope values, mode restrictions, and continuation_of usage. However, it does little to explain the comparison object’s candidate_id and overrides structure, and it mentions parent_calculation_id even though that parameter is absent from the schema.

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 opens with a specific verb and resource: 'Start a migration planning calculation for a saved dossier.' It clearly distinguishes creation from progress/result retrieval by naming get_planning_calculation and list_planning_calculations later.

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?

It gives explicit usage conditions, including when to use existing_189 versus future, how to continue with continuation_of, and to use get_planning_calculation for progress. It also states the one-continuation limit and explains that retrying with the same request_id is the idempotent path.

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