Questions & Answers about Маленький воробей сидел у порога.
Because it is agreeing with воробей, which is:
- masculine
- singular
- nominative case
Russian adjectives change their endings to match the noun they describe. Here the basic agreement is:
- маленький воробей = masculine singular nominative
So маленький is the correct form for describing воробей as the subject of the sentence.
Воробей is in the nominative singular, because it is the subject of the sentence — the one doing the action of сидел.
In this sentence:
- воробей = the sparrow
- сидел = was sitting / sat
A good beginner rule is: the noun that is the subject is often in the nominative.
Also, воробей is the dictionary form of the noun.