Skip to main content
Glama

AdsAgent — Meta Ads MCP

mmp_get_state

Read-only

Read MMP mapping, cohort, and funnel state

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mmp_get_state"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
messageNo
retryableNo
support_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / else / properties / cohort_configs_by_connection / additionalProperties / additionalProperties / properties / partial_data / description
      Added value: +"Source configuration flag, not a query coverage or completeness result. True and false are configuration choices; if absent, the setting is unknown. Neither value proves the source data is mature or the query is complete."
    • addedOutput schema / else / properties / cohort_configs_by_connection / additionalProperties / additionalProperties / properties / preferred_currency / description
      Added value: +"Source configuration flag, not the currency of a revenue result. True and false are configuration choices; if absent, the setting is unknown. Verify the effective currency from reliable source or app evidence before comparing revenue with spend."
    • addedOutput schema / else / properties / cohort_configs_by_connection / additionalProperties / additionalProperties / properties / preferred_timezone / description
      Added value: +"Source configuration flag, not the effective timezone of a result. True and false are configuration choices; if absent, the setting is unknown. Verify the effective timezone from reliable source or app evidence before comparing time windows."
  2. Changed1 schema field changed
    • removedInput schema / properties / connection_context
      Removed value: -{
      -  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      -  "type": "string"
      -}
  3. Changed2 schema fields changed
    • changedOutput schema / else / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "apps_count": {
      -        "type": "integer"
      -      },
      -      "available_channel_pids": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "available_events_sample": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "connected": {
      -        "type": "boolean"
      -      },
      -      "degraded": {
      -        "description": "Secondary stored configuration reads were unavailable.",
      -        "type": "boolean"
      -      },
      -      "degraded_reasons": {
      -        "description": "Allowlisted public missing-data reasons only.",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "providers": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "safe_mode_reduced": {
      -        "const": true
      -      }
      -    },
      -    "required": [
      -      "connected",
      -      "providers",
      -      "apps_count",
      -      "available_channel_pids",
      -      "available_events_sample",
      -      "safe_mode_reduced"
      -    ]
      -  },
      -  {
      -    "properties": {
      -      "cohort_configs_by_connection": {
      -        "additionalProperties": {
      -          "additionalProperties": {
      -            "properties": {
      -              "aggregation_type": {
      -                "type": "string"
      -              },
      -              "cohort_type": {
      -                "type": "string"
      -              },
      -              "groupings": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "kpis": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "last_used_from": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "last_used_to": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "min_cohort_size": {
      -                "type": "integer"
      -              },
      -              "partial_data": {
      -                "type": "boolean"
      -              },
      -              "period_filters": {
      -                "items": {
      -                  "type": "integer"
      -                },
      -                "type": "array"
      -              },
      -              "preferred_currency": {
      -                "type": "boolean"
      -              },
      -              "preferred_timezone": {
      -                "type": "boolean"
      -              },
      -              "provider": {
      -                "type": "string"
      -              },
      -              "provider_app_id": {
      -                "type": "string"
      -              },
      -              "selected_channel_pids": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "type": "object"
      -        },
      -        "type": "object"
      -      },
      -      "connections": {
      -        "items": {
      -          "properties": {
      -            "created_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "display_name": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "last_synced_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "provider": {
      -              "type": "string"
      -            },
      -            "status": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "updated_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "degraded": {
      -        "type": "boolean"
      -      },
      -      "degraded_reasons": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "metadata_by_connection": {
      -        "additionalProperties": {
      -          "items": {
      -            "properties": {
      -              "app_name": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "channel_pid": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "event_mappings": {
      -                "items": {
      -                  "properties": {
      -                    "event_name": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "mapped_events": {
      -                "items": {
      -                  "properties": {
      -                    "event_name": {
      -                      "type": "string"
      -                    },
      -                    "send_revenue": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "provider": {
      -                "type": "string"
      -              },
      -              "provider_app_id": {
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "connections",
      -      "metadata_by_connection",
      -      "cohort_configs_by_connection"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "safe_mode_reduced": {
      +        "const": true
      +      }
      +    },
      +    "required": [
      +      "apps_count",
      +      "available_channel_pids",
      +      "available_events_sample",
      +      "connected",
      +      "providers",
      +      "safe_mode_reduced"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "cohort_configs_by_connection",
      +      "connections",
      +      "metadata_by_connection"
      +    ]
      +  }
      +]
    • addedOutput schema / else / properties
      Added value: +{
      +  "apps_count": {
      +    "type": "integer"
      +  },
      +  "available_channel_pids": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "available_events_sample": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "cohort_configs_by_connection": {
      +    "additionalProperties": {
      +      "additionalProperties": {
      +        "properties": {
      +          "aggregation_type": {
      +            "type": "string"
      +          },
      +          "cohort_type": {
      +            "type": "string"
      +          },
      +          "groupings": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "kpis": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "last_used_from": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_used_to": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "min_cohort_size": {
      +            "type": "integer"
      +          },
      +          "partial_data": {
      +            "type": "boolean"
      +          },
      +          "period_filters": {
      +            "items": {
      +              "type": "integer"
      +            },
      +            "type": "array"
      +          },
      +          "preferred_currency": {
      +            "type": "boolean"
      +          },
      +          "preferred_timezone": {
      +            "type": "boolean"
      +          },
      +          "provider": {
      +            "type": "string"
      +          },
      +          "provider_app_id": {
      +            "type": "string"
      +          },
      +          "selected_channel_pids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "object"
      +    },
      +    "type": "object"
      +  },
      +  "connected": {
      +    "type": "boolean"
      +  },
      +  "connections": {
      +    "items": {
      +      "properties": {
      +        "created_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "display_name": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "last_synced_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "provider": {
      +          "type": "string"
      +        },
      +        "status": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "updated_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "degraded": {
      +    "anyOf": [
      +      {
      +        "description": "Secondary stored configuration reads were unavailable.",
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "boolean"
      +      }
      +    ]
      +  },
      +  "degraded_reasons": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "metadata_by_connection": {
      +    "additionalProperties": {
      +      "items": {
      +        "properties": {
      +          "app_name": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "channel_pid": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "event_mappings": {
      +            "items": {
      +              "properties": {
      +                "event_name": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "mapped_events": {
      +            "items": {
      +              "properties": {
      +                "event_name": {
      +                  "type": "string"
      +                },
      +                "send_revenue": {
      +                  "type": "string"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "provider": {
      +            "type": "string"
      +          },
      +          "provider_app_id": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "type": "object"
      +  },
      +  "providers": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "safe_mode_reduced": {
      +    "const": true
      +  }
      +}
  4. Changed6 schema fields changed
    • addedOutput schema / then / properties / category
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / then / properties / expected
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / then / properties / failure_kind
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / then / properties / responsibility_hint
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / then / properties / route
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / then / properties / user_visible
      Added value: +{
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / connection_context
      Added value: +{
      +  "pattern": "^mctx_v1_[0-9a-f]{64}$",
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • changedOutput schema / else / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "apps_count": {
      -        "type": "integer"
      -      },
      -      "available_channel_pids": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "available_events_sample": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "connected": {
      -        "type": "boolean"
      -      },
      -      "providers": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "safe_mode_reduced": {
      -        "const": true
      -      }
      -    },
      -    "required": [
      -      "connected",
      -      "providers",
      -      "apps_count",
      -      "available_channel_pids",
      -      "available_events_sample",
      -      "safe_mode_reduced"
      -    ]
      -  },
      -  {
      -    "properties": {
      -      "cohort_configs_by_connection": {
      -        "additionalProperties": {
      -          "additionalProperties": {
      -            "properties": {
      -              "aggregation_type": {
      -                "type": "string"
      -              },
      -              "cohort_type": {
      -                "type": "string"
      -              },
      -              "groupings": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "kpis": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              },
      -              "last_used_from": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "last_used_to": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "min_cohort_size": {
      -                "type": "integer"
      -              },
      -              "partial_data": {
      -                "type": "boolean"
      -              },
      -              "period_filters": {
      -                "items": {
      -                  "type": "integer"
      -                },
      -                "type": "array"
      -              },
      -              "preferred_currency": {
      -                "type": "boolean"
      -              },
      -              "preferred_timezone": {
      -                "type": "boolean"
      -              },
      -              "provider": {
      -                "type": "string"
      -              },
      -              "provider_app_id": {
      -                "type": "string"
      -              },
      -              "selected_channel_pids": {
      -                "items": {
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "type": "object"
      -        },
      -        "type": "object"
      -      },
      -      "connections": {
      -        "items": {
      -          "properties": {
      -            "created_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "display_name": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "last_synced_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "provider": {
      -              "type": "string"
      -            },
      -            "status": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "updated_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "degraded": {
      -        "type": "boolean"
      -      },
      -      "degraded_reasons": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "metadata_by_connection": {
      -        "additionalProperties": {
      -          "items": {
      -            "properties": {
      -              "app_name": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "channel_pid": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "event_mappings": {
      -                "items": {
      -                  "properties": {
      -                    "event_name": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "mapped_events": {
      -                "items": {
      -                  "properties": {
      -                    "event_name": {
      -                      "type": "string"
      -                    },
      -                    "send_revenue": {
      -                      "type": "string"
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "provider": {
      -                "type": "string"
      -              },
      -              "provider_app_id": {
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "type": "array"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "connections",
      -      "metadata_by_connection",
      -      "cohort_configs_by_connection"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "apps_count": {
      +        "type": "integer"
      +      },
      +      "available_channel_pids": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "available_events_sample": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "connected": {
      +        "type": "boolean"
      +      },
      +      "degraded": {
      +        "description": "Secondary stored configuration reads were unavailable.",
      +        "type": "boolean"
      +      },
      +      "degraded_reasons": {
      +        "description": "Allowlisted public missing-data reasons only.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "providers": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "safe_mode_reduced": {
      +        "const": true
      +      }
      +    },
      +    "required": [
      +      "connected",
      +      "providers",
      +      "apps_count",
      +      "available_channel_pids",
      +      "available_events_sample",
      +      "safe_mode_reduced"
      +    ]
      +  },
      +  {
      +    "properties": {
      +      "cohort_configs_by_connection": {
      +        "additionalProperties": {
      +          "additionalProperties": {
      +            "properties": {
      +              "aggregation_type": {
      +                "type": "string"
      +              },
      +              "cohort_type": {
      +                "type": "string"
      +              },
      +              "groupings": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "kpis": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "last_used_from": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "last_used_to": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "min_cohort_size": {
      +                "type": "integer"
      +              },
      +              "partial_data": {
      +                "type": "boolean"
      +              },
      +              "period_filters": {
      +                "items": {
      +                  "type": "integer"
      +                },
      +                "type": "array"
      +              },
      +              "preferred_currency": {
      +                "type": "boolean"
      +              },
      +              "preferred_timezone": {
      +                "type": "boolean"
      +              },
      +              "provider": {
      +                "type": "string"
      +              },
      +              "provider_app_id": {
      +                "type": "string"
      +              },
      +              "selected_channel_pids": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "object"
      +        },
      +        "type": "object"
      +      },
      +      "connections": {
      +        "items": {
      +          "properties": {
      +            "created_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "display_name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "last_synced_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "provider": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "updated_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "degraded": {
      +        "type": "boolean"
      +      },
      +      "degraded_reasons": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "metadata_by_connection": {
      +        "additionalProperties": {
      +          "items": {
      +            "properties": {
      +              "app_name": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "channel_pid": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "event_mappings": {
      +                "items": {
      +                  "properties": {
      +                    "event_name": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "mapped_events": {
      +                "items": {
      +                  "properties": {
      +                    "event_name": {
      +                      "type": "string"
      +                    },
      +                    "send_revenue": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "provider": {
      +                "type": "string"
      +              },
      +              "provider_app_id": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "connections",
      +      "metadata_by_connection",
      +      "cohort_configs_by_connection"
      +    ]
      +  }
      +]
  7. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds only the scoping hint that it spans mapping, cohort and funnel state; it says nothing about whether this is a cached snapshot, whether it reflects live configuration, or about freshness.

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?

A single short phrase with no filler, front-loaded with the verb. It is arguably too terse rather than padded, so it does not lose points for verbosity.

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

Completeness3/5

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

An output schema exists and annotations cover safety, which lowers the descriptive burden considerably. Still, for a no-argument snapshot tool the key ambiguity — what "state" concretely comprises and how fresh it is — remains unresolved, leaving the definition only minimally complete.

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?

Zero parameters, so there is no parameter semantics to explain and the baseline is 4. The description could have noted that it takes no arguments and returns a full snapshot, but its omission is not a substantive gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description supplies a verb ("Read") and three named resource domains (mapping, cohort, funnel), which is more than a restatement of the name. However, "state" is left undefined — an agent cannot tell whether this returns configuration, live status, or computed aggregates, and nothing distinguishes it from the many mmp_insights_* siblings that also read MMP data.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus the sibling insight/query tools, and no exclusions or preconditions. The agent must infer usage from the name alone, which the guidance explicitly says not to rely on.

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