Skip to main content
Glama

Source decision

onelence_get_decision
Read-onlyIdempotent

One source's Decision with reasons, evidence, limitations and the next review step, plus the signals and evidence gaps about that source. Use a source_id from onelence_get_briefing.

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": {
      "source_id": "<source_id>"
    },
    "name": "onelence_get_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoWindow end, inclusive for a date. Defaults to now.
siteNoSite domain (e.g. example.com) or site id. Defaults to the workspace's newest active site.
startNoWindow start: a date (YYYY-MM-DD) or ISO 8601 date-time. Defaults to 30 days before end.
source_idYessource.id from onelence_get_briefing.
response_formatNoconcise (default) keeps what is needed to answer and to chain the next call; detailed returns every field.

Output Schema

NameRequiredDescriptionDefault
siteYes
lockedYes
objectYes
relatedYes
decisionYes
variantsYes
source_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "decision": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "analysis_window": {
      +              "anyOf": [
      +                {
      +                  "properties": {
      +                    "end": {
      +                      "type": "string"
      +                    },
      +                    "start": {
      +                      "type": "string"
      +                    },
      +                    "timezone": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "start",
      +                    "end",
      +                    "timezone"
      +                  ],
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "consequence": {
      +              "anyOf": [
      +                {
      +                  "properties": {
      +                    "financial": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "if_followed": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "if_ignored": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "primary_risk": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "risk_level": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "time_horizon_days": {
      +                      "anyOf": [
      +                        {
      +                          "type": "number"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "primary_risk",
      +                    "risk_level",
      +                    "time_horizon_days",
      +                    "if_ignored",
      +                    "if_followed",
      +                    "financial"
      +                  ],
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "context": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "decision": {
      +              "properties": {
      +                "confidence": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "posture": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "scale",
      +                        "hold",
      +                        "stop"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "state": {
      +                  "enum": [
      +                    "available",
      +                    "unavailable"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "state",
      +                "posture",
      +                "confidence"
      +              ],
      +              "type": "object"
      +            },
      +            "evidence": {
      +              "properties": {
      +                "blockers": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "completeness": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "missing": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "observed": {
      +                  "items": {
      +                    "properties": {
      +                      "currency": {
      +                        "type": "string"
      +                      },
      +                      "label": {
      +                        "type": "string"
      +                      },
      +                      "value": {
      +                        "anyOf": [
      +                          {
      +                            "anyOf": [
      +                              {
      +                                "type": "string"
      +                              },
      +                              {
      +                                "type": "number"
      +                              },
      +                              {
      +                                "type": "boolean"
      +                              }
      +                            ]
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "required": [
      +                      "label",
      +                      "value"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "reliability": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "reviewed": {
      +                  "items": {
      +                    "properties": {
      +                      "currency": {
      +                        "type": "string"
      +                      },
      +                      "label": {
      +                        "type": "string"
      +                      },
      +                      "value": {
      +                        "anyOf": [
      +                          {
      +                            "anyOf": [
      +                              {
      +                                "type": "string"
      +                              },
      +                              {
      +                                "type": "number"
      +                              },
      +                              {
      +                                "type": "boolean"
      +                              }
      +                            ]
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "required": [
      +                      "label",
      +                      "value"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "summary": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "summary",
      +                "completeness",
      +                "reliability",
      +                "observed",
      +                "reviewed",
      +                "missing",
      +                "blockers"
      +              ],
      +              "type": "object"
      +            },
      +            "limitations": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "metrics": {
      +              "properties": {
      +                "conversion_rate": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "conversions": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "quality_score": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "traffic_share": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "visitors": {
      +                  "anyOf": [
      +                    {
      +                      "type": "number"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "visitors",
      +                "conversions",
      +                "conversion_rate",
      +                "traffic_share",
      +                "quality_score"
      +              ],
      +              "type": "object"
      +            },
      +            "next_step": {
      +              "properties": {
      +                "authorization": {
      +                  "anyOf": [
      +                    {
      +                      "enum": [
      +                        "authorized",
      +                        "review_required",
      +                        "unavailable"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "recommended_action": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "required_review_steps": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "recommended_action",
      +                "authorization"
      +              ],
      +              "type": "object"
      +            },
      +            "object": {
      +              "const": "decision",
      +              "type": "string"
      +            },
      +            "primary_reason": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "readiness": {
      +              "properties": {
      +                "message": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "state": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "state",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "reasons": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "source": {
      +              "properties": {
      +                "channel": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "id": {
      +                  "type": "string"
      +                },
      +                "name": {
      +                  "type": "string"
      +                },
      +                "role": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "type": {
      +                  "enum": [
      +                    "source",
      +                    "affiliate"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "name",
      +                "type",
      +                "channel",
      +                "role"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "object",
      +            "source",
      +            "decision",
      +            "primary_reason",
      +            "reasons",
      +            "evidence",
      +            "limitations",
      +            "consequence",
      +            "next_step"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "locked": {
      +      "type": "boolean"
      +    },
      +    "object": {
      +      "const": "source_decision",
      +      "type": "string"
      +    },
      +    "related": {
      +      "properties": {
      +        "evidence_gaps": {
      +          "items": {
      +            "properties": {
      +              "bucket": {
      +                "anyOf": [
      +                  {
      +                    "enum": [
      +                      "operator_action_required",
      +                      "collecting_or_unresolved",
      +                      "system_unavailable",
      +                      "conflict_requiring_review"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "needs": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "url": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "bucket",
      +              "url",
      +              "needs"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "signals": {
      +          "items": {
      +            "properties": {
      +              "change": {
      +                "properties": {
      +                  "currency": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "state": {
      +                    "enum": [
      +                      "measured",
      +                      "missing",
      +                      "unavailable",
      +                      "not_applicable"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "value",
      +                  "currency"
      +                ],
      +                "type": "object"
      +              },
      +              "comparison": {
      +                "properties": {
      +                  "currency": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "state": {
      +                    "enum": [
      +                      "measured",
      +                      "missing",
      +                      "unavailable",
      +                      "not_applicable"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "value",
      +                  "currency"
      +                ],
      +                "type": "object"
      +              },
      +              "comparison_window": {
      +                "anyOf": [
      +                  {
      +                    "properties": {
      +                      "end": {
      +                        "type": "string"
      +                      },
      +                      "start": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "start",
      +                      "end"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "current": {
      +                "properties": {
      +                  "currency": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "state": {
      +                    "enum": [
      +                      "measured",
      +                      "missing",
      +                      "unavailable",
      +                      "not_applicable"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "value",
      +                  "currency"
      +                ],
      +                "type": "object"
      +              },
      +              "current_window": {
      +                "properties": {
      +                  "end": {
      +                    "type": "string"
      +                  },
      +                  "start": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "start",
      +                  "end"
      +                ],
      +                "type": "object"
      +              },
      +              "direction": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "group": {
      +                "enum": [
      +                  "active",
      +                  "recent"
      +                ],
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "kind": {
      +                "const": "observation",
      +                "type": "string"
      +              },
      +              "materiality": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "metric": {
      +                "type": "string"
      +              },
      +              "object": {
      +                "const": "signal",
      +                "type": "string"
      +              },
      +              "relative_change": {
      +                "properties": {
      +                  "currency": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "state": {
      +                    "enum": [
      +                      "measured",
      +                      "missing",
      +                      "unavailable",
      +                      "not_applicable"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "value": {
      +                    "anyOf": [
      +                      {
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "state",
      +                  "value",
      +                  "currency"
      +                ],
      +                "type": "object"
      +              },
      +              "source_ids": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "stability": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "status": {
      +                "enum": [
      +                  "active",
      +                  "expired",
      +                  "retracted",
      +                  "superseded"
      +                ],
      +                "type": "string"
      +              },
      +              "subject": {
      +                "properties": {
      +                  "id": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "kind": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "label": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "kind",
      +                  "id",
      +                  "label"
      +                ],
      +                "type": "object"
      +              },
      +              "summary": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "title": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "unit": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "title",
      +              "direction",
      +              "status"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "signals",
      +        "evidence_gaps"
      +      ],
      +      "type": "object"
      +    },
      +    "site": {
      +      "properties": {
      +        "domain": {
      +          "type": "string"
      +        },
      +        "id": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "domain"
      +      ],
      +      "type": "object"
      +    },
      +    "source_id": {
      +      "type": "string"
      +    },
      +    "variants": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "posture": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "scale",
      +                  "hold",
      +                  "stop"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "posture"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "object",
      +    "site",
      +    "source_id",
      +    "locked",
      +    "decision",
      +    "variants",
      +    "related"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is fully covered without the description. The description adds the composition of the result (reasons, evidence gaps, next review step), but since an output schema exists this is partly redundant, and it says nothing about behavior when a source_id is unknown or how start/end/site narrow the decision.

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?

Two compact sentences with the payload listed first and the prerequisite last, so the key information is front-loaded. The only minor cost is the unexplained capitalized domain term 'Decision', which takes a moment to interpret.

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?

With an output schema, full parameter descriptions and rich read-only annotations, the description only needs to convey scope and entry point, which it does. It is slightly incomplete in not explaining how the start/end/site window affects the returned decision, but nothing essential for a correct call is missing.

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 every parameter including source_id, start, end, site and response_format is already documented. The description only restates the source_id provenance already present in the schema ('source.id from onelence_get_briefing'), adding no new meaning about the window or format parameters.

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 names a specific verb+resource ('One source's Decision') and enumerates the payload: reasons, evidence, limitations, next review step, signals and evidence gaps. That distinguishes it from sibling list tools such as onelence_list_decisions and from onelence_get_signal, though it never explicitly says how it differs from them.

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?

'Use a source_id from onelence_get_briefing' gives a clear entry prerequisite and routes the agent to the briefing tool for the identifier. It does not state when to prefer this over onelence_list_decisions or onelence_get_signal, nor any when-not condition, so usage is only implied.

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.