The correct grammatical tense of the sentence "I had visited Mexico last year." is the past perfect tense.
I had visited Mexico last year.
### Instruction:
Analyze the sentence and provide the correct grammatical tense.

### Input:
I had visited Mexico last year.

### Response:
